beautypg.com

Alternate functions of port e, Atmega162/v – Rainbow Electronics ATmega162V User Manual

Page 80

background image

80

ATmega162/V

2513E–AVR–09/03

Alternate Functions of Port E

The Port E pins with alternate functions are shown in Table 41.

The alternate pin configuration is as follows:

• OC1B – Port E, Bit 2

OC1B, Output Compare Match B output: The PE2 pin can serve as an external output
for the Timer/Counter1 Output Compare B. The pin has to be configured as an output
(DDE0 set (one)) to serve this function. The OC1B pin is also the output pin for the PWM
mode timer function.

Table 42 relate the alternate functions of Port E to the overriding signals shown in Figure
32 on page 67.

• ALE – Port E, Bit 1

ALE is the external data memory Address Latch Enable signal.

• ICP1/INT2 – Port E, Bit 0

IC P 1, In p ut C a pt ur e P in: T h e P E 0 p in c an ac t a s an In pu t C ap tu re p in for
Timer/Counter1.

INT2, External Interrupt Source 2: The PE0 pin can serve as an external interrupt
source.

Table 41. Port E Pins Alternate Functions

Port Pin

Alternate Function

PE2

OC1B (Timer/Counter1 Output CompareB Match Output)

PE1

ALE (Address Latch Enable to external memory)

PE0

ICP1 (Timer/Counter1 Input Capture Pin)
INT2 (External Interrupt 2 Input)

Table 42. Overriding Signals for Alternate Functions PE2..PE0

Signal Name

PE2

PE1

PE0

PUOE

0

SRE

0

PUOV

0

0

0

DDOE

0

SRE

0

DDOV

0

1

0

PVOE

OC1B ENABLE

SRE

0

PVOV

OC1B

ALE

0

DIEOE

0

0

INT2 ENABLED

DIEOV

0

0

1

DI

0

0

INT2 INPUT/ ICP1 INPUT

AIO