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

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.36:
Figure 1.104: A-D conversion register in repeat sweep mode 1
Function
Start condition
Stop condition
Interrupt request generation timing
Input pin
Reading of result of A-D converter
2.24.5 Repeat sweep mode 1
In repeat sweep mode 1, all pins are used for A-D conversion with emphasis on the pin or pins select-
ed using the A-D sweep pin select bit. Table 1.36 shows the specifications of repeat sweep mode 1.
Figure 1.104 show the A-D control in repeat sweep mode 1.
Repeat sweep mode 1 specification
Item
A-D control register 0 (Note)
A-D control register 1 (Note)
b7
b7
0 0
b6
b6
b5
b5
1
b4
1 1
b4
b3
b3
b2
b2
1
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
VCUT
Reserved bit
CKS1
BITS
ADST
CKS0
MD2
CH0
CH1
CH2
MD0
MD1
TRG
Symbol
ADCON1
Symbol
ADCON0
is indeterminate.
All pins perform repeat sweep A-D conversion, with emphasis on the pin or
pins selected by the A-D sweep pin select bit
Example: AN0 selected
Writing “1” to A-D conversion start flag
Writing “0” to A-D conversion start flag
None generated
AN0 (1 pin), AN0 and AN1 (2 pins), AN0 to AN2 (3 pins), AN0 to AN3 (4 pins)
Read A-D register corresponding to selected pin (at any time)
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
Address
Address
1-114
03D6
03D7
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
16
16
00000XXX
When reset
When reset
1 : Repeat sweep mode 1
When repeat sweep mode 1 is selected
0 : 8-bit mode
1 : 10-bit mode
0 : f
1 : f
1 : Vref connected
Always set to "0
Invalid in repeat sweep mode 1
b4 b3
1 1 : Repeat sweep mode 1
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
AN0
16
/2 or f
/4 is selected
/2 is selected
TRG
is selected
0
0
0
0
, AN
trigger
(1 pin)
to AN
to AN
2
AD
Specification
/4 is selected
1
(2 pins)
2
3
AN1
(3 pins)
(4 pins)
"
Function
Function
AN0
Mitsubishi microcomputers
M30240 Group
AN2
R
R
W
W
AN0
AN3, etc.

Related parts for M30240ECFP