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 support@ccsinfo.com

[OT] CAN transceiver

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



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

[OT] CAN transceiver
PostPosted: Sat Oct 29, 2005 3:47 pm     Reply with quote

Colleagues,

I have never used CAN, and I'm designing a board whith a working name "CAN playground". It will have a couple of PIC18F258s and a bunch of different CAN peripherals. Rolling my own board is more fun then buying one from CCS. The question is: what CAN transceiver to use? In this forum I have seen people use MCP2551, PCA82C250, LT1796. These transceivers seem to be pin-for-pin compatible. Is there any preference?

Thanks!
~K
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Oct 29, 2005 5:59 pm     Reply with quote

The CCS CAN bus drivers configure the PIC to use a transceiver that
has an internal pullup on the microcontroller side of the transmitter.
Not all transceivers have this internal pullup. This can cause quite a
mess until you figure it out. See this thread. It is finally resolved
on page 2.
http://www.ccsinfo.com/forum/viewtopic.php?t=23825
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

PostPosted: Sat Oct 29, 2005 6:21 pm     Reply with quote

I see. So, I can use any transmitter, as long as I leave pads for an external pull-up resistor, can't I?
newguy



Joined: 24 Jun 2004
Posts: 1903

View user's profile Send private message

PostPosted: Sat Oct 29, 2005 6:29 pm     Reply with quote

Actually, I'm still waiting to hear back from CCS regarding that issue. I'm very sure that the CAN_DRIVE_HIGH (or whatever that define is called) should be a 1, not a 0 as in the driver files. I keep checking the new releases of the compiler, but it's still defined as a 0.
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