Single-Sweep Mode - Renesas M16C Series User Manual

16-bit single-chip microcomputer
Hide thumbs Also See for M16C Series:
Table of Contents

Advertisement

M30240 Group

1.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.33 shows the specifications of single-sweep mode. Figure 1.101 shows the
A-D control register in single-sweep mode.
Table 1.33:
Single-sweep mode specification
Item
Function
The pins selected by the A-D sweep pin select bit are used for one-by-one A-D conversion
Start condition
Writing "1" to A-D converter start flag
•End of A-D conversion (A-D conversion start flag changes to "0", except when external trigger is
Stop condition
selected)
•Writing "0" to A-D conversion start flag
Interrupt request
End of A-D conversion
generation timing
Input pin
AN
Reading of result
Read A-D register corresponding to selected pin
of A-D converter
A-D control register 0 (Note)
b7
b6
b5
b4
1 0
A-D control register 1 (Note)
b7
b6
b5
b4
0 0
1
Figure 1.101: A-D conversion register in single-sweep mode
Rev.1.00 Sep 24, 2003 Page 105 of 360
and AN
(2 pins), AN
to AN
0
1
0
b3
b2
b1
b0
Symbol
ADCON0
Bit symbol
Bit name
CH0
Analog input pin
CH1
select bit
CH2
MD0
A-D operation mode
select bit 0
MD1
Trigger select bit
TRG
A-D conversion start flag
ADST
Frequency select bit 0
CKS0
Note: If the A-D control register is rewritten during A-D conversion, the conversion result
is indeterminate.
b3
b2
b1
b0
Symbol
0
ADCON1
Bit symbol
Bit name
SCAN0
A-D sweep pin select bit
SCAN1
A-D operation mode
MD2
select bit 1
8/10-bit mode select bit
BITS
Frequency select bit 1
CKS1
VCUT
Vref connect bit
Reserved bit
Note : If the A-D control register is rewritten during A-D conversion, the conversion result
is indeterminate.
Specification
(4 pins), AN
to AN
(6 pins), or AN
3
0
5
Address
When reset
03D6
00000XXX
16
2
Function
Invalid in single sweep mode
b4 b3
1 0 : Single sweep mode
0 : Software trigger
1 : AD
trigger
TRG
0 : A-D conversion disabled
1 : A-D conversion started
0 : f
/4 is selected
AD
1 : f
/2 is selected
AD
Address
When reset
03D7
00
16
16
Function
When single sweep and repeat sweep mode 0
are selected
b1 b0
0 0 : AN
, AN
(2 pins)
0
1
0 1 : AN
to AN
(4 pins)
0
3
1 0 : AN
to AN
(6 pins)
0
5
1 1 : AN
to AN
(8 pins)
0
7
0 : Any mode other than repeat sweep mode 1
0 : 8-bit mode
1 : 10-bit mode
0 : f
/2 or f
/4 is selected
AD
AD
1 : f
is selected
AD
1 : Vref connected
Always set to "0"
A-D Converter
to AN
(8 pins)
0
7
R
W
R
W

Advertisement

Table of Contents
loading

Table of Contents