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
Yes, of course, I set bit XPEN in "Start167.a66" file. Now I was able to start CAN transfer on Port4, but without recording to register PCIR any value. Why I can not to start CAN transfer on Port8 even so???? Thanks.