Wednesday, March 29, 2006

~38400 Baud on SCI2 for M68DEMO908GB60

Had better results with using 32 as the prescalar:

//SCI2BDL=0b00100001;//37878, 33 = 20Mhz/16*384000, where BaudRate = clock/(16*prescalar)
SCI2BDL=0b00100000;//39062, 32 = 20Mhz/16*384000, where BaudRate = clock/(16*prescalar)

when

ICGC2_MFD = 7;
ICGC2_RFD = 0;
ICGC1 = 0b00111000;


All jumpers must be set. See page 169 of MC9S08GB60.pdf for additional info.

Data rate verified via serial hookup to RealTerm Serial Capture.

No comments: