Datasheet

Table Of Contents
60
ATmega32A [DATASHEET]
Atmel-8155D-AVR-ATmega32A-Datasheet_02/2014
Note: 1. When enabled, the Two-wire Serial Interface enables slew-rate controls on the output pins PC0 and PC1. This is
not shown in the figure. In addition, spike filters are connected between the AIO outputs shown in the port figure
and the digital logic of the TWI module.
13.3.4 Alternate Functions of Port D
The Port D pins with alternate functions are shown in Table 12-12.
The alternate pin configuration is as follows:
OC2 – Port D, Bit 7
OC2, Timer/Counter2 Output Compare Match output: The PD7 pin can serve as an external output for the
Timer/Counter2 Output Compare. The pin has to be configured as an output (DDD7 set (one)) to serve this func-
tion. The OC2 pin is also the output pin for the PWM mode timer function.
ICP1 – Port D, Bit 6
ICP1 – Input Capture Pin: The PD6 pin can act as an Input Capture pin for Timer/Counter1.
Table 13-11. Overriding Signals for Alternate Functions in PC3:PC0
(1)
Signal
Name PC3/TMS PC2/TCK PC1/SDA PC0/SCL
PUOE JTAGEN JTAGEN TWEN TWEN
PUOV 1 1 PORTC1 • PUD PORTC0 • PUD
DDOEJTAGENJTAGENTWEN TWEN
DDOV 0 0 SDA_OUT SCL_OUT
PVOE 0 0 TWEN TWEN
PVOV 0 0 0 0
DIEOEJTAGENJTAGEN0 0
DIEOV 0 0 0 0
DI
AIO TMS TCK SDA INPUT SCL INPUT
Table 13-12. Port D Pins Alternate Functions
Port Pin Alternate Function
PD7 OC2 (Timer/Counter2 Output Compare Match Output)
PD6 ICP1 (Timer/Counter1 Input Capture Pin)
PD5 OC1A (Timer/Counter1 Output Compare A Match Output)
PD4 OC1B (Timer/Counter1 Output Compare B Match Output)
PD3 INT1 (External Interrupt 1 Input)
PD2 INT0 (External Interrupt 0 Input)
PD1 TXD (USART Output Pin)
PD0 RXD (USART Input Pin)