This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Usage CAN in C164CI

I use C164CI-LM (Step AB) for my application. I want to select Port8
(P8.0&P8.1) for CAN transfer and so I use next C-text for initialization
CAN:
P8 |=0x0003;
DP8 &=0xFFFC;
ODP8|=0x0002;
DP8 |=0x0002;
C1CSR=0x41; // Control&Status CAN
C1PCIR=0x0200 // Control Interrupt Reg
C1BTR=0x7AC3; // BTR register
C1CSR=0x0E; // End init&Enable interrupts.

However, if I read C1PCIR register after this initialization then I have
C1PCIR=0xFF00, i.e. no port assigned and so I have no CAN transfer.
Please, help me to decide this problem.
Sincerely, Vesker Efim

Parents Reply Children
No data