CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

serial communication (master and slave)

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
red
Guest







serial communication (master and slave)
PostPosted: Tue Mar 17, 2009 2:32 am     Reply with quote

Hi I am using 3 microcontrollers for serial communication. 1 as master and remaining are slaves. communication work fine (slave response to the Master's Poll) but if i add another one, that all of the slave don't respond anymore to the master's POLL. The hardware setup is that the master TX is connected to the slave's RX and vice versa (sort of UART bus). If I remove the common ground connection for the slave 3 and master, the 2 other slave can now respond to the master's POLL, also the slave 3 can recieve Poll but can't reply back. I appreciate any help. tnx
Ttelmah
Guest







PostPosted: Tue Mar 17, 2009 3:59 am     Reply with quote

Er.
How is the wiring going to work with 3 chips?.
You will end up with two slave TX lines connected to one master RX, which means that two driver devices are talking to the same line... :-(
This is almost certainly what is happening, preventing the third chip from driving the line. When you disconnect the ground, there is no longer a complete 'circuit', so the short disappears.
You need to disconnect the drivers, when you are not actually operating the line. Now, the compiler has an option for this (output_float), but I'd suspect this will only work with the software UART (you'd need to check).

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group