searched for 2 hours, read a dozen threads, i just need a simple answer.
i read the ICS needs to be 36KHz for the BUSCLK to be 9.216MHz and the SCI baud should be 5 for the baudrate to be 115200.
the SCI baud part is easy enough: SCIBDH = 0x00 and SCIBDL = 0x05
what to i set ICSC1, ICSC2 (if anything), ICSTRM, and ICSSC(if anything) - to get the BUSCLK to be 9.216MHz?????????????????????
-------
i assume this:
ICSC1 - CLKS =00, RDIV = x (this is the number i think i need to figure out), IREFS=1(default) and IRCLKEN IREFSTEN both = 0.
i prob jus set ICSC2 to 0x00 or 0x40(default) or do i need to mess with BDIV?
and i know ICSTRM is default 0x80, do i need to change this too?
I REALLY ONLY NEED TO KNOW WHAT TO SET THESE REGISTERS TO--
but...
a formula would be nice to. i guess i dont understand this clock frequency at all.
i'm pretty sure i'm starting with 31.25 MHz. how does changing RDIV, BDIV and ICSTRM (MATHEMATICALLY SPEAKING) change/adjust that?!?!?!?!?
thanks in advance for providing the REGISTER VALUES to accomplish 115200 baud, and thanks for any formula/explanation.
and HAPPY FRIDAY!!!
-mike