A/D Trigger Mode - Renesas M16C/29 Series User Manual

Hide thumbs Also See for M16C/29 Series:
Table of Contents

Advertisement

M
1
6
C
2 /
9
G
o r
u
p

12.2.4 A/D Trigger Mode

A/D trigger mode is used together with simultaneous sample sweep mode or delayed trigger mode 0 of
A/D conversion to start A/D conversion. It is used in timer B0 and timer B1 only. In this mode, the timer
starts counting by one trigger until the count value becomes 0000
register in A/D trigger mode and Figure 12.24 shows the TB2SC register.
Table 12.9 Specifications in A/D Trigger Mode
Item
Count Source
Count Operation
Divide Ratio
Count Start Condition
Count Stop Condition
Interrupt Request
Generation Timing
TBiIN Pin Function
Read From Timer
(2)
Write To Timer
NOTES:
1: A/D conversion is started by the timer underflow. For details refer to 15. A/D Converter.
2: When using in delayed trigger mode 0, set the larger value than the value of the timer B0 register
to the timer B1 register.
R
e
. v
1
1 .
2
M
r a
3 .
, 0
2
0
0
7
R
E
J
0
9
B
0
1
0
1
0 -
1
1
2
f
, f
, f
, f
, and f
1
2
8
32
• Decrement
• When the timer underflows, reload register contents are reloaded before
stopping counting
• When a trigger is generated during the count operation, the count is not
affected
1/(n+1)
n: Setting value of TBi register (i=0,1)
0000
When the TBiS (i=0,1) bit in the TABSR register is 1(count started),
TBiEN(i=0,1) in TB2SC register is 1 (A/D trigger mode) and the following
trigger is generated.(Selection based on bits TB2SEL in the TB2SC)
• Timer B2 interrupt
• Underflow of Timer B2 interrupt generation frequency counter setting
• After the count value is 0000
• Set the TBiS bit to 0 (count stopped)
Timer underflows
I/O port
Count value can be read by reading TBi register
• When writing in the TBi register during count stopped.
Value is written to both reload register and counter
• When writing in the TBi register during count.
Value is written to only reload register (Transfered to counter when reloaded next)
page 123
f o
4
5
8
Specification
C32
-FFFF
16
16
and reload register contents are reloaded
16
(1)
. Figure 12.23 shows the TBiMR
16
12. Timer B

Advertisement

Table of Contents
loading

Table of Contents