SNIU028E February 2016 – February 2025 UCD3138 , UCD3138064 , UCD3138064A , UCD3138128 , UCD3138A , UCD3138A64
Address 00040000
| 31 | 24 |
| EXT_TRIG_DLY |
| R/W-0000 0000 |
| 23 | 22 | 21 | 20 | 19 | 16 |
| EXT_TRIG_GPIO_VAL | EXT_TRIG_GPIO_DIR | EXT_TRIG_GPIO_EN | EXT_TRIG_EN | EXT_TRIG_SEL | |||
| R/W-0 | R/W-0 | R/W-0 | R/W-0 | R-0000 | |||
| 15 | 13 | 12 | 11 | 10 | 8 |
| SAMPLING_SEL | ADC_SEL_REF | ADC_ROUND | BYPASS_EN | ||||
| R/W-000 | R/W-0 | R/W-0 | R/W-111 | ||||
| 7 | 4 | 3 | 2 | 1 | 0 |
| MAX_CONV | SINGLE_ SWEEP | SW_START | ADC_INT_EN | ADC_EN | |||
| R/W-0000 | R/W-0 | R/W-0 | R/W-0 | R/W-0 | |||
| LEGEND: R/W = Read/Write; R = Read only; -n = value after reset |
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-24 | EXT_TRIG_DLY | R/W | 0000 0000 | 8-bit External ADC Trigger Delay configuration, LSB bit resolution equals period of ADC Clock (High Frequency Oscillator Frequency divided by 4) |
| 23 | EXT_TRIG_GPIO_VAL | R/W | 0 | Output value of ADC_EXT_TRIG pin when configured in GPIO mode 0 = ADC_EXT_TRIG pin driven low (Default) 1 = ADC_EXT_TRIG pin driven high |
| 22 | EXT_TRIG_GPIO_DIR | R/W | 0 | Direction of ADC_EXT_TRIG pin when configured in GPIO mode 0 = ADC_EXT_TRIG pin configured as input (Default) 1 = ADC_EXT_TRIG pin configured as output |
| 21 | EXT_TRIG_GPIO_EN | R/W | 0 | Configuration of ADC_EXT_TRIG pin 0 = ADC_EXT_TRIG pin configured in functional mode (Default) 1 = ADC_EXT_TRIG pin configured in GPIO mode |
| 20 | EXT_TRIG_EN | R/W | 0 | External Trigger Enable, conversions are started using the external trigger as selectable by the EXT_TRIG_SEL bits. 0 = Disable External Trigger capability (Default) 1 = Enable External Trigger capability |
| 19-16 | EXT_TRIG_SEL | R | 0000 | Selects which external trigger can start a conversion loop. 0 = HS Loop1 Event 1 (DPWMA Low Resolution Edge) (Default) 1 = HS Loop1 Event 3 (DPWMB Low Resolution Edge) 2 = HS Loop2 Event 1 (DPWMA Low Resolution Edge) 3 = HS Loop2 Event 3 (DPWMB Low Resolution Edge) 4 = HS Loop3 Event 1 (DPWMA Low Resolution Edge) 5 = HS Loop3 Event 3 (DPWMB Low Resolution Edge) 6 = HS Loop4 Event 1 (DPWMA Low Resolution Edge) 7 = HS Loop4 Event 3 (DPWMB Low Resolution Edge) 8 = ADC_EXT_TRIG pin 9 = Analog Comparator A Output A = Analog Comparator B Output B = Analog Comparator C Output C = Analog Comparator D Output D = Analog Comparator E Output E = Analog Comparator F Output F = Analog Comparator G Output |
| 15-13 | SAMPLING_SEL | R/W | 000 | Defines ADC sampling and hold timing setup 111 = 1008KS/s 110 = 267KS/s 101 = 1008KS/s 100 = 538KS/s 011 = 504KS/s 010 = 744KS/s 001 = 744KS/s 000 = 267KS/s (Default) |
| 12 | ADC_SEL_REF | R/W | 0 | ADC Voltage Reference Select 0= Selects Internal ADC voltage reference (Default) 1 = Selects AVDD as ADC voltage reference |
| 11 | ADC_ROUND | R/W | 0 | Enables rounding of ADC Result to 10 bits 0 = ADC Results are not rounded (Default) 1 = ADC Results are rounded to 10 most significant bits |
| 10-8 | BYPASS_EN | R/W | 111 | Enables dual sample/hold for specific channels. There are only four valid settings: 011 = Dual Sample/Hold enabling on Channel 2 101 = Dual Sample/Hold enabling on Channel 1 110 = Dual Sample/Hold enabling on Channel 0 111 = Dual Sample/Hold Disabled (Default) |
| 7-4 | MAX_CONV | R/W | 0000 | Maximum number of conversion done in one conversion loop 0x0 = 1 conversion selection converted in the loop (Default) 0xF = All 16 conversion selections converted in the loop |
| 3 | SINGLE_SWEEP | R/W | 0 | ADC Conversion Mode 0 = Continuous conversion loop runs (Default) 1 = Single conversion loop run |
| 2 | SW_START | R/W | 0 | Firmware ADC Conversion Start, bit will be cleared automatically by hardware at end of ADC conversion 0 = Conversions not initiated by firmware (Default) 1 = Initiate an ADC conversion loop |
| 1 | ADC_INT_EN | R/W | 0 | End-of-conversion Interrupt Enable 0 = Disable End-of-Conversion Interrupt (Default) 1 = Enable End-of-Conversion Interrupt |
| 0 | ADC_EN | R/W | 0 | ADC12 Enable Control 0 = Disables ADC (Default) 1 = Enables ADC |