36.6.3.1 Host/Client Operation
The host/client operation is available only on devices with two ADC instances. The ADC1 will be enabled as a client of ADC0 instance when writing a one to the Client Enable bit in Control A register of the ADC1 instance (ADC1.CTRLA.SLAVEEN). When enabled, GCLK_ADC0 clock and ADC0 controls are internally routed to the ADC1 instance.
In this mode of operation, the client ADC is enabled by accessing the CTRLA register of host ADC. In the same way, the host ADC event inputs will be automatically routed to the client ADC, meaning that the input events configuration must be done in the host ADC (ADC0.EVCTRL).
ADC measurements can be started simultaneously on both ADC’s or interleaved. The trigger mode selection is available in the host ADC Control C register (ADC0.CTRLC.DUALSEL).
- Flush the host ADC (ADC0.SWTRIG.FLUSH = 1)
- Disable/re-enable the host ADC (ADC0.CTRLA.ENABLE)
- Reset and reconfigure host ADC (ADC0.CTRLA.SWRST = 1)