DSCSAM_ADSETTINGS
Structure containing AD input parameters.
Structure Definition
Structure Members
Name | Description | Applicable Boards |
Sedi | 0 = single-ended | Elton, Stevie, Jethro, Ziggy |
| 1 = differential ended | Elton, Stevie, Jethro |
Lowch | low channel, 0-5(Single ended) | Elton, Stevie, Jethro, Ziggy |
low channel, 0-2(Differential ended) | Elton, Stevie, Jethro | |
Highch | high channel, 0-5(Single ended) | Elton, Stevie, Jethro, Ziggy |
high channel, 0-2(Differential ended) | Elton, Stevie, Jethro | |
Currentch | channel number 0-5 for current conversion | Elton, Stevie, Jethro, Ziggy |
ScanEnable | 0 = sample, 1 = scan | Elton, Stevie, Jethro, Ziggy |
Adtrig | 00 = software initiated A/D conversion 01 = external GPIO pin is used to trigger A/D conversion | Elton, Stevie, Jethro, Ziggy |
Adsel | 0 = A/D circuit 0, 1 = AD circuit 1 | Elton, Stevie, Jethro, Ziggy |
Adref | 00 = external reference (set to 3.3V ) 01 = internal bandgap reference | Elton, Stevie, Jethro, Ziggy |
Adtag | 0 = upper 4 bits of 16-bit value = 0000 1 = upper 4 bits of 16-bit value contain A/D channel number | Elton, Stevie, Jethro, Ziggy |
Adchset | ADCHSET = 0: Selects channel number for current conversion ADCHSET = 1: Selects high/low channel number | Elton, Stevie, Jethro, Ziggy |
Adres | 0 - No oversampling, A/D resolution = 12 bits 1 - A/D resolution = 14 bits 2 - A/D resolution = 15 bits 3 - A/D resolution = 16 bits | Elton, Stevie, Jethro, Ziggy |
Adsamples | Number of samples to be accumulated to calculate average sample: 1, 2, 4, 8, 6, 32, 64,128, 256, 512 and 1024 (Please refer section 45.6.2.10 in SAMD51 datasheet for more information) | Elton, Stevie, Jethro, Ziggy |
Last updated