Datasheet

78K0/Kx2-L CHAPTER 8 8-BIT TIMERS H0 AND H1
R01UH0028EJ0400 Rev.4.00 335
Sep 27, 2010
CHAPTER 8 8-BIT TIMERS H0 AND H1
78K0/KY2-L
(
μ
PD78F055x)
78K0/KA2-L
(
μ
PD78F056x)
78K0/KB2-L
(
μ
PD78F057x)
78K0/KC2-L
(
μ
PD78F058x)
Item
16 Pins 20 Pins 25, 32 Pins 30 Pins 40, 44, 48 Pins
8-bit timer H0
(PWM output: 1)
8-bit timer H1
(PWM output: 1)
(PWM output: 1
Note
)
(PWM output: 1)
Remark : Mounted, : Not mounted
Note Only when the TOH1 function is assigned by setting the MUXSEL register
8.1 Functions of 8-Bit Timers H0 and H1
8-bit timers H0 and H1 have the following functions.
Interval timer
Square-wave output
PWM output
Carrier generator (8-bit timer H1 only)
8.2 Configuration of 8-Bit Timers H0 and H1
8-bit timers H0 and H1 include the following hardware.
Table 8-1. Configuration of 8-Bit Timers H0 and H1
Item Configuration
Timer register 8-bit timer counter Hn
Registers
8-bit timer H compare register 0n (CMP0n)
8-bit timer H compare register 1n (CMP1n)
Timer output TOHn, output controller
Control registers
8-bit timer H mode register n (TMHMDn)
8-bit timer H carrier control register 1 (TMCYC1)
Note 1
Port alternate switch control register (MUXSEL)
Note 2
Port mode register 0 (PM0), port mode register 1 (PM1), or port mode register 3 (PM3)
Port register 0 (P0), port register 1 (P1), or port register 3 (P3)
Notes 1. 8-bit timer H1 only
2. 78K0/KA2-L (25-pin and 32-pin products) only
Remark 78K0/KY2-L, 78K0/KA2-L: n = 1
78K0/KB2-L, 78K0/KC2-L: n = 0, 1
<R>
<R>
<R>
<R>