View previous topic :: View next topic |
Author |
Message |
billvon2
Joined: 18 Jun 2024 Posts: 1
|
PIC24 spewing CAN messages even in reset |
Posted: Tue Jun 18, 2024 11:16 pm |
|
|
I have a PIC24EP512GU810 and we are using both CAN bus interfaces for an application. We've been having trouble with spurious messages appearing on the CAN1 bus. They are always the same four messages, with ID's 521, 522, 523 and 524 hex. They are always six bytes long. They contain alternating data.
We've tried everything to stop them. I can even power down the board, ground MCLR with a jumper, then power the board back on - and they still appear. How can we be getting these when the PIC is in hardware reset? Is there a config bit or something that allows the CAN bus interface to always transmit, even in reset?
[/img] |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19529
|
|
Posted: Wed Jun 19, 2024 1:26 am |
|
|
I'd be looking at how the lines driving the CAN transceivers are biased.
Understand that if the PIC is in reset, most of the lines are floating. Now
if the enable on the can transceiver can float into the active state, you
are then driving the bus. You need to ensure that when the PIC is not
driving the enable line, this by default is resistively pulled to the inactive
state. |
|
|
bryant@balancebitsconsult
Joined: 21 Nov 2023 Posts: 38
|
|
Posted: Wed Jun 19, 2024 5:01 pm |
|
|
Good news I suppose. We're on the same team - it seems there was a random device that was publishing CAN messages on the same lines that the PIC was connected to.
Fun times.
PIC was fine all along. |
|
|
|