Special Operation Modes - Renesas M32R/ECU Series User Manual

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

11

11.1.3 Special Operation Modes

(1) Forcible single mode execution during scan mode
In this special operation mode, single mode conversion (A-D conversion or comparate) is forcibly executed
on a specified channel during scan mode operation. For A-D conversion mode, the conversion result is
stored in the 10-bit A-D Data Register corresponding to the specified channel, whereas for comparate mode,
the conversion result is stored in the 10-bit A-D Comparate Data Register. When the A-D conversion or
comparate operation on a specified channel finishes, scan mode A-D conversion is restarted from where it
was canceled during scan operation.
To start single mode conversion during scan mode operation in software, choose a software trigger using the
A-D Single Mode Register 0 A-D conversion start trigger select bit. Then, for A-D conversion, set the said
register's A-D conversion start bit to "1". For comparate mode, write a comparison value to the A-D Succes-
sive Approximation Register (AD0SAR or AD1SAR) during scan mode operation.
To start single mode conversion during scan mode operation in hardware, choose a hardware trigger using
the A-D Single Mode Register 0 A-D conversion start trigger select bit. Then enter the hardware trigger
selected with the said register.
An A-D conversion interrupt or DMA transfer request can be generated when conversion on a specified
channel or one cycle of scan operation is completed.
Scan mode
conversion starts
10-bit A-Di Data Register
Figure 11.1.6 Forcible Single Mode Execution during Scan Mode
<To perform single mode conversion on channel ADiIN5
during ADiIN2 conversion in n-channel single-shot scan mode>
ADiIN2
ADiIN0
ADiIN1
ADiDT0
A-D conversion interrupt or DMA transfer request
Note 1: The canceled convert operation on channel 2 is reexecuted from the beginning.
11.1 Outline of A-D Converters
Forcible single mode
execution starts
(Note 1)
ADiIN5
ADiIN2
ADiDT1
ADiDT5
11-9
A-D Converters
i=0, 1
n=0–15
Completed
ADiINn
ADiDT2
ADiDTn
32180 Group User's Manual (Rev.1.0)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents