SLAU144K December 2004 – August 2022 MSP430AFE221 , MSP430AFE222 , MSP430AFE223 , MSP430AFE231 , MSP430AFE232 , MSP430AFE233 , MSP430AFE251 , MSP430AFE252 , MSP430AFE253 , MSP430F2001 , MSP430F2002 , MSP430F2003 , MSP430F2011 , MSP430F2012 , MSP430F2013 , MSP430F2101 , MSP430F2111 , MSP430F2112 , MSP430F2121 , MSP430F2122 , MSP430F2131 , MSP430F2132 , MSP430F2132-EP , MSP430F2232 , MSP430F2234 , MSP430F2252 , MSP430F2252-Q1 , MSP430F2254 , MSP430F2272 , MSP430F2272-Q1 , MSP430F2274 , MSP430F2274-EP , MSP430F233 , MSP430F2330 , MSP430F235 , MSP430F2350 , MSP430F2370 , MSP430F2410 , MSP430F2416 , MSP430F2417 , MSP430F2418 , MSP430F2419 , MSP430F247 , MSP430F2471 , MSP430F248 , MSP430F2481 , MSP430F249 , MSP430F2491 , MSP430F2616 , MSP430F2617 , MSP430F2618 , MSP430F2619 , MSP430G2001 , MSP430G2101 , MSP430G2102 , MSP430G2111 , MSP430G2112 , MSP430G2121 , MSP430G2131 , MSP430G2132 , MSP430G2152 , MSP430G2153 , MSP430G2201 , MSP430G2201-Q1 , MSP430G2202 , MSP430G2203 , MSP430G2210 , MSP430G2211 , MSP430G2212 , MSP430G2213 , MSP430G2221 , MSP430G2230 , MSP430G2231 , MSP430G2231-Q1 , MSP430G2232 , MSP430G2233 , MSP430G2252 , MSP430G2253 , MSP430G2302 , MSP430G2303 , MSP430G2312 , MSP430G2313 , MSP430G2332 , MSP430G2333 , MSP430G2352 , MSP430G2353 , MSP430G2402 , MSP430G2403 , MSP430G2412 , MSP430G2413 , MSP430G2432 , MSP430G2433 , MSP430G2444 , MSP430G2452 , MSP430G2453 , MSP430G2513 , MSP430G2533 , MSP430G2544 , MSP430G2553 , MSP430G2744 , MSP430G2755 , MSP430G2855 , MSP430G2955 , MSP430TCH5E
Table 27-5 lists the memory-mapped registers for the SD24_A.
| Address | Acronym | Register Name | Type | Reset | Section |
|---|---|---|---|---|---|
| 100h | SD24CTL | SD24_A Control | Read/write | 00h with PUC | Section 27.4.1 |
| 110h | SD24IV | SD24_A Interrupt Vector | Read/write | 00h with PUC | Section 27.4.2 |
| B7h | SD24AE | SD24_A Analog Enable#SLAU144SD16A2125 | Read/write | 00h with PUC | Section 27.4.3 |
| 102h | SD24CCTL0 | SD24_A Channel 0 Control | Read/write | 00h with PUC | Section 27.4.4 |
| 112h | SD24MEM0 | SD24_A Channel 0 Conversion Memory | Read/write | 00h with PUC | Section 27.4.5 |
| B0h | SD24INCTL0 | SD24_A Channel 0 Input Control | Read/write | 00h with PUC | Section 27.4.6 |
| B8h | SD24PRE0 | SD24_A Channel 0 Preload | Read/write | 00h with PUC | Section 27.4.7 |
| 104h | SD24CCTL1 | SD24_A Channel 1 Control | Read/write | 00h with PUC | Section 27.4.4 |
| 114h | SD24MEM1 | SD24_A Channel 1 Conversion Memory | Read/write | 00h with PUC | Section 27.4.5 |
| B1h | SD24INCTL1 | SD24_A Channel 1 Input Control | Read/write | 00h with PUC | Section 27.4.6 |
| B9h | SD24PRE1 | SD24_A Channel 1 Preload | Read/write | 00h with PUC | Section 27.4.7 |
| 106h | SD24CCTL2 | SD24_A Channel 2 Control | Read/write | 00h with PUC | Section 27.4.4 |
| 116h | SD24MEM2 | SD24_A Channel 2 Conversion Memory | Read/write | 00h with PUC | Section 27.4.5 |
| B2h | SD24INCTL2 | SD24_A Channel 2 Input Control | Read/write | 00h with PUC | Section 27.4.6 |
| BAh | SD24PRE2 | SD24_A Channel 2 Preload | Read/write | 00h with PUC | Section 27.4.7 |
| 108h | SD24CCTL3 | SD24_A Channel 3 Control | Read/write | 00h with PUC | Section 27.4.4 |
| 118h | SD24MEM3 | SD24_A Channel 3 Conversion Memory | Read/write | 00h with PUC | Section 27.4.5 |
| B3h | SD24INCTL3 | SD24_A Channel 3 Input Control | Read/write | 00h with PUC | Section 27.4.6 |
| BBh | SD24PRE3 | SD24_A Channel 3 Preload | Read/write | 00h with PUC | Section 27.4.7 |
| 10Ah | SD24CCTL4 | SD24_A Channel 4 Control | Read/write | 00h with PUC | Section 27.4.4 |
| 11Ah | SD24MEM4 | SD24_A Channel 4 Conversion Memory | Read/write | 00h with PUC | Section 27.4.5 |
| B4h | SD24INCTL4 | SD24_A Channel 4 Input Control | Read/write | 00h with PUC | Section 27.4.6 |
| BCh | SD24PRE4 | SD24_A Channel 4 Preload | Read/write | 00h with PUC | Section 27.4.7 |
| 10Ch | SD24CCTL5 | SD24_A Channel 5 Control | Read/write | 00h with PUC | Section 27.4.4 |
| 11Ch | SD24MEM5 | SD24_A Channel 5 Conversion Memory | Read/write | 00h with PUC | Section 27.4.5 |
| B5h | SD24INCTL5 | SD24_A Channel 5 Input Control | Read/write | 00h with PUC | Section 27.4.6 |
| BDh | SD24PRE5 | SD24_A Channel 5 Preload | Read/write | 00h with PUC | Section 27.4.7 |
| 10Eh | SD24CCTL6 | SD24_A Channel 6 Control | Read/write | 00h with PUC | Section 27.4.4 |
| 11Eh | SD24MEM6 | SD24_A Channel 6 Conversion Memory | Read/write | 00h with PUC | Section 27.4.5 |
| B6h | SD24INCTL6 | SD24_A Channel 6 Input Control | Read/write | 00h with PUC | Section 27.4.6 |
| BEh | SD24PRE6 | SD24_A Channel 6 Preload | Read/write | 00h with PUC | Section 27.4.7 |
SD24_A Control Register
SD24CTL is shown in Figure 27-13 and described in Table 27-6.
Return to Table 27-5.
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| Reserved | SD24XDIVx | SD24LP | |||||
| r-0 | r-0 | r-0 | r-0 | rw-0 | rw-0 | rw-0 | rw-0 |
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SD24DIVx | SD24SSELx | SD24VMIDON | SD24REFON | SD24OVIE | Reserved | ||
| rw-0 | rw-0 | rw-0 | rw-0 | rw-0 | rw-0 | rw-0 | r-0 |
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 15-12 | Reserved | R | 0h | |
| 11-9 | SD24XDIVx | R/W | 0h | SD24_A clock divider 00b = /1 01b = /3 10b = /16 11b = /48 1xxb = Reserved |
| 8 | SD24LP | R/W | 0h | Low-power mode. This bit selects a reduced-speed reduced-power mode 0b = Low-power mode is disabled 1b = Low-power mode is enabled. The maximum clock frequency for the SD24_A is reduced. |
| 7-6 | SD24DIVx | R/W | 0h | SD24_A clock divider 00b = /1 01b = /2 10b = /4 11b = /8 |
| 5-4 | SD24SSELx | R/W | 0h | SD24_A clock source select 00b = MCLK 01b = SMCLK 10b = ACLK 11b = External TACLK |
| 3 | SD24VMIDON | R/W | 0h | VMID buffer on 0b = Off 1b = On |
| 2 | SD24REFON | R/W | 0h | Reference generator on 0b = Reference off 1b = Reference on |
| 1 | SD24OVIE | R/W | 0h | SD24_A overflow interrupt enable. The GIE bit must also be set to enable the interrupt. 0b = Overflow interrupt disabled 1b = Overflow interrupt enabled |
| 0 | Reserved | R | 0h |
SD24_A Interrupt Vector Register
SD24IV is shown in Figure 27-14 and described in Table 27-7.
Return to Table 27-5.
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| SD24IVx | |||||||
| r-0 | r-0 | r-0 | r-0 | r-0 | r-0 | r-0 | r-0 |
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SD24IVx | |||||||
| r-0 | r-0 | r-0 | r-0 | r-0 | r-0 | r-0 | r-0 |
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 15-0 | SD24IVx | R | 0h | SD24_A interrupt vector value. See Table 27-8. |
| SD24IV Contents | Interrupt Source | Interrupt Flag | Interrupt Priority |
|---|---|---|---|
| 000h | No interrupt pending | – | |
| 002h | SD24MEMx overflow | SD24CCTLx SD24OVIFG#SLAU144SD24A4355 | Highest |
| 004h | SD24_A Channel 0 Interrupt | SD24CCTL0 SD24IFG | |
| 006h | SD24_A Channel 1 Interrupt | SD24CCTL1 SD24IFG | |
| 008h | SD24_A Channel 2 Interrupt | SD24CCTL2 SD24IFG | |
| 00Ah | SD24_A Channel 3 Interrupt | SD24CCTL3 SD24IFG | |
| 00Ch | SD24_A Channel 4 Interrupt | SD24CCTL4 SD24IFG | |
| 00Eh | SD24_A Channel 5 Interrupt | SD24CCTL5 SD24IFG | |
| 010h | SD24_A Channel 6 Interrupt | SD24CCTL6 SD24IFG | Lowest |
SD24_A Analog Enable Register
SD24AE is shown in Figure 27-15 and described in Table 27-9.
Return to Table 27-5.
Not implemented on all devices; see the device-specific data sheet.
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SD24AE7 | SD24AE6 | SD24AE5 | SD24AE4 | SD24AE3 | SD24AE2 | SD24AE1 | SD24AE0 |
| rw-0 | rw-0 | rw-0 | rw-0 | rw-0 | rw-0 | rw-0 | rw-0 |
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 7 | SD24AE7 | R/W | 0h | SD24_A analog enable 7 0b = External input disabled. Negative inputs are internally connected to VSS. 1b = External input enabled |
| 6 | SD24AE6 | R/W | 0h | SD24_A analog enable 6 0b = External input disabled. Negative inputs are internally connected to VSS. 1b = External input enabled |
| 5 | SD24AE5 | R/W | 0h | SD24_A analog enable 5 0b = External input disabled. Negative inputs are internally connected to VSS. 1b = External input enabled |
| 4 | SD24AE4 | R/W | 0h | SD24_A analog enable 4 0b = External input disabled. Negative inputs are internally connected to VSS. 1b = External input enabled |
| 3 | SD24AE3 | R/W | 0h | SD24_A analog enable 3 0b = External input disabled. Negative inputs are internally connected to VSS. 1b = External input enabled |
| 2 | SD24AE2 | R/W | 0h | SD24_A analog enable 2 0b = External input disabled. Negative inputs are internally connected to VSS. 1b = External input enabled |
| 1 | SD24AE1 | R/W | 0h | SD24_A analog enable 1 0b = External input disabled. Negative inputs are internally connected to VSS. 1b = External input enabled |
| 0 | SD24AE0 | R/W | 0h | SD24_A analog enable 0 0b = External input disabled. Negative inputs are internally connected to VSS. 1b = External input enabled |
SD24_A Channel x Control Register
SD24CCTLx is shown in Figure 27-16 and described in Table 27-10.
Return to Table 27-5.
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| Reserved | SD24BUFx | SD24UNI | SD24XOSR | SD24SNGL | SD24OSRx | ||
| r-0 | rw-0 | rw-0 | rw-0 | rw-0 | rw-0 | rw-0 | rw-0 |
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SD24LSBTOG | SD24LSBACC | SD24OVIFG | SD24DF | SD24IE | SD24IFG | SD24SC | SD24GRP |
| rw-0 | rw-0 | rw-0 | rw-0 | rw-0 | rw-0 | rw-0 | r(w)-0 |
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 15 | Reserved | R | 0h | |
| 14-13 | SD24BUFx | R/W | 0h | High-impedance input buffer mode. Not implemented on all devices (see the device-specific data sheet).Reserved with r-0 access if high-impedance buffer not implemented. 00b = Buffer disabled 01b = Low speed and current 10b = Medium speed and current 11b = High speed and current |
| 12 | SD24UNI | R/W | 0h | Unipolar mode select 0b = Bipolar mode 1b = Unipolar mode |
| 11 | SD24XOSR | R/W | 0h | Extended oversampling ratio. This bit, along with the SD24OSRx bits, select the oversampling ratio. See Table 27-10 bit description for settings. |
| 10 | SD24SNGL | R/W | 0h | Single conversion mode select 0b = Continuous conversion mode 1b = Single conversion mode |
| 9-8 | SD24OSRx | R/W | 0h | Oversampling ratio When SD24XOSR = 0 00b = 256 01b = 128 10b = 64 11b = 32 When SD24XOSR = 1 00b = 512 01b = 1024 10b = Reserved 11b = Reserved |
| 7 | SD24LSBTOG | R/W | 0h | LSB toggle. This bit, when set, causes SD24LSBACC to toggle each time the SD24MEMx register is read. 0b = SD24LSBACC does not toggle with each SD24MEMx read 1b = SD24LSBACC toggles with each SD24MEMx read |
| 6 | SD24LSBACC | R/W | 0h | LSB access. This bit allows access to the upper or lower 16-bits of the SD24_A conversion result. 0b = SD24MEMx contains the most significant 16-bits of the conversion. 1b = SD24MEMx contains the least significant 16-bits of the conversion. |
| 5 | SD24OVIFG | R/W | 0h | SD24_A overflow interrupt flag 0b = No overflow interrupt pending 1b = Overflow interrupt pending |
| 4 | SD24DF | R/W | 0h | SD24_A data format 0b = Offset binary 1b = 2s complement |
| 3 | SD24IE | R/W | 0h | SD24_A interrupt enable 0b = Disabled 1b = Enabled |
| 2 | SD24IFG | R/W | 0h | SD24_A interrupt flag. SD24IFG is set when new conversion results are available. SD24IFG is automatically reset when the corresponding SD24MEMx register is read, or may be cleared with software. 0b = No interrupt pending 1b = Interrupt pending |
| 1 | SD24SC | R/W | 0h | SD24_A start conversion 0b = No conversation start 1b = Start conversation |
| 0 | SD24GRP | R/W | 0h | SD24_A group. Groups SD24_A channel with next higher channel. Not used for the last channel. 0b = Not grouped 1b = Grouped |
SD24_A Channel x Conversion Memory Register
SD24MEMx is shown in Figure 27-17 and described in Table 27-11.
Return to Table 27-5.
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| Conversion_Results | |||||||
| r-0 | r-0 | r-0 | r-0 | r-0 | r-0 | r-0 | r-0 |
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Conversion_Results | |||||||
| r-0 | r-0 | r-0 | r-0 | r-0 | r-0 | r-0 | r-0 |
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 15-0 | Conversion_Results | R | 0h | Conversion results. The SD24MEMx register holds the upper or lower 16-bits of the digital filter output, depending on the SD24LSBACC bit. |
SD24_A Channel x Input Control Register
SD24INCTLx is shown in Figure 27-18 and described in Table 27-12.
Return to Table 27-5.
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SD24INTDLYx | SD24GAINx | SD24INCHx | |||||
| rw-0 | rw-0 | rw-0 | rw-0 | rw-0 | rw-0 | rw-0 | rw-0 |
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 7-6 | SD24INTDLYx | R/W | 0h | Interrupt delay generation after conversion start. These bits select the delay for the first interrupt after conversion start. 00b = Fourth sample causes interrupt 01b = Third sample causes interrupt 10b = Second sample causes interrupt 11b = First sample causes interrupt |
| 5-3 | SD24GAINx | R/W | 0h | SD24_A preamplifier gain 000b = ×1 001b = ×2 010b = ×4 011b = ×8 100b = ×16 101b = ×32 110b = Reserved 111b = Reserved |
| 2-0 | SD24INCHx | R/W | 0h | SD24_A channel differential pair input. The available selections are device dependent. See the device-specific data sheet. 000b = Ax.0 001b = Ax.1. Not available on all devices (see device-specific data sheet). 010b = Ax.2. Not available on all devices (see device-specific data sheet). 011b = Ax.3. Not available on all devices (see device-specific data sheet). 100b = Ax.4. Not available on all devices (see device-specific data sheet). 101b = (AVCC – AVSS) / 11 110b = Temperature sensor 111b = Short for PGA offset measurement |
SD24_A Channel x Preload Register
SD24PREx is shown in Figure 27-19 and described in Table 27-13.
Return to Table 27-5.
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Preload_Value | |||||||
| rw-0 | rw-0 | rw-0 | rw-0 | rw-0 | rw-0 | rw-0 | rw-0 |
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 7-0 | Preload_Value | R/W | 0h | SD24_A digital filter preload value |