9s08AW FLL

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

9s08AW FLL

1,965 Views
CCandido
Contributor V
Hello, my FLL 9s08AW no run.
Internal configuration = OK

Xtal = 4mhz (FLL 40mhz)= busclock=20mhz

NOTE:

/* PE initialization code after reset */
SOPT =0x52;
SPMSC1=0x1C;
SPMSC2=0x00;
SMCLK =0x17;

/* System clock initialization */
ICGC1=0x5C; // 38.....
ICGC2=0x30; // 32.....

ICGTRM = *(unsigned char*)0xFFBE;
while(!ICGS1_LOCK) { /* Wait */
}


thenks,
Edited by Carlos Candido from Brazil,
Labels (1)
0 Kudos
2 Replies

260 Views
Andik
Contributor I

CCandido wrote:
/* System clock initialization */
ICGC1=0x5C; // 38.....
ICGC2=0x30; // 32.....



Section 8.5.3 "Example #2: External Crystal = 4 MHz, Bus Frequency = 20 MHz":
INITIALIZE ICG
ICGC1 = $7A
ICGC2 = $30 ...


I used FLL in FEI mode at 30MHz, and it worked (ICGC1=$28, ICGC2=$50).

Good luck.
0 Kudos

260 Views
CCandido
Contributor V
Section 8.5.3 "Example #2: External Crystal = 4 MHz, Bus Frequency = 20 MHz":
INITIALIZE ICG
ICGC1 = $7A
ICGC2 = $30 ...

goto RUN = OK

Andik Thenks,
0 Kudos