beautypg.com

3 alternate functions of port c – Rainbow Electronics ATmega64C1 User Manual

Page 71

background image

71

7647A–AVR–02/08

ATmega32/64/M1/C1

9.3.3

Alternate Functions of Port C

The Port C pins with alternate functions are shown in

Table 9-6

.

Note:

On the engineering samples (Parts marked AT90PWM324), the ACMPN3 alternate function is not
located on PC4. It is located on PE2.

The alternate pin configuration is as follows:

• D2A/AMP2+/PCINT15 – Bit 7

D2A, Digital to Analog output

AMP2+, Analog Differential Amplifier 2 Positive 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 Amplifier.

PCINT15, Pin Change Interrupt 15.

• ADC10/ACMP1/PCINT14 – Bit 6

ADC10, Analog to Digital Converter, input channel 10.

Table 9-6.

Port C Pins Alternate Functions

Port Pin

Alternate Function

PC7

D2A (DAC output )

AMP2+ (Analog Differential Amplifier 2 Positive Input)

PCINT15 (Pin Change Interrupt 15)

PC6

ADC10 (Analog Input Channel 10)

ACMP1 (Analog Comparator 1 Positive Input )

PCINT14 (Pin Change Interrupt 14)

PC5

ADC9 (Analog Input Channel 9)

AMP1+ (Analog Differential Amplifier 1 Input Channel )

ACMP3 (Analog Comparator 3 Positive Input )

PCINT13 (Pin Change Interrupt 13)

PC4

ADC8 (Analog Input Channel 8)

AMP1- (Analog Differential Amplifier 1 Input Channel )

ACMPN3 (Analog Comparator 3 Negative Input)

PCINT12 (Pin Change Interrupt 12)

PC3

T1 (Timer 1 clock input)

RXCAN (CAN Rx Data)

ICP1B (Timer 1 input capture alternate input)

PCINT11 (Pin Change Interrupt 11)

PC2

T0 (Timer 0 clock input)

TXCAN (CAN Tx Data)

PCINT10 (Pin Change Interrupt 10)

PC1

PSCIN1 (PSC 1 Digital Input)

OC1B (Timer 1 Output Compare B)

SS_A (Alternate SPI Slave Select)

PCINT9 (Pin Change Interrupt 9)

PC0

PSCOUT1A (PSC output 2A)

INT3 (External Interrupt 3)

PCINT8 (Pin Change Interrupt 8)