HI
I am using MSP430F5 series MCU .
I have myTimer A0 running to count 2ms and perform a task every 2 ms .
Now when I port map pins P2.2 , P2.3 , P2.4 to UCB0 , immediately my timer stops functioning and the system almost stands still .
I cannot understand what happens , but the system looks to be hung or reset ..
My questions are
1. Is there any conflict with this port map with the timer
2. Is there any problem with the port mapping code (please scroll down for the code )
3. Is it mandatory to code the ISR for UCB0 ?
4. Is there any way to find whether my MCU got reset ?
Below is my port mapping code.
__disable_interrupt();
PMAPPWD = 0x02D52;
#ifdef PORT_MAP_RECFG
PMAPCTL = PMAPRECFG;
#endif
P2MAP1 = PM_UCB0SIMO;
P2MAP2 = PM_UCB0SOMI;
P2MAP3 = PM_UCB0CLK;
PMAPPWD = 0;
#ifdef
PORT_MAP_EINT
__enable_interrupt();
#endif
Thanks in advance ..
Jenitta