M30240ECFP MITSUBISHI [Mitsubishi Electric Semiconductor], M30240ECFP Datasheet - Page 111

no-image

M30240ECFP

Manufacturer Part Number
M30240ECFP
Description
M30240 Group Specification
Manufacturer
MITSUBISHI [Mitsubishi Electric Semiconductor]
Datasheet
Specifications in this manual are tentative and subject to change
A-D Converter
Table 1.33:
Figure 1.101: A-D conversion register in repeat mode
Function
Star condition
Stop condition
Interrupt request generation timing
Input pin
Reading of result of A-D converter
2.24.2 Repeat mode
In repeat mode, the pin selected using the analog input pin select bit is used for repeated A-D conver-
sion. Table 1.33 shows the specifications of repeat mode. Figure 1.101 shows the A-D control register
in repeat mode.
Repeat sweep mode 0 specifications
A-D control register 0 (Note 1)
A-D control register 1 (Note)
b7
b7
0 0
Item
b6
b6
b5
b5
1
b4
0 1
b4
b3
b3
b2
b2
0
b1
b1
b0
b0
Note 1: If the A-D control register is rewritten during A-D conversion, the conversion
Note 2: When changing A-D operation mode, set analog input pin again.
Note: If the A-D control register is rewritten during A-D conversion, the conversion
Bit symbol
Bit symbol
SCAN0
SCAN1
Reserved bit
VCUT
ADST
CKS0
CKS1
MD0
MD1
TRG
MD2
BITS
CH0
CH1
CH2
Symbol
ADCON0
Symbol
ADCON1
result is indeterminate.
The pin selected by the analog input pin select bit is used for repeated A-D conversion
Writing “1” to A-D conversion start flag
Writing “0” to A-D conversion start flag
None generated
One of AN0 to AN7, as selected
Read A-D register corresponding to selected pin
result is indeterminate.
Analog input pin
select bit
A-D operation mode
select bit 0
Trigger select bit
A-D conversion start flag
Frequency select bit 0
A-D operation mode
select bit 1
8/10-bit mode select bit
Frequency select bit 1
Vref connect bit
A-D sweep pin
select bit
1-111
Bit name
Bit name
Address
Address
03D6
03D7
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
16
16
0 : 8-bit mode
Invalid in repeat mode
0 : Any mode other than repeat sweep mode 1
1 : 10-bit mode
0 : f
1 : f
1 : Vref connected
00000XXX
Always set to "0"
When reset
When reset
b2 b1 b0
0 0 0 : AN
0 0 1 : AN
0 1 0 : AN
0 1 1 : AN
1 0 0 : AN
1 0 1 : AN
1 1 0 : AN
1 1 1 : AN
b4 b3
0 1 : Repeat mode
0 : Software trigger
1 : AD
0 : A-D conversion disabled
1 : A-D conversion started
0 : f
1 : f
AD
AD
00
AD
AD
/2 or f
is selected
16
TRG
/4 is selected
/2 is selected
0
1
2
3
4
5
6
7
AD
trigger
2
Specification
is selected
is selected
is selected
is selected
is selected
is selected
is selected
is selected
/4 is selected
Function
Function
Mitsubishi microcomputers
M30240 Group
(Note 2)
(Note 2)
R
R
W
W

Related parts for M30240ECFP