Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

CANbus - 18F4585 - Fried CANTX pin?

Status
Not open for further replies.

atferrari

Well-Known Member
Most Helpful Member
Nodes with 18F4585 + 65HVD251 transceiver.

Tested for hours a 3-node network.

All nodes run the same software (100% equal), transmitting only when a pushbutton is pressed. (This is my first test with real hardware).

Messages from one of them is never received by the other two nodes, BUT that node, receives ALL messages from the other two.

After swapping transceivers with exactly same result I decided to swap also the micros. Found a micro that, no matter in what node it goes, the above symptons repeat.

Scoping its CANTX pin shows activity but CANH and CANL show that a shorter message is sent every time. (I can say that because messages are programmed to be EQUAL in all nodes.).

Masks not used and filters exactly one for each message.

Just in case, I erased and reprogrammed the (culprit?) micro to no avail.

Should I discard any further chances and consider it a fried micro for CAN use? (Brand new one, out of the box.) And expensive! :mad:
 
Solved!

A last moment change in the third node was not compatible with the two previous ones.

Software was not 100% equal!.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top