beautypg.com

1 alternate functions of port b – Rainbow Electronics ATmega64M1 User Manual

Page 72

background image

72

8209A–AVR–08/09

ATmega16M1/32M1/64M1

14.3.1

Alternate Functions of Port B

The Port B pins with alternate functions are shown in

Table 14-3

.

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.

Table 14-3.

Port B Pins Alternate Functions

Port Pin

Alternate Functions

PB7

PSCOUT0B (PSC output 0B)

ADC4 (Analog Input Channel 4)

SCK (SPI Bus Serial Clock)

PCINT7 (Pin Change Interrupt 7)

PB6

ADC7 (Analog Input Channel 7)

PSCOUT1B (PSC output 1B)

PCINT6 (Pin Change Interrupt 6)

PB5

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)

PB4

AMP0+ (Analog Differential Amplifier 0 Positive Input)

PCINT4 (Pin Change Interrupt 4)

PB3

AMP0- (Analog Differential Amplifier 0 Negative Input)

PCINT3 (Pin Change Interrupt 3)

PB2

ADC5 (Analog Input Channel5 )

INT1 (External Interrupt 1)

ACMPN0 (Analog Comparator 0 Negative Input)

PCINT2 (Pin Change Interrupt 2)

PB1

MOSI (SPI Master Out Slave In)

PSCOUT2B (PSC output 2B)

PCINT1 (Pin Change Interrupt 1)

PB0

MISO (SPI Master In Slave Out)

PSCOUT2A (PSC output 2A)

PCINT0 (Pin Change Interrupt 0)