English
Language : 

M32C8A Datasheet, PDF (279/372 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M32C/80 Series
M32C/8A Group
18. A/D Converter
18.1.3 Single Sweep Mode
In single sweep mode, analog voltage that is applied to multiple selected pins is converted to a digital code once
for each pin.
Table 18.6 lists specifications of single sweep mode.
Table 18.6 Single Sweep Mode Specifications
Item
Specification
Function
Analog voltage applied to selected pins is converted once for each pin
Analog input pins
Select one of the following.
• 2 pins (ANi_0 and ANi_1) (i = none, 15)
• 4 pins (ANi_0 to ANi_3)
• 6 pins (ANi_0 to ANi_5)
• 8 pins (ANi_0 to ANi_7)
The following register settings determine which pins are used:
• Bits SCAN1 and SCAN0 in the AD0CON1 register
• Bits APS1 and APS0 in the AD0CON2 register
Start condition
Software trigger is selected. (TRG bit in the AD0CON0 register = 0):
• the ADST bit in the AD0CON0 register is set to 1 (A/D conversion starts)
External trigger, hardware trigger is selected (TRG bit = 1):
• TRG0 bit in the AD0CON2 register = 0
The falling edge is detected on the ADTRG pin after the ADST bit is set to 1
• TRG0 bit = 1
Timer B2 interrupt request of three-phase motor control timer function (after
the ICTB2 register completes counting) is generated after the ADST bit is set
to 1.
Stop condition
• A sequence of A/D conversions is completed (the ADST bit becomes 0 when
software trigger is selected)
• Set the ADST bit to 0 by program (A/D conversion stops)
Interrupt request generation timing • DMAC operating mode is not used (DUS bit in the AD0CON3 register = 0):
Interrupt request is generated after a sequence of A/D conversions is
completed.
• DMAC operating mode is used (DUS bit = 1):
Interrupt request is generated every time each A/D conversion is completed
Read of A/D conversion result
• DMAC operating mode is not used (DUS bit = 0):
Read the AD0j register (j = 0 to 7) corresponding to a selected pin by program.
• DMAC operating mode is used (DUS bit = 1):
A/D conversion result is stored into the AD00 register after A/D conversion is
completed. Then, DMAC transfers the data from the AD00 register to a given
memory space. (Refer to 13. DMAC for DMAC settings)
Rev.1.00 Jul 15, 2007 Page 262 of 352
REJ09B0385-0100