serial I/O chip

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • paqueress
    New Member
    • Dec 2006
    • 5

    serial I/O chip

    I would love to get the step by step procedures on how a serial I/O chip is programmed and procedures of the parallel I/O chip programming as well. As for now I urgently need the serial I/O chip programming.


    Thanx loads
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Normally programming a UART (Universal Asynchronous Receiver Transmitter) is fairly simple. A serial port consists of a UART and the required output buffers to give the output the correct line levels for RS232.

    For a normal UART it is a case of writing the required comms parameters to a couple of control registers then you normally have a transmit register to write data to transmit(tx) to and a receive(rx) register to read data received from.

    Most UARTs will drive an interrupt line so that you can either do polled tx and rx or interrupt driven tx and rx. The interrupt will normally fire in 1 of the four cases

    1. there is data available in the rx register
    2. The rx buffer is nearly full
    3. The tx buffer is nearly empty
    4. The tx buffer is empty


    Sorry not so familiar with parallel

    Comment

    Working...