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

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.32:
Figure 1.100: A-D conversion register in one-shot mode
Function
Start condition
Stop condition
Interrupt request generation
timing
Input pin
Reading of result of A-D converter
2.24.1 One-shot mode
In one-shot mode, the pin selected using the analog input pin select bit is used for one-shot A-D con-
version.Table 1.32 shows the specifications of one-shot mode. Figure 1.100 shows the A-D control
register in one-shot mode.
One-shot mode specification
Item
A-D control register 0 (Note 1)
A-D control register 1 (Note)
b7
b7
0 0
b6
b6
b5
b5
1
b4
0
b4
b3
0
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.
The pin selected by the analog input pin select bit is used for one A-D conversion
Writing “1” to A-D conversion start flag
•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
One of AN0 to AN7, as selected
Read A-D register corresponding to selected pin
Note: If the A-D control register is rewritten during A-D conversion, the conversion
Bit symbol
Bit symbol
SCAN0
SCAN1
ADST
CKS0
CKS1
VCUT
CH0
CH1
CH2
MD0
MD1
TRG
Reserved bit
MD2
BITS
Symbol
ADCON0
Symbol
ADCON1
result is indeterminate.
result is indeterminate.
A-D sweep pin
select bit
A-D operation mode
select bit 1
8/10-bit mode select bit
Frequency select bit1
Vref connect bit
Analog input pin select
bit
A-D operation mode
select bit 0
Trigger select bit
A-D conversion start flag
Frequency select bit 0
Bit name
Bit name
1-110
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Address
Address
03D6
03D7
16
16
Invalid in one-shot mode
0 : Any mode other than repeat sweep
0 : 8-bit mode
1 : 10-bit mode
0 : f
1 : f
1 : Vref connected
Always set to "0"
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 0 : One-shot mode
0 : Software trigger
1 : AD
0 : A-D conversion disabled
1 : A-D conversion started
0: f
1: f
When reset
00000XXX
When reset
mode 1
AD
AD
AD
AD
00
/4 is selected
/2 is selected
/2 or f
Specification
TRG
is selected
16
0
1
2
3
4
5
6
7
trigger
AD
is selected
is selected
is selected
is selected
is selected
is selected
is selected
is selected
2
/4 is selected
Function
Function
Mitsubishi microcomputers
M30240 Group
(Note 2)
(Note 2)
R
R
W
W

Related parts for M30240ECFP