37.13.25 ADC Timing for First Class Channel Register
| Name: | ADC0TIME |
| Offset: | 0x350 |
| Reset: | 0x00000000 |
| Property: | - |
| Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
| EIS0[2:0] | SELRES0[1:0] | ||||||||
| Access | R/W | R/W | R/W | R/W | R/W | ||||
| Reset | 0 | 0 | 0 | 0 | 0 | ||||
| Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
| BCHEN0 | ADCDIV0[6:0] | ||||||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
| SAMC0[9:8] | |||||||||
| Access | R/W | R/W | |||||||
| Reset | 0 | 0 | |||||||
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| SAMC0[7:0] | |||||||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
Bits 28:26 – EIS0[2:0] Early Interrupt Select Bits for First Class Channel Index
- For SELRES0[1:0] ==
2’b11, meaning 12-bit Resolution, all 8 possible settings for Early interrupt are allowed, 0 to 7 (1 to 8 Core Clock periods early) - For SELRES0[1:0] ==
2’b10, meaning 10-bit Resolution, all 8 possible settings for Early interrupt are allowed, 0 to 7 (1 to 8 Core Clock periods early) - For SELRES0[1:0] ==
2’b01, meaning 8-bit Resolution, only the 6 lowest settings are allowed, 0 to 5 (1 to 6 Core Clock periods early) - For SELRES0[1:0] ==
2’b00, meaning 6-bit Resolution, only the 4 lowest settings are allowed, 0 to 3 (1 to 4 Core Clock periods early)
The hardware will utilize the maximum allowed Early Interrupt setting if the user programs the EIS0 bit-field to a non-allowed value.
| Value | Description |
|---|---|
| 111 | The early ready interrupt is generated 8 ADC core clocks prior to end of conversion |
| 110 | The early ready interrupt is generated 7 ADC core clocks prior to end of conversion |
| 101 | The early ready interrupt is generated 6 ADC core clocks prior to end of conversion |
| 100 | The early ready interrupt is generated 5 ADC core clocks prior to end of conversion |
| 011 | The early ready interrupt is generated 4 ADC core clocks prior to end of conversion |
| 010 | The early ready interrupt is generated 3 ADC core clocks prior to end of conversion |
| 001 | The early ready interrupt is generated 2 ADC core clocks prior to end of conversion |
| 000 | The early ready interrupt is generated 1 ADC core clock prior to end of conversion |
Bits 25:24 – SELRES0[1:0] ADCx Resolution Select bits
00: 6 bits01: 8 bits10: 10 bits11: 12 bits
| Value | Description |
|---|---|
| 00 | Sets the resolution to 6 bits for the ADC |
| 01 | Sets the resolution to 8 bits for the ADC |
| 10 | Sets the resolution to 10 bits for the ADC |
| 11 | Sets the resolution to 12 bits for the ADC |
Bit 23 – BCHEN0 Buffer Channel Enable bit
1’ and if
ADCDMASTAT.DMAGEN == 1, the output data of first class channel will be
saved by the DMA interface to the system RAM. If set to ‘0’, this first
class channel output data can be retrieved only via the UPB interface.Bits 22:16 – ADCDIV0[6:0] ADCx Clock Divisor bits
Division Ratio for the SAR ADC core clock core_clk[x] of the First Class Channel index from the ADC control clock ctl_clk.
The ADCDIV0 bit field divides the ADC control clock ctl_clk with period TQ:
| Value | Description |
|---|---|
| 1111111 | 2TQ·(ADCDIV0[6:0]) = 254·TQ = TADx |
| ······ | — |
| 0000011 | 2TQ·(ADCDIV0[6:0]) = 6·TQ = TADx |
| 0000010 | 2TQ·(ADCDIV0[6:0]) = 4·TQ = TADx |
| 0000001 | 2TQ·(ADCDIV0[6:0]) = 2·TQ = TADx |
| 0000000 | Reserved (but still implemented as 2TQ·(ADCDIV0[6:0]) = 2·TQ = TADx) |
Bits 9:0 – SAMC0[9:0] ADCx Sample Time bits
This bit field uses the encoding as follows:
SAMC0[9:0] is specified in TADx = period of the core_clk[x], which is the ADC core clock for the first class ADC core index x, controlled by ADCDIV0[6:0] defined above in this table.
| Value | Description |
|---|---|
| 1111111111 | 1025 TADx |
| ····· | — |
| 0000000001 | 3 TADx |
| 0000000000 | 2 TADx |
