![](http://datasheet.mmic.net.cn/110000/M30201F6-SP_datasheet_3496102/M30201F6-SP_310.png)
Mitsubishi microcomputers
M30201 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
A-D Converter
298
2.7.6 Operation of A-D Converter (in repeat sweep mode 1)
Figure 2.7.14. Operation timing of repeat sweep 1 mode
In repeat sweep 1 mode, choose functions from those listed in Table 2.7.6. Operations of the circled items are
described below. Figure 2.7.13 shows ANi pin's sweep sequence, Figure 2.7.14 shows timing chart, and Figure
2.7.15 shows the set-up procedure.
Operation
(1) Setting the A-D conversion start flag to “1” causes the A-D converter to start the conversion on voltage
input to the AN0/AN50 pin.
(2) After the A-D conversion on voltage input to the AN0/AN50 pin is completed, the content of the succes-
sive comparison register (conversion result) is transmitted to A-D register 0.
(3) Every time the A-D converter carries out A-D conversion on a selected analog input pin, the A-D converter
carries out A-D conversion on only one unselected pin, and then the A-D converter carries out A-D conver-
sion from the AN0 pin again. (See Figure 2.7.13.) The conversion result is transmitted to A-D register i
every time conversion on a pin is completed. The A-D conversion interrupt request bit does not go to “1”.
(4) The A-D converter continues operating until software goes the A-D convers
ion start flag to “0”.
Table 2.7.6. Choosed functions
Figure 2.7.13. ANi pin's sweep sequence in repeat sweep mode
Item
Set-up
Operation clock
φAD
Divided-by-4 fAD / divided-by-2 fAD / fAD
O
8-bit / 10-bit
Resolution
O
Analog input pin
AN0 (1 pins) / AN0 to AN1 (2 pins) / AN0 to AN2 (3 pins) / AN0 to AN3 (4 pins) (Note)
O
Sample & Hold
Not activated
Activated
O
Note : When the port P5 group is selected, analog input pins are changed from AN0 to AN4 to pins AN50 to AN54.
When AN0 is selected
Converted
analog
input
pin
Time
00
00000000
1
2
3
4
5
6
7
1
2
.
When AN0, AN1 are selected
Converted
analog
input
pin
Time
0000000
1111111
2
3
4
5
6
7
.
0
2
Converted
analog
input
pin
Time
0000000
222222
3
4
5
6
7
.
3
111111
When AN0 to AN2 are selected
Converted
analog
input
pin
Time
000000
3333
2
4
5
6
7
.
11111
2222
3
4
When AN0 to AN3 are selected
A-D
conversion
start flag
“1”
“0”
A-D register 0
A-D register 1
φAD
A-D register 2
Result
Set to “1” by software
Result
Cleared to “0” by software
(2)
(3) Consecutive conversion
8-bit resolution :
28
φAD cycles
10-bit resolution :
33
φAD cycles
A-D
conversion
is complete
(4)
Conversion result is
transfered to A-D
conversion register
Note: When
φAD frequency is less than 1MHz, sample and hold function cannot be selected.
Conversion rate per analog input pin is 49
φAD cycles for 8-bit resolution and 59 φAD cycles for 10-bit resolution.
8-bit resolution :
28
φAD cycles
10-bit resolution :
33
φAD cycles
8-bit resolution :
28
φAD cycles
10-bit resolution :
33
φAD cycles
8-bit resolution :
28 AD cycles
10-bit resolution :
33 AD cycles
(1) Start AN0 /AN50 pin
conversion