
HARDWARE CONFIGURATION
2-45
8-Bit PWM TIMER
(TIMER 1)
1 is always read when the Read Modify Write instruction is read.
The meaning of each bit to be written is as follows:
This bit is cleared.
This bit does not change or affect other bits.
0
1
Note: In the PWM operation mode, neither the read nor write values of this
bit have any meaning.
[Bit 1] OE: Output signal control bit
When Bit 1 is 1, the port serves as the timer/PWM output. In the timer opera-
tion mode, a signal that is reversed each time the values of the counter and
compare register agree, is output. In the PWM operation mode, a PWM sig-
nal is output.
General-purpose port pin (P21)
Counter/PWM output pin (PWO0)
0
1
When this bit is 1, the port functions as the timer/PWM output pin even after
the DDR of P21 is set to input (bit 2 of DDR2).
[Bit 0] TIE: Interrupt enable bit (timer mode)
When this bit is set to 1, an interrupt occurs when the values of the counter
and compare register agree.
Counter interrupt generation disabled
Counter interrupt generation enabled
0
1
In the PWM operation mode, an interrupt does not occur irrespective of the
value of this bit.
(2) Compare register (COMR)
In the timer operation mode, this register is used to set the value to be
compared with the value of the counter, and to clear the counter when the
values of the counter and this register agree. In the PWM operation mode,
the High pulse width can be specified by the value of this register.
Address: 0016
H
Initial value
XXXXXXXX-
B
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
COMR
CNTR
Address: 0016
H
Address: 0017
H
Summary of Contents for F2MC-8L Series
Page 121: ...INSTRUCTIONS 4 7 4 5 F2MC 8L FAMILY INSTRUCTION MAP ...
Page 123: ...5 MASK OPTIONS ...
Page 125: ...APPENDIX ...