PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Aug 13, 2007 3:30 pm |
|
|
A typical CAN bus driver such as the MCP2551 has single-ended input
and output pins on the PIC side. The CAN bus side is differential.
The ENDRHI pin controls whether or not the CANTX pin on the PIC
is either driven high or is pulled up by an external pull-up resistor.
Not all CAN bus driver chips have a built-in pull-up on their TX input.
In the case where your CAN bus driver chip doesn't have a built-in
pull-up, and you don't want to add an external pull-up to your board,
you must set ENDRHI so it drives CANTX high, instead of tri-stating it.
See this thread, in which we discover this:
http://www.ccsinfo.com/forum/viewtopic.php?t=23825 |
|