Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/10/08 08:27
Read: times


 
#152060 - Simplex
Responding to: ???'s previous message
Alan Dorman said:
The printer and LCD do not send any data back to the CPU.

So you don't need to use the MCU's Rx input to the UART, then?

So how about driving one device from the MCU's UART, and then bit-banging a serial output on the unused "Rx" pin?

If a printer or LCD sees garbage would it try to print or display that garbage or would it simply ignore it because of the baud rate error?

Who knows?
And even if you try it and it "seems" to "work", how can you be sure that it will never get into some strange state due to the dodgy data...?
You really don't want to go there...

Some of the port pins are used to bit bang into a row of serial OC drivers and the other bit bangs into a EEPROM.

Does the EEPROM use I2C or SPI?

If it does, then why not just use an LCD with I2C or SPI interface?
Or an I2C or SPI-connected UART?
Or a "slave" micro to "roll-your-own" I2C-to-LCD driver?

I could add another RS232 chip and some glue logic ... Would that idea work?

Well, that's basically "multiplexing" it!
You'd have to work out the fine detail of how to make it work with your existing stuff.

But this is a non-trivial hardware change - would it not be simpler to just get a microcontroller with 2 serial ports?!




List of 32 messages in thread
TopicAuthorDate
One RS232 port and two devices            01/01/70 00:00      
   Almost certainly not!            01/01/70 00:00      
      neither one talks back            01/01/70 00:00      
         Soft-UART ?            01/01/70 00:00      
         Simplex            01/01/70 00:00      
            responses            01/01/70 00:00      
               The beaty of the 8051            01/01/70 00:00      
                  why all this about bit-banging            01/01/70 00:00      
               Bit banging UART TX.            01/01/70 00:00      
                  Easy to get wrong.            01/01/70 00:00      
                     Point taken, but you can calculate delay.            01/01/70 00:00      
                        Depends on compiler/etc...            01/01/70 00:00      
                           Don't use HLL!            01/01/70 00:00      
                              Cycle counting.            01/01/70 00:00      
                                 Fundamental flaw            01/01/70 00:00      
                              Not an Absolute....            01/01/70 00:00      
                                 RE: Never is a strong word            01/01/70 00:00      
                                    ... and            01/01/70 00:00      
                              assembly verses HLL            01/01/70 00:00      
                           Use a Timer IRQ to set the soft baudrate            01/01/70 00:00      
                              Surprise.            01/01/70 00:00      
                                 High risk            01/01/70 00:00      
                                    Straying into fantasy.            01/01/70 00:00      
                                       Not so fantastic?            01/01/70 00:00      
                  Resistance is too high            01/01/70 00:00      
                  Another reason why this is not so easy...            01/01/70 00:00      
               Timescales            01/01/70 00:00      
      message formatting            01/01/70 00:00      
         Try it now            01/01/70 00:00      
            It's OK now, thanks.            01/01/70 00:00      
   Two RS232 devices            01/01/70 00:00      
      the LCD display            01/01/70 00:00      

Back to Subject List