Mekonnen Tekeste <M.Tekeste(a)Bradford.ac.uk> wrote:
*/
void InitUSART(void)
{
outp(CONTROL, 0x40); // Reset UART
outp(CONTROL, 0x4E); // Stop, no parity, 8-bit, %16 baud
outp(CONTROL, 0x05); // UART now ready
}
Hi
Looking at one of the spec sheets, it states that
one should send three 0x00's to the command before
sending a valid command if you don't know the history
of commands sent to the chip. When going into sync
mode, it may be waiting for sync characters and it
needs to make the distinction between them and a
valid command.
One should do a dummy read or two of the data register
before expecting things to work also.
Dwight