|
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
|
▷ |