SWCU194 March 2023 CC1314R10 , CC1354P10 , CC1354R10 , CC2674P10 , CC2674R10
Table 20-160 lists the memory-mapped registers for the AUX_ANAIF registers. All register offset addresses not listed in Table 20-160 should be considered as reserved locations and the register contents should not be modified.
Offset | Acronym | Register Name | Section |
---|---|---|---|
10h | ADCCTL | ADC Control | Section 20.8.8.1 |
14h | ADCFIFOSTAT | ADC FIFO Status | Section 20.8.8.2 |
18h | ADCFIFO | ADC FIFO | Section 20.8.8.3 |
1Ch | ADCTRIG | ADC Trigger | Section 20.8.8.4 |
20h | ISRCCTL | Current Source Control | Section 20.8.8.5 |
30h | DACCTL | DAC Control | Section 20.8.8.6 |
34h | LPMBIASCTL | Low Power Mode Bias Control | Section 20.8.8.7 |
38h | DACSMPLCTL | DAC Sample Control | Section 20.8.8.8 |
3Ch | DACSMPLCFG0 | DAC Sample Configuration 0 | Section 20.8.8.9 |
40h | DACSMPLCFG1 | DAC Sample Configuration 1 | Section 20.8.8.10 |
44h | DACVALUE | DAC Value | Section 20.8.8.11 |
48h | DACSTAT | DAC Status | Section 20.8.8.12 |
Complex bit access types are encoded to fit into small table cells. Table 20-161 shows the codes that are used for access types in this section.
Access Type | Code | Description |
---|---|---|
Read Type | ||
R | R | Read |
Write Type | ||
W | W | Write |
Reset or Default Value | ||
-n | Value after reset or the default value |
ADCCTL is shown in Table 20-162.
Return to the Summary Table.
ADC Control
Configuration of ADI_4_AUX:ADC0.SMPL_MODE decides if the ADC trigger starts sampling or conversion.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-15 | RESERVED | R | 0h | Reserved |
14 | START_POL | R/W | 0h | Select active polarity for START_SRC event.
0h = Set ADC trigger on rising edge of event source. 1h = Set ADC trigger on falling edge of event source. |
13-8 | START_SRC | R/W | 3Fh | Select ADC trigger event source from the asynchronous AUX event bus. Set START_SRC to NO_EVENT if you want to trigger the ADC manually through ADCTRIG.START. If you write a non-enumerated value the behavior is identical to NO_EVENT. The written value is returned when read. 0h = AUX_EVCTL:E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C_4KHZ 24h = AUX_EVCTL:EVSTAT2.AON_BATMON_BAT_UPD 25h = AUX_EVCTL:EVSTAT2.AON_BATMON_TEMP_UPD 26h = AUX_EVCTL:EVSTAT2.SCLK_LF 27h = AUX_EVCTL:EVSTAT2.PWR_DWN 28h = AUX_EVCTL:EVSTAT2.MCU_ACTIVE 29h = AUX_EVCTL:EVSTAT2.VDDR_RECHARGE 2Ah = AUX_EVCTL:EVSTAT2.ACLK_REF 2Bh = AUX_EVCTL:EVSTAT2.MCU_EV 2Eh = AUX_EVCTL:EVSTAT2.AUX_COMPA 2Fh = AUX_EVCTL:EVSTAT2.AUX_COMPB 30h = AUX_EVCTL:EVSTAT3.AUX_TIMER2_EV0 31h = AUX_EVCTL:EVSTAT3.AUX_TIMER2_EV1 32h = AUX_EVCTL:EVSTAT3.AUX_TIMER2_EV2 33h = AUX_EVCTL:EVSTAT3.AUX_TIMER2_EV3 34h = AUX_EVCTL:EVSTAT3.AUX_TIMER2_PULSE 35h = AUX_EVCTL:EVSTAT3.AUX_TIMER1_EV 36h = AUX_EVCTL:EVSTAT3.AUX_TIMER0_EV 37h = AUX_EVCTL:EVSTAT3.AUX_TDC_DONE 38h = AUX_EVCTL:EVSTAT3.AUX_ISRC_RESET_N 3Dh = AUX_EVCTL:EVSTAT3.AUX_SMPH_AUTOTAKE_DONE 3Fh = No event. |
7-2 | RESERVED | R | 0h | Reserved |
1-0 | CMD | R/W | 0h | ADC interface command. Non-enumerated values are not supported. The written value is returned when read. 0h = Disable ADC interface. 1h = Enable ADC interface. 3h = Flush ADC FIFO. You must set CMD to EN or DIS after flush. System CPU must wait two clock cycles before it sets CMD to EN or DIS. |
ADCFIFOSTAT is shown in Table 20-163.
Return to the Summary Table.
ADC FIFO Status
FIFO can hold up to four ADC samples.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-5 | RESERVED | R | 0h | Reserved |
4 | OVERFLOW | R | 0h | FIFO overflow flag. 0: FIFO has not overflowed. 1: FIFO has overflowed, this flag is sticky until you flush the FIFO. When the flag is set, the ADC FIFO write pointer is static. It is not possible to add more samples to the ADC FIFO. Flush FIFO to clear the flag. |
3 | UNDERFLOW | R | 0h | FIFO underflow flag. 0: FIFO has not underflowed. 1: FIFO has underflowed, this flag is sticky until you flush the FIFO. When the flag is set, the ADC FIFO read pointer is static. Read returns the previous sample that was read. Flush FIFO to clear the flag. |
2 | FULL | R | 0h | FIFO full flag. 0: FIFO is not full, there is less than 4 samples in the FIFO. 1: FIFO is full, there are 4 samples in the FIFO. When the flag is set, it is not possible to add more samples to the ADC FIFO. An attempt to add samples sets the OVERFLOW flag. |
1 | ALMOST_FULL | R | 0h | FIFO almost full flag. 0: There are less than 3 samples in the FIFO, or the FIFO is full. The FULL flag is also asserted in the latter case. 1: There are 3 samples in the FIFO, there is room for one more sample. |
0 | EMPTY | R | 1h | FIFO empty flag. 0: FIFO contains one or more samples. 1: FIFO is empty. When the flag is set, read returns the previous sample that was read and sets the UNDERFLOW flag. |
ADCFIFO is shown in Table 20-164.
Return to the Summary Table.
ADC FIFO
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-12 | RESERVED | R | 0h | Reserved |
11-0 | DATA | R/W | 0h | FIFO data. Read: Get oldest ADC sample from FIFO. Write: Write dummy sample to FIFO. This is useful for code development when you do not have real ADC samples. |
ADCTRIG is shown in Table 20-165.
Return to the Summary Table.
ADC Trigger
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-1 | RESERVED | R | 0h | Reserved |
0 | START | W | 0h | Manual ADC trigger. Write any value to START to trigger ADC. To manually trigger the ADC, you must set ADCCTL.START_SRC to NO_EVENT to avoid conflict with event-driven ADC trigger. |
ISRCCTL is shown in Table 20-166.
Return to the Summary Table.
Current Source Control
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-1 | RESERVED | R | 0h | Reserved |
0 | RESET_N | R/W | 1h | ISRC reset control. 0: ISRC drives 0 uA. 1: ISRC drives current ADI_4_AUX:ISRC.TRIM to COMPA_IN. |
DACCTL is shown in Table 20-167.
Return to the Summary Table.
DAC Control
This register controls the analog part of the DAC.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-6 | RESERVED | R | 0h | Reserved |
5 | DAC_EN | R/W | 0h | DAC module enable. 0: Disable DAC. 1: Enable DAC. The Sensor Controller must not use the DAC when AUX_SYSIF:OPMODEREQ.REQ equals PDA. The System CPU must not use the DAC when AUX_SYSIF:OPMODEREQ.REQ equals PDA in Standby mode. The System CPU must set AUX_SYSIF:PEROPRATE.ANAIF_DAC_OP_RATE to BUS_RATE to use the DAC in Active and Idle modes. Standby, Active, and Idle are power modes defined in TI’s Power Manager. |
4 | DAC_BUFFER_EN | R/W | 0h | DAC buffer enable. DAC buffer reduces the time required to produce the programmed voltage at the expense of increased current consumption. 0: Disable DAC buffer. 1: Enable DAC buffer. Enable buffer when DAC_VOUT_SEL equals COMPA_IN. Do not enable the buffer when AUX_SYSIF:OPMODEREQ.REQ equals PDA or PDLP. |
3 | DAC_PRECHARGE_EN | R/W | 0h | DAC precharge enable. Only enable precharge when ADI_4_AUX:MUX2.DAC_VREF_SEL equals DCOUPL and VDDS is higher than 2.65 V. DAC output voltage range: 0: 0 V to 1.28 V. 1: 1.28 V to 2.56 V. Otherwise, see ADI_4_AUX:MUX2.DAC_VREF_SEL for DAC output voltage range. Enable precharge 1 us before you enable the DAC and the buffer. |
2-0 | DAC_VOUT_SEL | R/W | 0h | DAC output connection. An analog node must only have one driver. Other drivers for the following analog nodes are configured in [ANATOP_MMAP::ADI_4_AUX:*]. 0h = Connect to nothing It is recommended to use NC as intermediate step when you change DAC_VOUT_SEL. 1h = Connect to COMPB_REF analog node. Required setting to use Comparator B. 2h = Connect to COMPA_REF analog node. It is not possible to drive external loads connected to COMPA_REF I/O mux with this setting. 4h = Connect to COMPA_IN analog node. Required setting to drive external load selected in ADI_4_AUX:MUX1.COMPA_IN. |
LPMBIASCTL is shown in Table 20-168.
Return to the Summary Table.
Low Power Mode Bias Control
The low power mode bias module provides bias current to DAC and Comparator A when AUX_SYSIF:OPMODEREQ.REQ differers from A.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-1 | RESERVED | R | 0h | Reserved |
0 | EN | R/W | 0h | Module enable. 0: Disable low power mode bias module. 1: Enable low power mode bias module. Set EN to 1 15 us before you enable the DAC or Comparator A. |
DACSMPLCTL is shown in Table 20-169.
Return to the Summary Table.
DAC Sample Control
The DAC sample clock maintains the DAC voltage stored in the sample-and-hold capacitor. The DAC sample clock waveform consists of a setup phase followed by a hold phase. In the setup phase the sample-and-hold capacitor charges to the programmed voltage. The hold phase maintains the voltage with minimal power.
DACSMPLCFG0 and DACSMPLCFG1 configure the DAC sample clock waveform.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-1 | RESERVED | R | 0h | Reserved |
0 | EN | R/W | 0h | DAC sample clock enable. 0: Disable sample clock. The sample clock stops low and DACSTAT becomes 0 when the current sample clock period completes. 1: Enable DAC sample clock. DACSTAT must be 0 before you enable sample clock. |
DACSMPLCFG0 is shown in Table 20-170.
Return to the Summary Table.
DAC Sample Configuration 0
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-6 | RESERVED | R | 0h | Reserved |
5-0 | CLKDIV | R/W | 0h | Clock division. AUX_SYSIF:PEROPRATE.ANAIF_DAC_OP_RATE divided by (CLKDIV + 1) determines the sample clock base frequency. 0: Divide by 1. 1: Divide by 2. ... 63: Divide by 64. |
DACSMPLCFG1 is shown in Table 20-171.
Return to the Summary Table.
DAC Sample Configuration 1
The sample clock period equals (high time + low time) * base period. DACSMPLCFG0.CLKDIV determines the base period.
Timing requirements (DAC Buffer On / DAC Buffer Off):
- (high time + low time) * base period > (4 us / 1 us)
- (high time * base period) > (2 us / 0.5 us)
- (low time * base period) > (2 us / 0.5 us)
- (low time * base period + HOLD_INTERVAL * sample clock period) < 32 us
If AUX_SYSIF:OPMODEREQ.REQ equals PDLP, you must set:
- H_PER = L_PER = HOLD_INTERVAL = 0.
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-15 | RESERVED | R | 0h | Reserved |
14 | H_PER | R/W | 0h | High time. The sample clock period is high for this many base periods. 0: 2 periods 1: 4 periods |
13-12 | L_PER | R/W | 0h | Low time. The sample clock period is low for this many base periods. 0: 1 period 1: 2 periods 2: 3 periods 3: 4 periods |
11-8 | SETUP_CNT | R/W | 0h | Setup count. Number of active sample clock periods during the setup phase. 0: 1 sample clock period 1: 2 sample clock periods ... 15 : 16 sample clock periods |
7-0 | HOLD_INTERVAL | R/W | 0h | Hold interval. Number of inactive sample clock periods between each active sample clock period during hold phase. The sample clock is low when inactive. The range is 0 to 255. |
DACVALUE is shown in Table 20-172.
Return to the Summary Table.
DAC Value
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-8 | RESERVED | R | 0h | Reserved |
7-0 | VALUE | R/W | 0h | DAC value. Digital data word for the DAC. Only change VALUE when DACCTL.DAC_EN is 0. Then wait 1 us before you enable the DAC. |
DACSTAT is shown in Table 20-173.
Return to the Summary Table.
DAC Status
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-2 | RESERVED | R | 0h | Reserved |
1 | SETUP_ACTIVE | R | 0h | DAC setup phase status. 0: Sample clock is disabled or setup phase is complete. 1: Setup phase in progress. |
0 | HOLD_ACTIVE | R | 0h | DAC hold phase status. 0: Sample clock is disabled or DAC is not in hold phase. 1: Hold phase in progress. |