I use a 12Mhz external crystal on MC9S08SH8 device. But it seems that the Busclock is devided by two. How can I use the full 12Mhz as busclock? Please look at my configuration for ICSC1 and ICSC2
ICSC1 is configured as CLKS 10, RDIV 000, IREFS 0, IRCLKEN 0, IREFSTEN 0
ICSC2 is configured as BDIV 00, RANGE 1, HGO 1, LP 0, EREFS 1, ERCLKEN 1, EREFSTEN 1
I wrote a small testroutine for SCI module. It only work correctly with BR Factor HEX 27. So Busclock must be ~6Mhz.
LDHX #RAMEnd+1 ; initialize the stack pointer
CLI ; enable interrupts
lda #%00000011 ; Watchdog off,Stopmode off, Resetpin enabled, BDM enabled
lda #%10000000 ; use external crystal
jsr delay1 ; external Clocksource needs some time.
Can anyone tell me how to use 12Mhz external crystal/12Mhz Buscklock(or more)?