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

Bus Collission interrupt question

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



Joined: 04 Nov 2004
Posts: 67

View user's profile Send private message Send e-mail

Bus Collission interrupt question
PostPosted: Tue Nov 09, 2004 1:30 pm     Reply with quote

Does someone have a good explanation of what the #INT_BUSCOL (bus collission interrupt) does? I'm using my PIC to handle RS485 communication and at times multiple boards think that they're being enabled causing them all to talk on the bus (although i cant find in the code how this happens). Does the interrupt go up when it thinks that multiple units are communicating over the same bus? Also, what is a good way to use this interrupt (like do any of you have examples?). If any of you could help me out, it would be greatly appreciated.

Jon
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Tue Nov 09, 2004 2:30 pm     Reply with quote

Bus Collision interrupt is for the I2C and not the UART so it can't be used in you case. If you still want to know what it is and how it works, look in the datasheet under the mssp section.

Since you haven't posted any code, it is nearly impossible to say why your devices are all talking. If they only speak when spoken to, then they probably think they are being addressed. How are these devices addressed. What sort of message error checking are you doing?......
jseidmann



Joined: 04 Nov 2004
Posts: 67

View user's profile Send private message Send e-mail

PostPosted: Tue Nov 09, 2004 2:35 pm     Reply with quote

the master addresses the nodes by sending an 'N#" command where # is the number and each board has a unique number. We find however that when the CPU is slightly overtaxed this problem occurs. I'm trying to lighten up the load on the CPU and see if this helps.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Tue Nov 09, 2004 2:42 pm     Reply with quote

That can leave lots of room for errors. Not sure what the devices respond back with but their data might be interpreted as another device being addressed.
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