UPD78F9418AGK-9EU Renesas Electronics America, UPD78F9418AGK-9EU Datasheet - Page 128

no-image

UPD78F9418AGK-9EU

Manufacturer Part Number
UPD78F9418AGK-9EU
Description
Manufacturer
Renesas Electronics America
Datasheet

Specifications of UPD78F9418AGK-9EU

Lead Free Status / Rohs Status
Supplier Unconfirmed

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
UPD78F9418AGK-9EU
Manufacturer:
NEC
Quantity:
1 000
Part Number:
UPD78F9418AGK-9EU
Manufacturer:
NEC
Quantity:
20 000
Part Number:
UPD78F9418AGK-9EU-A
Manufacturer:
Renesas Electronics America
Quantity:
10 000
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) = 1)
<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)
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
2
2
1/f
Setting prohibited
CHAPTER 7 8-BIT TIMER/EVENT COUNTERS 00 TO 02
3
7
/f
/f
XT
X
X
Minimum Pulse Width
(1.6 s)
(25.6 s)
(30.5 s)
User’s Manual U13952EJ3V1UD
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 UPD78F9418AGK-9EU