void SCIInit(void)
{
SCI1C2 = 0x00; // Disable the SCI1 module
(void)(SCI1S1 == 0); // Dummy read of the SCI1S1 registr to clear flags
(void)(SCI1D == 0); // Dummy read of the SCI1D registr to clear flags
SCI1BD = 0x18;
SCI1C1 = 0x20;
SCI1C2 = 0x2C;
SCI1C3 = 0x20;
SCI1S2 = 0x00;
} |