XMC4500 hexagon kit port configuration for CAN

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hello,
I am somehow not able to find the correct pin configuration to use the CAN controller node2 connected to the transceiver and the DSUB-9 connector.
Pin 28: CAN_TXD CAN_N2_TXD P1.9
Pin 30: CAN_RXD CAN_N2_RXDA P1.8

I hope someone will have done it already and can send me the instruction or the C source code to initialize the port.
Thanks in advance

Heinz
0 Likes
1 Reply
Not applicable
OK, by implementing a simple Dave example and looking at the generated code, i found it.
It is as simple as configuring P1.9 to ALT2 functionality.

My CANopen node is now at least sending a boot up and the following heart beat frames.
For the RX part I need to implement the interrupt.
Heinz
0 Likes