Atmega162/v – Rainbow Electronics ATmega162V User Manual
Page 78

78
ATmega162/V
2513E–AVR–09/03
• TOSC1/XCK0/OC3A – Port D, Bit 4
TOSC1, Timer Oscillator pin 1: When the AS2 bit in ASSR is set (one) to enable asyn-
chronous clocking of Timer/Counter2, pin PD4 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.
XCK0, USART0 External Clock: The Data Direction Register (DDD4) controls whether
the clock is output (DDD4 set (one)) or input (DDD4 cleared (zero)). The XCK0 pin is
active only when USART0 operates in Synchronous mode.
OC3A, Output Compare Match A output: The PD4 pin can serve as an external output
for the Timer/Counter1 Output Compare A. The pin has to be configured as an output
(DDD4 set (one)) to serve this function. The OC4A pin is also the output pin for the
PWM mode timer function.
• INT1/ICP3 – Port D, Bit 3
INT1, External Interrupt Source 1: The PD3 pin can serve as an external interrupt
source.
IC P 3, In pu t C ap tu re P in: T h e P D3 pin ca n a ct a s an Inp u t C a pt ure pin for
Timer/Counter3.
• INT0/XCK1 – Port D, Bit 2
INT0, External Interrupt Source 0: The PD2 pin can serve as an external interrupt
source.
XCK1, USART1 External Clock: The Data Direction Register (DDD2) controls whether
the clock is output (DDD2 set (one)) or input (DDD2 cleared (zero)). The XCK1 pin is
active only when USART1 operates in Synchronous mode.
• TXD0 – Port D, Bit 1
TXD0, Transmit Data (Data output pin for USART0). When the USART0 Transmitter is
enabled, this pin is configured as an output regardless of the value of DDD1.