beautypg.com

Rainbow Electronics ATmega128RFA1 User Manual

Page 193

background image

193


8266A-MCU Wireless-12/09

ATmega128RFA1

Table 14-3. Port B Pins Alternate Functions

Port Pin

Alternate Functions

PB7

OC0A/OC1C/PCINT7 (Output Compare and PWM Output A for
Timer/Counter0, Output Compare and PWM Output C for Timer/Counter1 or
Pin Change Interrupt 7)

PB6

OC1B/PCINT6 (Output Compare and PWM Output B for Timer/Counter1 or
Pin Change Interrupt 6)

PB5

OC1A/PCINT5 (Output Compare and PWM Output A for Timer/Counter1 or
Pin Change Interrupt 5)

PB4

OC2A/PCINT4 (Output Compare and PWM Output A for Timer/Counter2 or
Pin Change Interrupt 4)

PB3

MISO/PDO/PCINT3 (SPI Bus Master Input/Slave Output, Programming Data
Output or Pin Change Interrupt 3)

PB2

MOSI/PDI/PCINT2 (SPI Bus Master Output/Slave Input , Programming Data
Input or Pin Change Interrupt 2)

PB1

SCK/PCINT1 (SPI Bus Serial Clock or Pin Change Interrupt 1)

PB0

SS

¯ ¯ /PCINT0 (SPI Slave Select input or Pin Change Interrupt 0)

The alternate pin configuration is as follows:

OC0A/OC1C/PCINT7, Bit 7

OC0A, Output Compare Match A output: The PB7 pin can serve as an external output
for the Timer/Counter0 Output Compare. The pin has to be configured as an output
(DDB7 set “one”) to serve this function. The OC0A pin is also the output pin for the
PWM mode timer function.

OC1C, Output Compare Match C output: The PB7 pin can serve as an external output
for the Timer/Counter1 Output Compare C. The pin has to be configured as an output
(DDB7 set (one)) to serve this function. The OC1C pin is also the output pin for the
PWM mode timer function.

PCINT7, Pin Change Interrupt source 7: The PB7 pin can serve as an external interrupt
source.

OC1B/PCINT6, Bit 6

OC1B, Output Compare Match B output: The PB6 pin can serve as an external output
for the Timer/Counter1 Output Compare B. The pin has to be configured as an output
(DDB6 set (one)) to serve this function. The OC1B pin is also the output pin for the
PWM mode timer function.

PCINT6, Pin Change Interrupt source 6: The PB6 pin can serve as an external interrupt
sourceOC1A, Output Compare Match A output: The PB5 pin can serve as an external
output for the Timer/Counter1 Output Compare A. The pin has to be configured as an
output (DDB5 set (one)) to serve this function. The OC1A pin is also the output pin for
the PWM mode timer function.

PCINT5, Pin Change Interrupt source 5: The PB5 pin can serve as an external interrupt
source.

OC2A/PCINT4, Bit 4

OC2A, Output Compare Match output: The PB4 pin can serve as an external output for
the Timer/Counter2 Output Compare. The pin has to be configured as an output (DDB4
set (one)) to serve this function. The OC2A pin is also the output pin for the PWM mode
timer function.