beautypg.com

Rainbow Electronics ATmega64C1 User Manual

Page 68

background image

68

7647A–AVR–02/08

ATmega32/64/M1/C1

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.

• ADC6/INT2/ACMPN1/AMP2-/PCINT5 – Bit 5

ADC6, Analog to Digital Converter, input channel 6

.

INT2, External Interrupt source 2. This pin can serve as an External Interrupt source to the MCU.

ACMPN1, Analog Comparator 1 Negative Input. Configure the port pin as input with the internal
pull-up switched off to avoid the digital port function from interfering with the function of the Ana-
log Comparator.

PCINT5, Pin Change Interrupt 5.

• APM0+/PCINT4 – Bit 4

AMP0+, Analog Differential Amplifier 0 Positive Input Channel.

PCINT4, Pin Change Interrupt 4.

• AMP0-/PCINT3 – Bit 3

AMP0-, Analog Differential Amplifier 0 Negative Input Channel. Configure the port pin as input
with the internal pull-up switched off to avoid the digital port function from interfering with the
function of the Analog Amplifier.

PCINT3, Pin Change Interrupt 3.

• ADC5/INT1/ACMPN0/PCINT2 – Bit 2

ADC5, Analog to Digital Converter, input channel 5

.

INT1, External Interrupt source 1. This pin can serve as an external interrupt source to the MCU.

ACMPN0, Analog Comparator 0 Negative Input. Configure the port pin as input with the internal
pull-up switched off to avoid the digital port function from interfering with the function of the Ana-
log Comparator.

PCINT2, Pin Change Interrupt 2.

• PCINT1/MOSI/PSCOUT2B – Bit 1

MOSI: SPI Master Data output, Slave Data input for SPI channel. When the SPI is enabled as a
slave, this pin is configured as an input regardless of the setting of DDB1 When the SPI is
enabled as a master, the data direction of this pin is controlled by DDB1. When the pin is forced
to be an input, the pull-up can still be controlled by the PORTB1 and PUD bits.

PSCOUT2B, Output 2B of PSC.

PCINT1, Pin Change Interrupt 1.

• PCINT0/MISO/PSCOUT2A – Bit 0