UPD78F0838 Renesas Electronics Corporation., UPD78F0838 Datasheet - Page 226

no-image

UPD78F0838

Manufacturer Part Number
UPD78F0838
Description
8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
224
(6) TMPn option register 0 (TPnOPT0)
The TPnOPT0 register is an 8-bit register used to set the capture/compare operation and detect an overflow.
This register can be read or written in 8-bit or 1-bit units.
Reset sets this register to 00H.
Cautions 1.
(n = 0 to 4)
TPnOPT0
2.
• This bit setting is valid only in the free-running timer mode.
• This bit setting is valid only in the free-running timer mode.
• This bit is set when the 16-bit counter count value overflows from FFFFH to 0000H in the free-
• An interrupt request signal (INTTPnOV) is generated at the same time that the TPnOVF bit is set to
• This bit is not cleared even when the TPnOVF bit or the TPnOPT0 register are read when the
• This bit can be both read and written, but cannot be set to 1 by software. Writing 1 has no influence
TPnCCS1
TPnCCS0
Reset (0)
TPnOVF
running timer mode or the pulse width measurement mode.
1. The INTTPnOV signal is not generated in modes other than the free-running timer mode and the
pulse width measurement mode.
TPnOVF bit = 1.
on the operation of TMPn.
Set (1)
After reset:
Rewrite the TPnCCS1 and TPnCCS0 bits when the TPnCE bit = 0. (The same value
can be written when the TPnCE bit = 1.) If rewriting was mistakenly performed, clear
the TPnCE bit to 0 and then set the bits again.
Be sure to clear bits 1 to 3, 6, and 7 to “0”.
0
1
0
1
7
0
Compare register selected
Capture register selected
Compare register selected
Capture register selected
Overflow occurred
TPnOVF bit 0 written or TPnCTL0.TPnCE bit = 0
CHAPTER 6 16-BIT TIMER/EVENT COUNTER P (TMP)
00H
6
0
Preliminary User’s Manual U19748EJ1V0UD
TPnCCS1
R/W
5
TPnCCR1 register capture/compare selection
TPnCCR0 register capture/compare selection
Address: TP0OPT0 FFFFF985H, TP1OPT0 FFFFF995H
TPnCCS0
TMPn overflow detection flag
4
TP2OPT0 FFFFF9A5H, TP3OPT0 FFFFF9B5H
TP4OPT0 FFFFFF15H
3
0
2
0
1
0
TPnOVF
<0>

Related parts for UPD78F0838