Kris Skoczek

Sci for MC9S08GT60

Discussion created by Kris Skoczek on Jul 5, 2007
Latest reply on Jul 6, 2007 by bigmac
Hi all.
 
// ---- External Crystal = 32768 Hz, Fbus = 3,67 MHz - FEE mode
ICGC1 = 0b00111000;
ICGC2 = 0x52;
For baud rate 9600 - BR is set to 24; 
 
interrupt sci2rx void SCI2_RX_RS()
{
 rej=SCI2S1;
 if(rej&0x8) {
 Rbajt=SCI2D;
 }
 Rbajt=SCI2D;
 if(SCI2C1_M) osmy_bit = SCI2C3 & SCI2C3_R8_MASK;
}
 
Sometimes when I "call" the read interrupt routine the OR flag is automatic set.
 
Thanks.

Outcomes