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 am trying to use Port Pins P4.5 and P4.6 on an ST10 chip. I've enabled the DP4.5 and DP4.6 bits, and the SALSEL field is set to 00 for 1Meg of memory. However, I can't write to these two pins. I can write to P4.4 and P4.7, but not P4.5 and P4.6. Does anyone know of anything special about these two bits in Port 4 that might be causing this symptom. Thanks for any help or suggestions.
It must be on-chip CAN. I've had this kind of problem with ST10F168: as soon as XPEN is set, port pins P4.5 and P4.6 cannot be used for general purpose I/O. If you don't need any of the X-peripherals (including XRAM), you can clear the XPEN bit. - mike
Mike You were absolutely right. With XPEN cleared P4.5 and P4.6 functioned as expected. Thanks for the help. Don