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,
As i under stand urs problem u want to connect the serial port of 8051 withtwo peripherals. The solution is Multiplexer IC.With its select lines u can select the peripheral with which the controller will communicate at particular instance.
Thanks a lot ^_^ but which type of IC muliplexing I should used
if you choose to implement a software UART ("bit banging...") here is where you can get a kick start:
supp.iar.com/.../
if I remember correctly, you can also refer to "The Art of Designing Embedded Systems", (2000) by Jack Ganssle, where the subject is explained along with assembly listings (for the Z80, I think). Either way, it is fine reading material!
if you choose to implement a software UART ("bit banging...") here is where you can get a kick start as I have often said: "reference code is totally worthless unless you could write the code yourself if you had to" reference code never (I wish I could say 'rarely') works and if you do not have the ability to write whatever yourself, you will be absolutotally lost with reference code.
Erik
View all questions in Keil forum