EasyManuals Logo
Home>Renesas>Computer Hardware>M16C Series

Renesas M16C Series User Manual

Renesas M16C Series
380 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #257 background imageLoading...
Page #257 background image
A-D Converter
M30240 Group
Rev.1.00 Sep 24, 2003 Page 239 of 360
2.6.2.4 Single-sweep mode
In single-sweep mode, select functions from those listed in Table 2.30 . An example using the indicated
options is described below. Figure 2.85 shows the timing chart, and Figure 2.86 shows the set-up
procedure.
Table 2.30: A-D converter in single-sweep mode functions
Operation
(1) Setting the A-D conversion start flag to “1” causes the A-D converter to start the conversion on the
voltage input to the AN
0
pin.
(2) After the A-D conversion of voltage input to the AN
0
pin is completed, the content of the successive
comparison register (conversion result) is transmitted to A-D register 0. The A-D converter converts
all analog input pins selected by the user. The conversion result is transmitted to A-D register i corre-
sponding to each pin, every time conversion on one pin is completed.
(3) When the A-D conversion on all the analog input pins selected is completed, the A-D conversion
interrupt request bit goes to “1”. At this time, the A-D conversion start flag goes to “0”. The A-D con-
verter stops operating.
Figure 2.85: Operation timing of single sweep mode
Item
Set-up Item Set-up
Operation clock AD O
Divided-by-4 fAD/ divided-by-2
fAD/fAD
Trigger for starting A-D
conversion
O Software trigger
Resolution O 8-bit / 10-bit Trigger by AD
TRG
Analog input pin O
AN
0
pin and AN
1
(2 pins) / AN
0
to AN
3
(4 pins) / AN
0
to AN
5
(6
pins) / AN
0
to AN
7
(8 pins)
Sample & Hold
Not activated
O Activated
Cleared to “0” when interrupt request is accepted, or cleared by software
A-D conversion
start flag
“1”
“0”
A-D register 0
A-D register 1
φAD
A-D register i
Result
Result
Result
Set to “1” by software
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 A-D conversion
After A-D conversion on AN0 pin is complete,
A-D converter begins converting all pins selected
A-D conversion
is complete
(2)
(3)
A-D conversion
interrupt request
bit
“1”
“0”

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas M16C Series and is the answer not in the manual?

Renesas M16C Series Specifications

General IconGeneral
BrandRenesas
ModelM16C Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals