SLAA419C October 2009 – April 2019 MSP430F5418 , MSP430F5418A , MSP430F5419 , MSP430F5419A , MSP430F5435 , MSP430F5435A , MSP430F5436 , MSP430F5436A , MSP430F5437 , MSP430F5437A , MSP430F5438 , MSP430F5438A
Figure 7 shows the REF module control register. The REF module is used to source the internal voltage references of the ADC12_A and other analog peripherals in a modular fashion with improved flexibility and stability. The simplest way to port an application that uses the ADC12 module is to set REFMSTR = 0 when initializing the ADC12 registers and to account for the increase in settling time for the internal reference, from 35 µs to 75 µs. The REF module is recommended to be used as the internal reference:
REFCTL0 &= ~REFMSTR;
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
7 | REFMSTR | RW | 1h | REF master control. ADC10_A and CTSD16 devices: Must be written 1.
0b = Reference system controlled by legacy control bits inside the ADC12_A module when available. 1b = Reference system controlled by REFCTL register. Common settings inside the ADC12_A module (if exists) are don't care. |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
Reserved | BGMODE | REFGENBUSY | REFBGACT | REFGENACT | |||
r0 | r0 | r0 | r0 | r-(0) | r-(0) | r-(0) | r-(0) |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
REFMSTR | Reserved | REFVSEL | REFTCOFF | Reserved | REFOUT | REFON | |
rw-(1) | r0 | rw-(0) | rw-(0) | rw-(0) | r0 | rw-(0) | rw-(0) |
Can be modified only when REFGENBUSY = 0. |
For information on using the REF module, see the MSP430F5xx and MSP430F6xx Family User's Guide.