Renesas RX100 Series User Manual page 858

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

Advertisement

RX13T Group
(1) Group Priority Operation for Two Groups (ADGSPCR.PGS = 1, ADGCTRGR.GRCE = 0)
The following examples 1 to 5 show group priority operation in group scan mode (ADGSPCR.GBRSCN = 1,
ADGSPCR.GBRP = 0, ADGSPCR.LGRRS = 0) when channel 0 is selected for group A and channels 1 to 3 are selected
for group B.
Operation example 1: Group A trigger input during group B scan, with rescan setting
(1) When a group B trigger input 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) A scan end interrupt request is generated if the ADCSR.ADIE bit is 1 (interrupt generation upon scanning
completion enabled).
(6) 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.
(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) The ADCSR.ADST bit is automatically cleared to 0 when scan of all selected channels is completed, and the 12-bit
A/D converter enters a wait state.
Trigger for
group A
Trigger for
group B
(1)
ADST
Group A
Channel 0
(AN000)
Group B
Channel 1
Waiting for
conversion
(AN001)
Channel 2
Waiting for conversion
(AN002)
Channel 3
(AN003)
ADDR0
ADDR1
ADDR2
ADDR3
Scan end
interrupt
Group B Scan end
Interrupt
Figure 26.16
Example 1 of Group Priority Operation: Group A Trigger Input during Group B Scan, With Rescan
Setting (ADGSPCR.GBRSCN = 1, ADGSPCR.GBRP = 0, ADGSPCR.LGRRS = 0)
R01UH0822EJ0100 Rev.1.00
Jul 31, 2019
Group B scanned
(Group B is activated by a group B trigger.)
A/D conversion
started
Waiting for conversion
A/D conversion B1
Waiting for conversion
A/D conversion B2
Waiting for conversion
A/D conversion B3
Stored
(2)
Stored
(2)
Group A scanned
(Group priority
(Group B is automatically activated for rescanning.)
operation)
A/D conversion A1
(3)
(6)
A/D conversion B4
Waiting for conversion
Waiting for conversion
Stored
(4)
A/D conversion result B1
A/D conversion result B2
(5)
26. 12-Bit A/D Converter (S12ADF)
Group B scanned
(9)
Waiting for conversion
Waiting for conversion
Waiting for conversion
A/D conversion B5
A/D conversion B6
Waiting for conversion
A/D conversion result A1
Stored
A/D conversion result B4
(7)
Stored
A/D conversion result B5
(7)
Stored
A/D conversion result B6
(7)
(8)
Page 858 of 1041

Advertisement

Table of Contents
loading

Table of Contents