Kalpesh Pandit

SCI problem in mc9s12xdp512 CPU

Discussion created by Kalpesh Pandit on Jan 25, 2008
Latest reply on Feb 13, 2008 by Kalpesh Pandit
Hey Guys,
I m using CPU of MC9S12XDP512 and not yet using xgate core
I m facing some problem in driving serial coomunication

the SCI baud rate initialisation is not proper
According to data sheet and related apnotes i ve written d code as follows

Initialisation
SCI.SCxBDL  =   52;   /* baud rate 9600 at 8 MHz */
SCI.SCxBDH  =   0;   /* baud rate 9600 at 8 MHz */

While transmitting character
(!(SCI.SCxSR1 & 0x80)) {};  /* wait for output buffer empty */
    SCI.SCxDRL = ch;

I m not using interrupt but polling mode is used

also wanted to know wot is the relation between system bus clock, oscillator clock
Crystal being used = 8MHz

Can u pls suggest me any solution..................?

Outcomes