This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I am having some issues with MSP430F2274 debugging. I have code which correctly writes data to P2IE but when I inspect the P2IE register the value is always zero. I know the value was correctly written because when I assign it's value to a variable the value is set as expected. I looked up the P2IE register in the data sheet and it says it is read/write but I also see that the data sheet says ...
Because there are only three I/O pins implemented from port P2,
bits [5:1] of all port P2 registers read as 0, and write data is ignored.
Now when I look at the part it has all 8 bits for P2 defined which can all be IO or something else.
So, any ideas on why I can't see the register value update?
I'm using IAR 7.10
Andrew,
I just did a quick example on IAR and I am not able to see your issue.
I ran the example below,
#include "io430.h" unsigned char p2ieRead = 0; int main( void ) { // Stop watchdog timer to prevent time out reset WDTCTL = WDTPW + WDTHOLD; P2IE = 0xFF; p2ieRead = P2IE; p2ieRead++; while(1); return 0; }
The debugger window looks like this before read/write,
After the write to P2IE,
and finally after reading it back,
please let me know what you would like for me to investigate.
**Attention** This is a public forum