SPC5644A System Clock

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SPC5644A System Clock

667件の閲覧回数
xichengxun
Contributor I

Hello,

       Now, I am using SPC5644A Chip.  When I tried to configure the system clock as 144MHz, it always failed. It seems that system clock can only be configured less than 120MHZ,or, it will not work.  I use Codewarrior 2.10 as the IDE Tool.  The frequeency of the oscillator for external crystal is 8MHz。The code for Module FMPLL is posted below,

void sysclk_init(void) /* Intialize sysclk to 144MHz for 8 MHz crystal*/
{

FMPLL.ESYNCR2.R = 0x00000001; /* 8MHz xtal: ERFD to initial value of 7 */
FMPLL.ESYNCR1.B.CLKCFG = 0b001;
FMPLL.ESYNCR1.B.EMODE = 0b1;
FMPLL.ESYNCR1.R = 0x80010048; /* 8MHz xtal: CLKCFG=PLL, EPREDIV=1, EMFD=0x20*/ //3e---124M 3C---120M
FMPLL.ESYNCR1.B.CLKCFG = 7;

while (FMPLL.SYNSR.B.LOCK != 1) {}; /* Wait for FMPLL to LOCK */
FMPLL.SYNFMMR.B.MODEN = 0x01; /* 8MHz xtal: ERFD to initial value of 7 */
FMPLL.ESYNCR2.R = 0x00000000; /* 8MHz xtal: ERFD to initial value of 7 */

}

Do you have the similar experience?

0 件の賞賛
返信
0 返答(返信)