Datasheet

Table Of Contents
58
ATmega32A [DATASHEET]
Atmel-8155D-AVR-ATmega32A-Datasheet_02/2014
13.3.3 Alternate Functions of Port C
The Port C pins with alternate functions are shown in Table 12-9. If the JTAG interface is enabled, the pull-up resis-
tors on pins PC5(TDI), PC3(TMS) and PC2(TCK) will be activated even if a reset occurs.
The alternate pin configuration is as follows:
TOSC2 – Port C, Bit 7
TOSC2, Timer Oscillator pin 2: When the AS2 bit in ASSR is set (one) to enable asynchronous clocking of
Timer/Counter2, pin PC7 is disconnected from the port, and becomes the inverting output of the Oscillator ampli-
fier. In this mode, a Crystal Oscillator is connected to this pin, and the pin can not be used as an I/O pin.
TOSC1 – Port C, Bit 6
TOSC1, Timer Oscillator pin 1: When the AS2 bit in ASSR is set (one) to enable asynchronous clocking of
Timer/Counter2, pin PC6 is disconnected from the port, and becomes the input of the inverting Oscillator amplifier.
In this mode, a Crystal Oscillator is connected to this pin, and the pin can not be used as an I/O pin.
TDI – Port C, Bit 5
TDI, JTAG Test Data In: Serial input data to be shifted in to the Instruction Register or Data Register (scan chains).
When the JTAG interface is enabled, this pin can not be used as an I/O pin.
Table 13-8. Overriding Signals for Alternate Functions in PB3:PB0
Signal
Name PB3/OC0/AIN1 PB2/INT2/AIN0 PB1/T1 PB0/T0/XCK
PUOE 0 0 0 0
PUOV 0 0 0 0
DDOE 0 0 0 0
DDOV 0 0 0 0
PVOE OC0 ENABLE 0 0 UMSEL
PVOV OC0 0 0 XCK OUTPUT
DIEOE 0 INT2 ENABLE 0 0
DIEOV 0 1 0 0
DI INT2 INPUT T1 INPUT XCK INPUT/T0 INPUT
AIO AIN1 INPUT AIN0 INPUT
Table 13-9. Port C Pins Alternate Functions
Port Pin Alternate Function
PC7 TOSC2 (Timer Oscillator Pin 2)
PC6 TOSC1 (Timer Oscillator Pin 1)
PC5 TDI (JTAG Test Data In)
PC4 TDO (JTAG Test Data Out)
PC3 TMS (JTAG Test Mode Select)
PC2 T C K (J TAG Test C lock)
PC1 SDA (Two-wire Serial Bus Data Input/Output Line)
PC0 SCL (Two-wire Serial Bus Clock Line)