UPD78F0138 NEC, UPD78F0138 Datasheet - Page 199
![no-image](/images/manufacturer_photos/0/4/470/nec_sml.jpg)
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: 199 of 558
- Download datasheet (5Mb)
7.4.3 Square-wave output operation
compare register 5n (CR5n).
(TOE5n) of 8-bit timer mode control register 5n (TMC5n) to 1. This enables a square wave with any selected
frequency to be output (duty = 50%).
A square wave with any selected frequency is output at intervals determined by the value preset to 8-bit timer
The TO5n pin output status is inverted at intervals determined by the count value preset to CR5n by setting bit 0
<1> Set each register.
<2> After TCE5n = 1 is set, the count operation starts.
<3> The timer output F/F is inverted by a match of TM5n and CR5n. After INTTM5n is generated, TM5n is
<4> After these settings, the timer output F/F is inverted at the same interval and a square wave is output from
Note 8-bit timer/event counter 50: P17, PM17
Caution Do not write other values to CR5n during operation.
Remark n = 0, 1
Setting
• Clear the port output latch (P17 or P33)
• TCL5n: Select the count clock.
• CR5n:
• TMC5n: Stop the count operation, select the mode in which clear & start occurs on a match of TM5n and
cleared to 00H.
TO5n.
The frequency is as follows.
8-bit timer/event counter 51: P33, PM33
Frequency = 1/2t (N + 1)
(N: 00H to FFH)
Compare value
CR5n.
Timer output F/F inversion enabled
Timer output enabled
(TMC5n = 00001011B or 00000111B)
LVS5n
CHAPTER 7 8-BIT TIMER/EVENT COUNTERS 50 AND 51
1
0
LVR5n
0
1
User’s Manual U16228EJ2V0UD
High-level output
Low-level output
Note
Timer Output F/F Status Setting
and port mode register (PM17 or PM33)
Note
to 0.
199
Related parts for UPD78F0138
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![UPD78F1154GK-GAK-AX](/photos/19/3/190351/ge80lqfp05-40_tmb.jpg)
Part Number:
Description:
16BIT MCU, 128K FLASH, 8K RAM, SMD
Manufacturer:
NEC
Datasheet:
![UPD78F0413GA-GAM-AX](/photos/19/0/190032/ge48lqfp05-40_tmb.jpg)
Part Number:
Description:
8BIT UC, 32K FLASH, 1KB RAM, LCD
Manufacturer:
NEC
Datasheet:
![UPD78F0886GA(A)-GAM-AX](/photos/19/0/190032/ge48lqfp05-40_tmb.jpg)
Part Number:
Description:
8BIT MCU, 60K FLASH, 3KB RAM, CAN
Manufacturer:
NEC
Datasheet:
![UPD78F0890GK(A)-GAJ-AX](/photos/19/1/190186/ge64lqfp05-40_tmb.jpg)
Part Number:
Description:
8BIT MCU, 128K FLASH, 7K RAM, LQFP
Manufacturer:
NEC
Datasheet:
![UPD78F9502MA-CAC-A](/photos/19/7/190713/ge10ssop05-40_tmb.jpg)
Part Number:
Description:
8BIT MCU, 4K FLASH, 128B RAM, SMD
Manufacturer:
NEC
Datasheet:
![UPD70325L-8](/images/manufacturer_photos/0/4/470/nec_tmb.jpg)
Part Number:
Description:
16/8 bit single-chip microcomputer
Manufacturer:
NEC
Datasheet:
![UPC1316C](/images/manufacturer_photos/0/4/470/nec_tmb.jpg)
Part Number:
Description:
Dual audio power amp circuit
Manufacturer:
NEC
Datasheet:
![UPC393C](/images/manufacturer_photos/0/4/470/nec_tmb.jpg)
Part Number:
Description:
Dual comparator
Manufacturer:
NEC
Datasheet:
![UPA572T](/images/manufacturer_photos/0/4/470/nec_tmb.jpg)
Part Number:
Description:
MOS type composite field effect transistor
Manufacturer:
NEC
Datasheet: