upd78f0114m6gb-8es Renesas Electronics Corporation., upd78f0114m6gb-8es Datasheet - Page 138

no-image

upd78f0114m6gb-8es

Manufacturer Part Number
upd78f0114m6gb-8es
Description
8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
6.4 Operation of 16-Bit Timer/Event Counter 00
6.4.1 Interval timer operation
in Figure 6-10 allows operation as an interval timer.
000 (CR000) as the interval.
the TM00 value cleared to 0 and the interrupt request signal (INTTM000) is generated.
mode register 00 (PRM00).
138
Setting 16-bit timer mode control register 00 (TMC00) and capture/compare control register 00 (CRC00) as shown
The basic operation setting procedure is as follows.
<1> Set the CRC00 register (see Figure 6-10 for the set value).
<2> Set any value to the CR000 register.
<3> Set the count clock by using the PRM00 register.
<4> Set the TMC00 register to start the operation (see Figure 6-10 for the set value).
Caution Do not rewrite CR000 during TM00 operation.
Remark For how to enable the INTTM000 interrupt, see CHAPTER 15 INTERRUPT FUNCTIONS.
Interrupt requests are generated repeatedly using the count value preset in 16-bit timer capture/compare register
When the count value of 16-bit timer counter 00 (TM00) matches the value set in CR000, counting continues with
The count clock of 16-bit timer/event counter 00 can be selected with bits 0 and 1 (PRM000, PRM001) of prescaler
Setting
TMC00
CRC00
7
0
7
0
Figure 6-10. Control Register Settings for Interval Timer Operation (1/2)
6
0
6
0
5
0
5
0
(a) 16-bit timer mode control register 00 (TMC00)
(b) Capture/compare control register 00 (CRC00)
4
0
4
0
CHAPTER 6 16-BIT TIMER/EVENT COUNTER 00
TMC003
1
3
0
TMC002
CRC002
User’s Manual U16227EJ3V0UD
1
1
TMC001
CRC001
0/1
0/1
OVF00
CRC000
0
0
Clears and starts on match between TM00 and CR000.
CR000 used as compare register
CR010 used as capture register

Related parts for upd78f0114m6gb-8es