64
ATmega8535(L)
2502K–AVR–10/06
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 con-
nected between the AIO outputs shown in the port figure and the digital logic of the
TWI module.
Alternate Functions of Port D
The Port D pins with alternate functions are shown in Table 32.
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 function. 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.
• OC1A – Port D, Bit 5
OC1A, Output Compare Match A output: The PD5 pin can serve as an external output
for the Timer/Counter1 Output Compare A. The pin has to be configured as an output
Table 31.
Overriding Signals for Alternate Functions in PC1..PC0
Signal Name
PC1/SDA
PC0/SCL
PUOE
TWEN
TWEN
PUOV
PORTC1 • PUD
PORTC0 • PUD
DDOE
TWEN
TWEN
DDOV
SDA_OUT
SCL_OUT
PVOE
TWEN
TWEN
PVOV
0
0
DIEOE
0
0
DIEOV
0
0
DI
–
–
AIO
SDA INPUT
SCL INPUT
Table 32.
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)
Summary of Contents for ATmega8535
Page 314: ...314 ATmega8535 L 2502K AVR 10 06 ...
Page 320: ...vi ATmega8535 L 2502K AVR 10 06 ...