The left-aligned 8-bit ADC result in ADRESH register can be transferred directly to the DAC using DMA, creating an audio pass-through channel(1). The DMA setup configurations are listed in Table 3-6.
DMA1 Setup | ||
---|---|---|
SSA | Source Address | &ADRESH |
SSZ | Source Size | 1 |
SMR | Source Memory Region | SFR |
SMODE | Source Address Mode | SPTR remains unchanged |
DSA | Destination Address | &DAC1DATL |
DSZ | Destination Size | 1 |
DMODE | Destination Address Mode | DPTR remains unchanged |
SIRQEN | Start Trigger Enable | Yes |
SIRQ | Start Trigger | AD (ADC conversion) |
SSTP | Source Counter Reload Stop | No - SIRQEN not cleared |
DSTP | Destination Counter Reload Stop | No - SIRQEN not cleared |
AIRQEN | Abort Trigger Enable | No (stops when SCNT/DCNT reloads) |
AIRQ | Abort Trigger | N/A |
1
, the DMA stops after the first transfer and waits for the
next trigger.