Mitsubishi Electric M32R Series User Manual page 534

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

Advertisement

11
A-D1 Comparate Data Register (AD1CMP)
D0
1
2
AD1
AD1
AD1
CMP0
CMP1
CMP2
D
Bit Name
0-15
AD1CMP0-AD1CMP15 (Note 2)
(A-D1 comparate result flag)
Note 1: This register must always be accessed in halfwords.
Note 2: During comparator mode, each bit corresponds to channels 0 through 15.
When comparator mode is selected by setting the A-D1 Single Mode Register 1 AD1SMSL (A-D1
conversion mode selection) bit, the selected analog input value is compared with the value written
to the A-D0 Successive Approximation Register, with the result stored in the corresponding bit of
this comparate data register.
The bit is 0 when the analog input voltage > comparison voltage, and is 1 when the analog input
voltage < comparison voltage.
3
4
5
6
AD1
AD1
AD1
AD1
CMP3
CMP4
CMP5
CMP6
CMP7
11-36
11.2 A-D Converter Related Registers
7
8
9
10
11
AD1
AD1
AD1
AD1
AD1
CMP8
CMP9
CMP10
CMP11
Function
0: Analog input voltage > comparison voltage
1: Analog input voltage < comparison voltage
A-D CONVERTERS
<Address: H'0080 0A8C>
12
13
14
D15
AD1
AD1
AD1
AD1
CMP12
CMP13
CMP14
CMP15
<When reset:Indeterminate>
R
Ver.0.10
W

Advertisement

Table of Contents
loading

Table of Contents