UPD78F0138 NEC, UPD78F0138 Datasheet - Page 214
UPD78F0138
Manufacturer Part Number
UPD78F0138
Description
(UPD78xxxx) 8-Bit Single-Chip Microcontrollers
Manufacturer
NEC
Datasheet
1.UPD78F0138.pdf
(558 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
UPD78F0138M1GK-9ET
Manufacturer:
NEC
Quantity:
115
Part Number:
UPD78F0138M5GB
Manufacturer:
NEC
Quantity:
20 000
- Current page: 214 of 558
- Download datasheet (5Mb)
8.4 Operation of 8-Bit Timers H0 and H1
8.4.1 Operation as interval timer/square-wave output
generated and 8-bit timer counter Hn is cleared to 00H.
CMP1n register is not detected even if the CMP1n register is set, timer output is not affected.
is output from TOHn.
(1) Usage
214
When 8-bit timer counter Hn and compare register 0n (CMP0n) match, an interrupt request signal (INTTMHn) is
Compare register 1n (CMP1n) is not used in interval timer mode. Since a match of 8-bit timer counter Hn and the
By setting bit 0 (TOENn) of timer H mode register n (TMHMDn) to 1, a square wave of any frequency (duty = 50%)
Generates the INTTMHn signal repeatedly at the same interval.
<1> Set each register.
TMHMDn
<2> Count operation starts when TMHEn = 1.
<3> When the values of 8-bit timer counter Hn and the CMP0n register match, the INTTMHn signal is generated
<4> Subsequently, the INTTMHn signal is generated at the same interval. To stop the count operation, clear
Remark n = 0, 1
(i)
(ii) CMP0n register setting
and 8-bit timer counter Hn is cleared to 00H.
TMHEn to 0.
TMHEn
Setting timer H mode register n (TMHMDn)
• Compare value (N)
Figure 8-9. Register Setting During Interval Timer/Square-Wave Output Operation
0
CKSn2
0/1
Interval time = (N +1)/f
CKSn1
0/1
CHAPTER 8 8-BIT TIMERS H0 AND H1
CKSn0
0/1
User’s Manual U16228EJ2V0UD
TMMDn1
0
CNT
TMMDn0 TOLEVn
0
0/1
TOENn
0/1
Timer output setting
Timer output level inversion setting
Interval timer mode setting
Count clock (f
Count operation stopped
CNT
) selection
Related parts for UPD78F0138
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
16BIT MCU, 128K FLASH, 8K RAM, SMD
Manufacturer:
NEC
Datasheet:
Part Number:
Description:
8BIT UC, 32K FLASH, 1KB RAM, LCD
Manufacturer:
NEC
Datasheet:
Part Number:
Description:
8BIT MCU, 60K FLASH, 3KB RAM, CAN
Manufacturer:
NEC
Datasheet:
Part Number:
Description:
8BIT MCU, 128K FLASH, 7K RAM, LQFP
Manufacturer:
NEC
Datasheet:
Part Number:
Description:
8BIT MCU, 4K FLASH, 128B RAM, SMD
Manufacturer:
NEC
Datasheet:
Part Number:
Description:
16/8 bit single-chip microcomputer
Manufacturer:
NEC
Datasheet:
Part Number:
Description:
Dual audio power amp circuit
Manufacturer:
NEC
Datasheet:
Part Number:
Description:
Dual comparator
Manufacturer:
NEC
Datasheet:
Part Number:
Description:
MOS type composite field effect transistor
Manufacturer:
NEC
Datasheet: