Renesas RX100 Series User Manual page 860

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

Advertisement

RX13T Group
Operation example 3: Group B trigger input during group A scan, with rescan setting
The following describes an example when a group B trigger is input during scan operation on group A when the
ADGPSCR.GBRSCN bit is 1 (scan for the group is restarted after having been discontinued due to group priority
operation).
If the ADGPSCR.GBRSCN bit is 0, all group B triggers that are input during scan operation on group A are disabled.
(1) When a group A trigger input sets the ADCSR.ADST bit to 1 (A/D conversion start), scan for the ANn channels of
group A selected in the ADANSA0 register, starts from the channel with the smallest number n.
(2) If a group B trigger is input during scan for group A, scan for group B can be started.
(3) On completion of A/D conversion on a single channel, the result is stored in the corresponding A/D data register
(ADDRy).
(4) 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).
(5) After scan for group A is completed, scan for the ANn channels of group B selected in the ADANSB0 register,
starts from the channel with the smallest number n while the ADCSR.ADST bit remains 1. When a group A trigger
is input during scan for group B, group A scan starts as in example 1, and group B scan starts after group A scan is
completed.
(6) On completion of A/D conversion on a single channel, the result is stored in the corresponding A/D data register
(ADDRy).
(7) After scan for group B is completed, a group B scan end interrupt request is generated if the ADCSR.GBADIE bit is
1 (interrupt generation upon group B scan completion enabled).
(8) 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
ADST
Group A
Channel 0
Waiting for
conversion
(AN000)
Group B
Channel 1
(AN001)
Channel 2
(AN002)
Channel 3
(AN003)
ADDR0
ADDR1
ADDR2
ADDR3
Scan end
interrupt
Group B Scan end
Interrupt
Figure 26.18
Example 3 of Group Priority Operation: Group B Trigger Input during Group A Scan, With Rescan
Setting (ADGSPCR.GBRSCN = 1, ADGSPCR.GBRP = 0, ADGSPCR.LGRRS = 0)
R01UH0822EJ0100 Rev.1.00
Jul 31, 2019
Group A scanned
(Trigger is activated)
A/D conversion
(2)
started
(1)
A/D conversion A1
(5)
Waiting for conversion
A/D conversion B1
Waiting for conversion
Waiting for conversion
Stored
(3)
(4)
Group B scanned
(group B is automatically activated by group B trigger
input during group A scan)
Waiting for conversion
A/D conversion B2
A/D conversion result A1
Stored
(6)
26. 12-Bit A/D Converter (S12ADF)
(8)
Waiting for conversion
Waiting for conversion
A/D conversion B3
Waiting for conversion
Stored
A/D conversion result B1
Stored
A/D conversion result B2
(6)
Stored
A/D conversion result B3
(6)
(7)
Page 860 of 1041

Advertisement

Table of Contents
loading

Table of Contents