Atmega128rfa1 – Rainbow Electronics ATmega128RFA1 User Manual
Page 295

295
8266A-MCU Wireless-12/09
ATmega128RFA1
Register Bits
Value
Description
1
Reserved
2
Reserved
3
Reserved
•
Bit 5:4 – COM5B1:0 - Compare Output Mode for Channel B
The Timer/Counter5 has only limited functionality. Therefore the COM5B1:0 bits do not
control the output compare behavior of any pin. The following table shows the
COM5B1:0 bit functionality when the WGM53:0 bits are set to a normal or a CTC mode
(non-PWM). For the other functionality refer to section "Modes of Operation".
Table 18-25 COM5B Register Bits
Register Bits
Value
Description
0
Normal operation
1
Reserved
2
Reserved
COM5B1:0
3
Reserved
•
Bit 3:2 – COM5C1:0 - Compare Output Mode for Channel C
The Timer/Counter5 has only limited functionality. Therefore the COM5C1:0 bits do not
control the output compare behavior of any pin. The following table shows the
COM5C1:0 bit functionality when the WGM53:0 bits are set to a normal or a CTC mode
(non-PWM). For the other functionality refer to section "Modes of Operation".
Table 18-26 COM5C Register Bits
Register Bits
Value
Description
0
Normal operation
1
Reserved
2
Reserved
COM5C1:0
3
Reserved
•
Bit 1:0 – WGM51:50 - Waveform Generation Mode
Combined with the WGM53:2 bits found in the TCCR5B Register, these bits control the
counting sequence of the counter, the source for maximum (TOP) counter value, and
what type of waveform generation to be used. Modes of operation supported by the
Timer/Counter unit are: Normal mode (counter), Clear Timer on Compare match (CTC)
mode, and three types of Pulse Width Modulation (PWM) modes. For more information
on the different modes see section "Modes of Operation". Note that Timer/Counter5 has
only limited functionality. It cannot be connected to any I/O pin.
Table 18-27 WGM5 Register Bits
Register Bits
Value
Description
0x0
Normal mode of operation
0x1
PWM, phase correct, 8-bit
0x2
PWM, phase correct, 9-bit
0x3
PWM, phase correct, 10-bit
0x4
CTC, TOP = OCRnA
0x5
Fast PWM, 8-bit
0x6
Fast PWM, 9-bit
WGM51:50
0x7
Fast PWM, 10-bit