Renesas RX100 Series User Manual page 862

32-bit mcu
Hide thumbs Also See for RX100 Series:
Table of Contents

Advertisement

RX13T Group
Operation example 5 shows group priority operation in group scan mode (ADGSPCR.GBRSCN = 1, ADGSPCR.GBRP
= 1, ADGSPCR.LGRRS = 0) when channel 0 is selected for group A and channels 1 and 2 are selected for group B.
When the ADGCTRGR.GRCE bit is set to 1, single scan mode is continuously operated on group C and scan for group
B is started by trigger input.
Operation example 5: Continuous single scan operation on group B
(1) When setting ADGSPCR.GBRP to 1 sets the ADCSR.ADST bit to 1 (A/D conversion start), scan for the ANn
channels selected in the ADANSB0 register, starts from the channel with the smallest number n.
(2) On completion of A/D conversion on a single channel, the result is stored in the corresponding A/D data register
(ADDRy).
(3) If a group A trigger is input during scan for group B, group B scan is discontinued while the ADCSR.ADST bit
remains 1, and scan for the ANn channels of group A selected in the ADANSA0 register, starts from the channel
with the smallest number n. If A/D conversion is not completed when scan was discontinued, the result is not stored
in the corresponding A/D data register (ADDRy).
(4) On completion of A/D conversion on a single channel, the result is stored in the corresponding A/D data register
(ADDRy).
(5) After scan for group A is completed, a scan end interrupt request is generated if the ADCSR.ADIE bit is 1 (interrupt
generation upon scanning completion enabled).
(6) If the ADGSPCR.GBRP bit is set to 1 (single scan is continuously operated), scan for the ANn channels of group B
selected in the ADANSB0 register, restarts from the channel with the smallest number n while the ADCSR.ADST
bit remains 1.
(7) On completion of A/D conversion on a single channel, the result is stored in the corresponding A/D data register
(ADDRy).
(8) A group B scan end interrupt request is generated if the ADCSR.GBADIE bit is 1 (interrupt generation upon group
B scan completion enabled).
(9) If the ADGSPCR.GBRP bit is set to 1 (single scan is continuously operated), scan for the ANn channels of group B
selected in the ADANSB0 register, restarts from the channel with the smallest number n while the ADCSR.ADST
bit remains 1.
To continuously operate single scan for group B, disable trigger input for group B.
Steps 6 to 9 are repeated as long as the ADGSPCR.GBRP bit remains 1. Clearing of the ADCSR.ADST bit to 0 is
prohibited while the ADGSPCR.GBRP bit is set to 1. To forcibly stop scanning when ADGSPCR.GBRP = 1, follow the
procedures for clear operation by software through the ADCSR.ADST bit shown in section 26.6.2, Notes on
Stopping A/D Conversion .
R01UH0822EJ0100 Rev.1.00
Jul 31, 2019
26. 12-Bit A/D Converter (S12ADF)
Page 862 of 1041

Advertisement

Table of Contents
loading

Table of Contents