We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I have a software that is now stable for years on C167CR and I wanted to port it to C167CS to add a 2nd CAN controller. If in the Start167.A66 I add only the line MOV XPERCON,#0401H then the software is not working anymore (looks like if there were no interrupt anymore !). This line is added before XPEN is set to 1. I have double checked the XPERCON register when running OK, and it is set to 0401H ! So, what's wrong ? Does the writing in XPERCON change something else ? Is there anybody to help me to understand that ?
One place to look is the value of the bitfield IPC in the register PCIR (which was just IR on the C167CR). By default no CAN ports are connected on the C167CS.