I have been using this MSP-EXP430FR2433 kit to develop many programs, which did not involve the PMM, and they all work. Now when I'm trying to configure the PMM to enable the internal voltage reference, the code cannot access the register. The intent of the program, but not shown in its entirety, is to access the the built-in temperature sensor. This little program, shown below, will not work.
After the first password write, the INTREFEN bit is not set, and the second password attempt causes a reset. I've recreated the same program in a new project with no success, and I have removed power from the kit and then powered it up without success.
Has anybody else encountered this problem? Can anybody shed some light on this?
I'm using CCS Version: 10.1.1.00004 on Windows 10.
#include <msp430.h> int main(void) { WDTCTL = WDTPW | WDTHOLD; PMMCTL0_H |= PMMPW_H; PMMCTL2 |= INTREFEN; // Bit not set PMMCTL0 |= PMMPW; // Causes a reset PMMCTL2 |= INTREFEN; return 0; {