Soft Uart In 8051controller

Status
Not open for further replies.

SurekhaIris

Member level 2
Joined
Aug 15, 2012
Messages
50
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,616
How many soft uart can we have in 8051 controller,i require 4 softuart

whether is it possible
 

Well actually you've so many methods to do that.
and you can have as many UARTs as you want (depends on available GPIOs)

the very simple and basic which I like is :

suppose you've 2 device to get connect with master. (I am assuming both are programmable)

connect the Master's Tx to Slave1 and Slave2 's Rx directly, choose same Baud rate for all the three devices.
assign unique code/character to each of the slaves, so that when the Master puts out the Unique Code on the Bus, only the called-upon slave returns acknowledge/required data.
this concept is similar to I2C protocol and would be interesting to work with, also with this approach you can have several slave devices and you are not limited only to 2 slaves

I've got this from here :https://www.8051projects.net/t11828...tiple-serial-port-8051-at89c51.htm#post_11836

you can have other methods also to do this.
Please read the above linked blog THOROUGHLY.
 

No,it is not i2c.is it not possible for simple UART
Thanks.
 

it is UART(Softuart )

If you don't want to lose data then you can have only one extra software UART that will be using one of EXTINT (0 or 1) as the Rx input and one of timers to clock it ..
That makes the total of UARTS 2: one already existing (hardware) and one in software ..

:wink:
IanP
 

Thanks for the reply,i already implement one softuart but i require two more is it possible to implement.

Thanks for the reply
 

no you can go for i2c/i2s communication for more devices connected to in single communication
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…