9.3.2 Alternate Functions of Port B
The Port B pins with alternate functions are shown in Table 9-3.
Table 9-3. Port B Pins Alternate Functions
Port Pin
Alternate Functions
PSCOUT0B (PSC output 0B)
ADC4 (Analog Input Channel 4)
SCK (SPI Bus Serial Clock)
PB7
PCINT7 (Pin Change Interrupt 7)
ADC7 (Analog Input Channel 7)
PSCOUT1B (PSC output 1B)
PB6
PB5
PCINT6 (Pin Change Interrupt 6)
ADC6 (Analog Input Channel 6)
INT2 (External Interrupt 2)
ACMPN1 (analog comparator 1 Negative Input)
AMP2- (Analog Differential Amplicator 2 Negative Input)
PCINT5 (Pin Change Interrupt 5)
AMP0+ (Analog Differential Amplifier 0 Positive Input)
PCINT4 (Pin Change Interrupt 4)
AMP0- (Analog Differential Amplifier 0 Negative Input)
PCINT3 (Pin Change Interrupt 3)
ADC5 (Analog Input Channel5 )
INT1 (External Interrupt 1)
PB4
PB3
PB2
ACMPN0 (analog comparator 0 Negative Input)
PCINT2 (Pin Change Interrupt 2)
MOSI (SPI Master Out Slave In)
PSCOUT2B (PSC output 2B)
PB1
PB0
PCINT1 (Pin Change Interrupt 1)
MISO (SPI Master In Slave Out)
PSCOUT2A (PSC output 2A)
PCINT0 (Pin Change Interrupt 0)
The alternate pin configuration is as follows:
• ADC4/PSCOUT0B/SCK/PCINT7 – Bit 7
PSCOUT0B, output 0B of PSC.
ADC4, analog to digital converter, input channel 4.
SCK, master clock output, slave clock input pin for SPI channel. When the SPI is enabled as a slave, this pin is configured as
an input regardless of the setting of DDB7. When the SPI is enabled as a master, the data direction of this pin is controlled
by DDB7. When the pin is forced to be an input, the pull-up can still be controlled by the PORTB7 bit.
PCINT7, pin change interrupt 7.
• ADC7/PSCOUT1B/PCINT6 – Bit 6
ADC7, analog to digital converter, input channel 7.
PSCOUT1B, output 1B of PSC.
PCINT6, pin change interrupt 6.
58
ATmega16/32/64/M1/C1 [DATASHEET]
7647O–AVR–01/15