7.3
Pin of 8-bit PWM Timer
This section describes the pin and provides a block diagram of the pin related to the 8-
bit PWM timer.
■
Pin Related to the 8-bit PWM Timer
The pin related to the 8-bit PWM timer is the P50/PWM pin.
● P50/PWM pin
This pin can be used as a general-purpose I/O port (P50) and for output of the interval timer or PWM timer
(PWM).
PWM:
While the pin functions as the interval timer, the square wave is output to the pin.
While the pin functions as the PWM timer, the PWM wave is output to the pin.
When the bit to control the output pin is set to the dedicated pin (CNTR: OE = 1), the P50/PWM pin
automatically functions as an output pin, regardless of the value of the port 5 data direction register
(DDR5: bit0), and as the PWM pin.
■
Block Diagram of the Pin Related to the 8-bit PWM Timer
Figure 7.3-1 Block Diagram of the Pin Related to the 8-bit PWM Timer
PDR
PDR read
PDR read
(At read-modify-write)
Output latch
PDR write
DDR
DDR write
DDR read
PUL read
PUL
PUL write
Stop mode (SPL=1)
Resource output
Resource
output is
enabled
Stop mode
(SPL=1)
CHAPTER 7 8-BIT PWM TIMER
Pull-up resistor
Pch
Pin
P50/PWM
Nch
141