UPD78F9418A NEC, UPD78F9418A Datasheet - Page 126
UPD78F9418A
Manufacturer Part Number
UPD78F9418A
Description
(UPD7894xxA) 8-Bit Single Chip Microcontrollers
Manufacturer
NEC
Datasheet
1.UPD78F9418A.pdf
(319 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
UPD78F9418A
Manufacturer:
NEC
Quantity:
1 831
Part Number:
UPD78F9418AGC
Manufacturer:
NEC
Quantity:
20 000
Company:
Part Number:
UPD78F9418AGC-8BT-A
Manufacturer:
RENESAS
Quantity:
800
Company:
Part Number:
UPD78F9418AGC-8BT-A
Manufacturer:
Renesas Electronics America
Quantity:
10 000
Part Number:
UPD78F9418AGK-9EU
Manufacturer:
NEC
Quantity:
20 000
Company:
Part Number:
UPD78F9418AGK-9EU-A
Manufacturer:
Renesas Electronics America
Quantity:
10 000
- Current page: 126 of 319
- Download datasheet (3Mb)
www.DataSheet4U.com
7.4.3 Operation as square-wave output (timer 02 only)
preset to 8-bit compare register 02 (CR02).
pin output is inverted. Through application of this mechanism, square waves of any frequency can be output. As
soon as a match occurs, the TM02 value is cleared to 00H, then counting continues count and an interrupt request
signal (INTTM02) is generated.
126
TCL021
The 8-bit timer can generate a square-wave output of any frequency at intervals specified by the count value
To operate 8-bit timer 02 as a square-wave output, make the settings in the following order.
<1> Set P23 to output mode (PM23 = 0), and set the output latch of P23 to 0
<2> Disable 8-bit timer counter 02 (TM02) operation (TCE02 (bit 0 of 8-bit timer mode control register 02
<3> Set the count clock of 8-bit timer 02 (see Table 7-9), and enable TO2 to output (TOE02 (bit 0 of TMC02) =
<4> Set the count value to CR02
<5> Enable TM02 operation (TCE02 = 1)
When the count value of 8-bit timer counter 02 (TM02) matches the value set in CR02, the TO2/P23/CMPTOUT0
Setting bit 7 of TMC02 (TCE02) to 0 clears the square-wave output to 0.
Table 7-9 lists the square-wave output range, and Figure 7-11 shows the timing of square-wave output.
Caution When the setting of the count clock using TMC02 and the setting of the TM02 to operation-
Remarks 1. f
0
0
1
1
(TMC02)) = 1)
1)
enable using an 8-bit memory manipulation instruction are performed at the same time, an error
of one clock or more may occur in the first cycle after the timer is started. Because of this,
when the 8-bit timer operates as a square-wave output, be sure to make the settings in the order
described above.
2. f
3. The parenthesized values apply to operation at f
TCL020
X
XT
:
: Subsystem clock oscillation frequency
0
1
0
1
Main system clock oscillation frequency
Table 7-9. Square-Wave Output Range of 8-Bit Timer 02
CHAPTER 7 8-BIT TIMER/EVENT COUNTERS 00 TO 02
2
2
1/f
Setting prohibited
3
7
/f
/f
XT
X
X
Minimum Pulse Width
(1.6 µ s)
(25.6 µ s)
(30.5 µ s)
User’s Manual U13952EJ3V0UD
2
2
2
11
15
8
/f
/f
/f
XT
Maximum Pulse Width
X
X
(409.6 µ s)
(6.55 ms)
(7.81 ms)
X
= 5.0 MHz or f
XT
= 32.768 kHz.
2
2
1/f
3
7
/f
/f
XT
X
X
(1.6 µ s)
(25.6 µ s)
(30.5 µ s)
Resolution
Related parts for UPD78F9418A
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: