This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

2input serial port with 8051

I have a problem with interfacing two serial port with 8051 microcontroller. I have to use bar code reader and RF reciver and transmitter which both of them interfaced serially. I am thinking to add an ic to controller these to serial ports, but I don't know which type of IC I should used!!
could any one help me, please?

Thanks,

Parents
  • Hi, As both devices are not used simultaneously, you can think of below implementation:

    Put 2 number of MAX232 Line Receiver/Drivers (choose an IC with Enable option). Short the both Rx's of MAX232 to Rx of controller and similarly for Tx.
    1) Keep MAX232 of Scanner Enabled as default and LCD off.
    2) When ever a scan is completed:
    a) Disable scanner MAX232, Enable MAX232 of LCD
    b) Transmit all the data
    3) Diable LCD MAX232 and Enable the Scanner MAX232
    4) Repeat the cycle.....
    Assumptions are: LCD and scanner use same baudrate. Data Trasmited to LCD is only few bytes, so that Scanner will be ready fast for next scan.

Reply
  • Hi, As both devices are not used simultaneously, you can think of below implementation:

    Put 2 number of MAX232 Line Receiver/Drivers (choose an IC with Enable option). Short the both Rx's of MAX232 to Rx of controller and similarly for Tx.
    1) Keep MAX232 of Scanner Enabled as default and LCD off.
    2) When ever a scan is completed:
    a) Disable scanner MAX232, Enable MAX232 of LCD
    b) Transmit all the data
    3) Diable LCD MAX232 and Enable the Scanner MAX232
    4) Repeat the cycle.....
    Assumptions are: LCD and scanner use same baudrate. Data Trasmited to LCD is only few bytes, so that Scanner will be ready fast for next scan.

Children