English
Language : 

M32C8A Datasheet, PDF (283/372 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M32C/80 Series
M32C/8A Group
18. A/D Converter
18.1.6 Multi-Port Single Sweep Mode
In multi-port single sweep mode, analog voltage applied to 16 selected pins is converted to a digital code once
for each pin. Set the DUS bit in the AD0CON3 register to 1 (DMAC operating mode enabled).
Table 18.9 lists specifications of multi-port single sweep mode.
Table 18.9 Multi-Port Single Sweep Mode Specifications
Item
Specification
Function
Analog input pins
Analog voltage applied to the 16 selected pins is repeatedly converted once for
each pin in the following order: AN_0 to AN_7 → AN15_0 to AN15_7
• AN_0 → AN_1 → . . . → AN_7 → AN15_0 → AN15_1→ . . . → AN15_7
The following register settings determine which pins are used:
Bits MPS11 and MPS10 in the AD0CON4 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 An interrupt request is generated every time each A/D conversion is completed
(Set the DUS bit in the AD0CON3 register to 1)
Read of A/D conversion result
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. (Set the DUS bit in the
AD0CON3 register to 1)
Rev.1.00 Jul 15, 2007 Page 266 of 352
REJ09B0385-0100