SCI communication from PC with EVB(DP256)

Started by Yogeesh October 2, 2003
Hi,

We are using M68KIT9S12DP256 Evaluation board (EVB), P&E multilink BDM interface, and ZAP ICD 6812
(paged) V3.70a on Win98SE.

We are not able to generate SCI receive interrupt in EVB when we try sending data from PC's serial port to EVB.
We are sending set of data from PC's serial port with one second delay between each data, with baud rate as
19.2kbps.

The connections are as below:

* From PC's LPT1, thru a dongle, P&E BDM Multilink cable to EVB's BDM-IN. (for debugging, working just fine)
* From PC's COM1 to EVB's serial port configured for SCI0. (for SCI)

Folowing is the register setting for SCI0..

CR1 = 0x63;
CR2 = 0xAE;

BDH = 0x00;
BDL = 0x51; /* 19.2kbps */

Can any of you suggest you where the problem is?

Cheers,
Yogeesh




If you are using the Motorola EVB board and haven't changed the
oscillator, you should have a 16MHz crystal frequency, which gives a
bus clock on 8MHz. The bus clock is the same as the SCI module clock.

According to the SCI Block Guide:

SCI baud rate = SCI module clock / (16*SCIBR[12:0])

baudrate = 8000000/(16*51h) means that baudrate is 6173.

Try to use: 192000 = 8000000/(16*BRL) SCI0BRL should be set to 26 dec or 1Ah.

This is of cource, only if you have a 16MHz oscillator.
--- In , "Yogeesh" <yogeesh@c...> wrote: > Hi,


>


> We are using M68KIT9S12DP256 Evaluation board (EVB), P&E multilink
BDM interface, and ZAP ICD 6812 > (paged) V3.70a on Win98SE.


>


> We are not able to generate SCI receive interrupt in EVB when we try
sending data from PC's serial port to EVB. > We are sending set of data from PC's serial port with one second
delay between each data, with baud rate as > 19.2kbps.


>


> The connections are as below:


>


> * From PC's LPT1, thru a dongle, P&E BDM Multilink cable to EVB's
BDM-IN. (for debugging, working just fine) > * From PC's COM1 to EVB's serial port configured for SCI0. (for SCI)


>


> Folowing is the register setting for SCI0..


>


> CR1 = 0x63;


> CR2 = 0xAE;


>


> BDH = 0x00;


> BDL = 0x51; /* 19.2kbps */


>


> Can any of you suggest you where the problem is?


>


> Cheers,


> Yogeesh