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

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.34:
Figure 1.102: A-D conversion register in single sweep mode
Function
Start condition
Stop condition
Interrupt request
generation timing
Input pin
Reading of result
of A-D converter
2.24.3 Single sweep mode
In single sweep mode, the pins selected using the A-D sweep pin select bit are used for one-by-one
A-D conversion. Table 1.34 shows the specifications of single sweep mode. Figure 1.102 shows the
A-D control register in single sweep mode.
Item
Single sweep mode specification
A-D control register 0 (Note)
A-D control register 1 (Note)
b7
b7
0 0
b6
b6
The pins selected by the A-D sweep pin select bit are used for one-by-one A-D conversion
•End of A-D conversion (A-D conversion start flag changes to “0”, except when external trigger is
selected)
•Writing “0” to A-D conversion start flag
End of A-D conversion
AN0 and AN1 (2 pins), AN0 to AN3 (4 pins), AN0 to AN5 (6 pins), or AN0 to AN7 (8 pins)
Read A-D register corresponding to selected pin
Writing “1” to A-D converter start flag
b5
b5
1
b4
1 0
b4
b3
b3
b2
b2
0
b1
b1
b0
b0
Note: If the A-D control register is rewritten during A-D conversion, the conversion result
Note : If the A-D control register is rewritten during A-D conversion, the conversion result
Bit symbol
Bit symbol
SCAN0
SCAN1
CKS1
VCUT
Reserved bit
BITS
ADST
CKS0
MD2
CH0
CH1
CH2
MD0
MD1
TRG
Symbol
ADCON1
Symbol
ADCON0
is indeterminate.
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 sweep pin select bit
A-D operation mode
select bit 1
8/10-bit mode select bit
Frequency select bit 1
Vref connect bit
Bit name
Bit name
1-112
Address
Address
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
03D7
03D6
16
16
Specification
00000XXX
When reset
0 : Any mode other than repeat sweep mode 1
When reset
When single sweep and repeat sweep mode 0
are selected
0 : 8-bit mode
1 : 10-bit mode
0 : f
1 : f
1 : Vref connected
Always set to "0"
Invalid in single sweep mode
b4 b3
1 0 : Single sweep mode
0 : Software trigger
1 : AD
0 : A-D conversion disabled
1 : A-D conversion started
0 : f
1 : f
b1 b0
0 0 : AN
0 1 : AN
1 0 : AN
1 1 : AN
00
AD
AD
AD
AD
16
/2 or f
TRG
/4 is selected
/2 is selected
is selected
0
0
0
0
, AN
to AN
to AN
to AN
trigger
2
AD
/4 is selected
1
(2 pins)
3
5
7
(4 pins)
(6 pins)
(8 pins)
Function
Function
Mitsubishi microcomputers
M30240 Group
R
R
W
W

Related parts for M30240ECFP