Delayed Trigger Mode 0 - Renesas M16C FAMILY series Hardware Manual

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

Advertisement

M
1
6
C
2 /
8
G
o r
u
p
(
M
1
6
C

15.1.7 Delayed Trigger Mode 0

In delayed trigger mode 0, analog voltages applied to the selected pins are converted one-by-one to a
digital code. The delayed trigger mode 0 used in combination with A/D trigger mode of Timer B. The
Timer B0 underflow starts a single sweep conversion. After completing the AN
pin is not sampled and converted until the Timer B1 underflow is generated. When the Timer B1 under-
flow is generated, the single sweep conversion is restarted with the AN
delayed trigger mode 0 specifications. Figure 15.19 shows the operation example in delayed trigger
mode 0. Figures 15.20 and 15.21 show each flag operation in the ADSTAT0 register that corresponds to
the operation example. Figure 15.22 shows the ADCON0 to ADCON2 registers in delayed trigger mode
0. Figure 15.23 shows the ADTRGCON register in delayed trigger mode 0 and Table 15.11 shows the
trigger select bit setting in delayed trigger mode 0.
Table 15.10 Delayed Trigger Mode 0 Specifications
Item
Function
A/D Conversion Start
A/D Conversion Stop
Condition
Interrupt Request
Generation Timing
Analog Input Pin
Readout of A/D Conversion Result Readout one of the AN0 to AN7 registers that corresponds to the selected
NOTES:
1. Set the larger value than the value of the timer B0 register to the timer B1 register. The count source for
timer B0 and timer B1 must be the same.
2. Do not write "1" (A/D conversion started) to the ADST bit in delayed trigger mode 0. When write "1",
unexpected interrupts may be generated.
3. AN0
to AN0
and AN2
0
7
need to belong to the same group.
R
e
. v
2
0 .
0
J
a
. n
3
, 1
2
0
0
7
R
E
J
0
9
B
0
0
4
7
0 -
2
0
0
2 /
, 8
M
1
6
C
2 /
8
) B
The SCAN1 to SCAN0 bits in the ADCON1 register and ADGSEL1 to ADGSEL0 bits
in the ADCON2 register select pins. Analog voltage applied to the input voltage of
the selected pins are converted one-by-one to the digital code. At this time, Timer B0
underflow generation starts AN
starts conversion after the AN
AN
pin conversion start condition
0
•When Timer B0 underflow is generated if Timer B0 underflow is generated again
before Timer B1 underflow is generated , the conversion is not affected
•When Timer B0 underflow is generated during A/D conversion of pins after the
AN
pin, conversion is halted and the sweep is restarted from the AN
1
AN
pin conversion start condition
1
•When Timer B1 underflow is generated during A/D conversion of the AN
input voltage of the AN
sweep start when AN
•When single sweep conversion from the AN
•Set the ADST bit to "0" (A/D conversion halted)
A/D conversion completed
Select from AN
and AN
to AN
0
7
pins
to AN2
can be used in the same way as AN
0
7
page 236
f o
3
8
5
Specification
pin conversion. Timer B1 underflow generation
0
(1)
pin.
1
pin is sampled. The AN
1
conversion is completed.
0
to AN
(2 pins), AN
to AN
0
1
0
(3)
(8 pins)
15. A/D Converter
pin conversion, the AN
0
pin. Table 15.10 shows the
1
pin again
0
conversion and the rest of the
1
pin is completed
0
(2)
(4 pins), AN
to AN
(6 pins)
3
0
5
to AN
. However, all input pins
0
7
1
pin, the
0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tiny seriesM16c series

Table of Contents