T89C51CC01 message sending

I want to send a message using Can Controller T89C51CC01

right now, I am not sure when the message is sent. Right after CANCONCH is set?

Using the debug program in Keil, I could clearly see the message is on the can channel I assigned to. But the value of pin P4.0 and P4.1 don't change at all.
If the can controller is sending messages, P4.0(Tx) P4.1(Rx0) should change from time to time right?

How could I send messages to the can bus?

Everybody, please help me.

Parents
  • Some thoughts
    not familiar with this chip, but if your not seeing the values of your port pins, and they are being used to transmit and revieve CAN messages, they are probably not available as IO pins and you won't see them change in the debugger. Do you have another CAN device to recieve messages? That would be the easiest way to test operation. Or just to see that you are doing something, put a scope on your CAN TX pin.
    Andy

Reply
  • Some thoughts
    not familiar with this chip, but if your not seeing the values of your port pins, and they are being used to transmit and revieve CAN messages, they are probably not available as IO pins and you won't see them change in the debugger. Do you have another CAN device to recieve messages? That would be the easiest way to test operation. Or just to see that you are doing something, put a scope on your CAN TX pin.
    Andy

Children
More questions in this forum