Special Operation Modes - Mitsubishi Electric M32R 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
This special operation mode forcibly executes single mode conversion (A-D conversion or
comparate) in 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. 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 in the specified channel is
completed, 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 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, or for comparate mode, write a
comparison value to the A-D Successive 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 Single Mode Register 0 A-D conversion start trigger select bit. Then enter the
hardware trigger selected with the said register (ADTRG signal or output event bus 3 for the A-D0
____________
converter, or ADTRG signal or TID1 overflow/underflow for the A-D1 converter).
An A-D conversion interrupt request or a DMA transfer request (for the A-D0 converter only) can
be generated at completion of conversion in the specified channel, or at completion of one cycle
of scan operation.
<To perform single mode conversion on ADiIN5 during ADiIN2 conversion in 4-channel single-shot scan mode>
Scan mode
conversion starts
10-bit A-Di data register
Note 1: The canceled convert operation in channel 2 is reexecuted from the beginning.
Note 2: DMA transfer request: Can be generated for only the A-D0 converter.
Figure 11.1.7 Forcible Single Mode Execution during Scan Mode
Forcible single
mode execution starts
ADiIN2
ADiIN0
ADiIN1
ADiDT0
ADiDT1
A-D conversion interrupt request or DMA transfer request (Note 2)
i=0,1
11-11
11.1 Outline of A-D Converters
____________
(Note 1)
ADiIN5
ADiIN2
ADiIN3
ADiDT5
ADiDT2
A-D CONVERTERS
Completed
ADiDT3
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents