I have an application where I need the Reference Output from the MSP430. According to the datasheet and user's guide, this should be possible on P1.7 (A7). So I started by configuring the corresponding PMM Registers:
PMMCTL2 |= REFGEN; P1SEL0 |= BIT7; P1SEL1 |= BIT7; PMMCTL2 |= EXTREFEN;
This produces no output on my device. When looking at the Registers in the debugger, I see that EXTREFEN was not set in PMMCL2. The reference is running, though (REFGENACT, REFBGACT, REFBGRDY, REFGENRDY are all set).
I found in the datasheet that the refence can be output when the corresponding ADC channel (A7) is in use, so I tried:
PMMCTL2 |= REFGEN; ADCMCTL0 |= ADCINCH_7; ADCCTL0 |= ADCON; ADCCTL0 |= ADCENC; P1SEL0 |= BIT7; P1SEL1 |= BIT7; PMMCTL2 |= EXTREFEN;
But this still does not work. The EXTREFEN bit remains unset and no refence voltage is output. I did not find any hint to this neither on the Internet nor in the MSP430FR2355 Code Examples. How can I get my refence available externally?