English
Language : 

M32C8A Datasheet, PDF (284/372 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M32C/80 Series
M32C/8A Group
18. A/D Converter
18.1.7 Multi-Port Repeat Sweep Mode 0
In multi-port repeat sweep mode 0, analog voltage that is applied to 16 selected pins is repeatedly converted to
a digital code. Set the DUS bit in the AD0CON3 register to 1 (DMAC operating mode enabled).
Table 18.10 lists specifications of multi-port repeat sweep mode 0.
Table 18.10 Multi-Port Repeat Sweep Mode 0 Specifications
Item
Specification
Function
Analog input pins
Analog voltage applied to the 16 selected pins is repeatedly converted 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
Set the ADST bit is set to 0 (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 267 of 352
REJ09B0385-0100