wiki/ SjaCanTestNode

PIC16F877/SJA1000 CAN Test Node Information

Our first version of CAN nodes had a Microchip PIC16F877 and a Philips SJA1000 CAN protocol chip on it. We made a "test" node, so the FC people would have a working CAN node in order to test the CAN driver and and FC software.

Hooking it up

  1. Screw in the CAN cable (you'll need a teeny weeny screwdriver for those 0.1" euroterm blocks.
  2. Screw in the power cable from the "wallwart" power supply
  3. When you're ready, plug it in.

If the red error LED goes on, or something seems to have locked up, just cycle the power on the board by unplugging and plugging the power supply.

Remember, when it doubt, power cycle ;)

Behaviors

Broadcast CAN messages

Triggered CAN messages

Received CAN Messages

LEDs

ERROR_LED RA0 RED Firmware error: PIC is probably locked up.
OVERFLOW_LED RA1 YELLOW the SJA's receive buffer has overflowed: too many messages, too fast.
CANERR_LED RA2 YELLOW Passive or active error state: nothing is listening on the bus, wrong bit rate, etc.
BUSERR_LED RA3 YELLOW Hard error on the CAN bus: bit stuffing violation, CRC error, etc.
GREEN1_LED RA4 GREEN CAN triggered LED
GREEN2_LED RA5 GREEN CAN triggered LED

Attachments: