16.3.5 Alternate Functions of Port E

The Port E pins with alternate functions are shown in this table:

Table 16-15. Port E Pins Alternate Functions
Port PinAlternate Function
PE6SCL1 (two-wire Serial Bus1 Clock Line)
PE5SDA1 (two-wire Serial Bus1 Data Input/Output Line))
PE4AREF (Analog Reference Pin)
PE3

TXD2 (USART2 Transmit Pin)

MOSI1 (SPI Bus1 Master Output/Slave Input)

PE2

RXD2 (USART2 Receive Pin)

MISO1 (SPI Bus1 Master Input/Slave Output)

PE1

XTAL1 (Chip Clock Oscillator pin 1)

PE0

XTAL2 (Chip Clock Oscillator pin 2)

The alternate pin configuration is as follows:
  • SCL1 – Port E, Bit 6
    • SCL1: two-wire Serial Bus1 Clock Line.
  • SDA1 – Port E, Bit 5
    • SDA1: two-wire Serial Bus1 Data Input/Output Line.
  • AREF – Port E, Bit 4
    • AREF (Analog Reference Pin)
  • TXD2/MOSI1– Port E, Bit 3
    • TXD2: Transmit Data (Data output pin for the USART2). When the USART2 Transmitter is enabled, this pin is configured as an output regardless of the value of DDRE3.
    • MOSI1: SPI Master Data output, Slave Data input for SPI1 channel. When the SPI1 is enabled as a slave, this pin is configured as an input regardless of the setting of DDRE3. When the SPI1 is enabled as a master, the data direction of this pin is controlled by DDRE3. When the pin is forced to be an input, the pull-up can still be controlled by the PORTE3 bit.
  • RXD2/MISO1 – Port E, Bit 2
    • RXD2: Receive Data (Data input pin for the USART2). When the USART2 receiver is enabled this pin is configured as an input regardless of the value of DDRE2. When the USART forces this pin to be an input, the pull-up can still be controlled by the PORTE2 bit.
    • MISO1: Master Data input, Slave Data output pin for SPI1 channel. When the SPI1 is enabled as a master, this pin is configured as an input regardless of the setting of DDRE2. When the SPI1 is enabled as a slave, the data direction of this pin is controlled by DDRE2. When the pin is forced to be an input, the pull-up can still be controlled by the PORTE2 bit.
  • XTAL1 – Port E, Bit 1
    • XTAL1: Chip clock Oscillator pin 1. Used for all chip clock sources except internal calibrated RC Oscillator. When used as a clock pin, the pin can not be used as an I/O pin.
  • XTAL2 – Port E, Bit 0
    • XTAL2: Chip clock Oscillator pin 1. Used for all chip clock sources except internal calibrated RC Oscillator. When used as a clock pin, the pin can not be used as an I/O pin.

Table 16-16 relate the alternate functions of Port E to the overriding signals shown in Figure 16-5.

Table 16-16. Overriding Signals for Alternate Functions in PE6...PE3
Signal
NamePE6/SCL1PE5/SDA1PE4/AREFPE3/TXD2/MOSI1
PUOETWEN1TWEN10TXEN2+SPE1 • MSTR
PUOVPORTE6 • PUDPORTE5 • PUD0PORTE3 • PUD
DDOETWEN1TWEN10TXEN2+SPE1 • MSTR
PVOE0001
PVOVTWEN1TWEN10TXEN2+SPE1 • MSTR
DIEOESCL1 OUTSDA1 OUT0SPI1 MSTR OUTPUT
DIEOV1101
DISCL1 INPUTSDA1 INPUT0

SPI1 SLAVE INPUT

AIO----
Table 16-17. Overriding Signals for Alternate Functions in PE2...PE0
Signal
NamePE2/RXD2/MISO1PE1/XTAL1PE0/XTAL2
PUOERXEN2+SPE1 • MSTR00
PUOVPORTE2 • PUD00
DDOERXEN2+SPE1 • MSTR00
PVOE000
PVOVRXEN2+SPE1 • MSTR00
DIEOESPI1 SLAVE OUTPUT00
DIEOV100
DI

RXD2

SPI1 MSTR INPUT

00
AIO---