Mekonnen Tekeste <M.Tekeste_at_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
Received on Wed Apr 11 2001 - 12:04:50 BST
This archive was generated by hypermail 2.3.0
: Fri Oct 10 2014 - 23:33:25 BST