Renesas RX100 Series User Manual page 864

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

Advertisement

RX13T Group
(2) Group Priority Operation for Three Groups (ADGSPCR.PGS = 1, ADGCTRGR.GRCE = 1)
The following examples 1 to 5 show group priority operation in group scan mode (ADGSPCR.GBRSCN = 1,
ADGSPCR.GBRP = 0, ADGSPCR.LGRRS = 1) when channel 0 is selected for group A, channels 1 and 2 are selected
for group B, and channels 3 and 4 are selected for group C.
The priority groups mean groups A and B for group C and group A for group B.
Operation example 1: Priority group trigger input during low-priority group scan, with rescan setting
(1) When a group C trigger input sets the ADCSR.ADST bit to 1 (A/D conversion start), scan for the ANn channels
selected in the ADANSC0 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 B trigger is input during scan for group C, group C scan is discontinued while the ADCSR.ADST bit
remains 1, and scan for the ANn channels of group B selected in the ADANSB0 register, starts from the channel
with the smallest number n. On completion of A/D conversion on a single channel, the result is 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) 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).
(6) On completion of A/D conversion on a single channel, the result is stored in the corresponding A/D data register
(ADDRy)
(7) A scan end interrupt request is generated if the ADCSR.ADIE bit is 1 (interrupt generation upon scanning
completion enabled).
(8) If the ADGSPCR.GBRSCN bit is 1 (scan for the group is restarted after having been discontinued due to group
priority operation), 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. If the ADGSPCR.LGRRS bit is set to 1
at this time, scan for group B starts from the channel on which A/D conversion was discontinued.
(9) On completion of A/D conversion on a single channel, the result is stored in the corresponding A/D data register
(ADDRy)
(10) A group B scan end interrupt request is generated if the ADCSR.GBADIE bit is 1 (interrupt generation upon group
B scan completion enabled).
(11) If the ADGSPCR.GBRSCN bit is 1, scan for the ANn channels of group C selected in the ADANSC0 register,
restarts from the channel with the smallest number n while the ADCSR.ADST bit remains 1. If the
ADGSPCR.LGRRS bit is set to 1 at this time, scan for group C starts from the channel on which A/D conversion
was discontinued.
(12) On completion of A/D conversion on a single channel, the result is stored in the corresponding A/D data register
(ADDRy)
(13) A group C scan end interrupt is generated if the ADGCTRGR.GCADIE bit is 1 (interrupt generation upon group C
scan completion enabled).
(14) The ADST bit is automatically cleared to 0 when scan for group A is completed, and the 12-bit A/D converter enters
a wait state.
R01UH0822EJ0100 Rev.1.00
Jul 31, 2019
26. 12-Bit A/D Converter (S12ADF)
Page 864 of 1041

Advertisement

Table of Contents
loading

Table of Contents