English
Language : 

HD6433308 Datasheet, PDF (186/349 Pages) Hitachi Semiconductor – Hitachi Single-Chip MicroComputer
8.1.3 Input and Output Pins
Table 8-1 lists the output pins of the PWM timer module. There are no input pins.
Table 8-1. Output Pins of PWM Timer Module
Name
PWM0 output
PWM1 output
Abbreviation
PW0
PW1
I/O
Output
Output
Function
Pulse output from PWM timer channel 0.
Pulse output from PWM timer channel 1.
8.1.4 Register Configuration
The PWM timer module has three registers for each channel as listed in Table 8-2.
Table 8-2. PWM Timer Registers
Name
Timer control register
Duty register
Timer counter
Abbreviation
TCR
DTR
TCNT
R/W
R/W
R/W
R/(W)*
Initial
value
H’38
H’FF
H’00
Address
PWM0
H’FFA0
H’FFA1
H’FFA2
PWM1
H’FFA4
H’FFA5
H’FFA6
* The timer counters are read/write registers, but the write function is for test purposes only.
Application programs should never write to these registers.
8.2 Register Descriptions
8.2.1 Timer Counter (TCNT) – H’FFA2 (PWM0), H’FFA6 (PWM1)
Bit
7
6
5
4
3
2
1
0
Initial value
Read/Write
0
0
0
0
0
0
0
0
R/W R/W R/W R/W R/W R/W R/W R/W
The PWM timer counters (TCNT) are 8-bit up-counters. When the output enable bit (OE) in the
timer control register (TCR) is set to “1,” the timer counter starts counting pulses of an internal
clock source selected by clock select bits 2 to 0 (CKS2 to CKS0). After counting from H’00 to
H’F9, the timer counter repeats from H’00.
172