149
AT94KAL Series FPSLIC
Rev. 1138G–FPSLI–11/03
When the pins are used for the alternate function the DDRE and PORTE register has to be set
according to the alternate function description.
PortE Data Register – PORTE
PortE Data Direction Register – DDRE
PortE Input Pins Address – PINE
The PortE Input Pins address – PINE – is not a register, and this address enables access to
the physical value on each PortE pin. When reading PORTE, the PortE Data Latch is read,
and when reading PINE, the logical values present on the pins are read.
Table 47.
PortE Pins Alternate Functions Controlled by SCR and AVR I/O Registers
Port Pin
Alternate Function
Input
Output
PE0
TX0
(UART0 transmit pin)
External Timer0 clock
-
PE1
RX0
(UART0 receive pin)
-
Output compare
Timer0/PWM0
PE2
TX1
(UART1 transmit pin)
-
-
PE3
RX1
(UART1 receive pin)
-
Output compare
Timer2/PWM2
PE4
INT0
(external Interrupt0 input)
External Timer1 clock
-
PE5
INT1
(external Interrupt0 input)
-
Output compare
Timer1B/PWM1B
PE6
INT2
(external Interrupt0 input)
-
Output compare
Timer1A/PWM1A
PE7
INT3
(external Interrupt0 input)
Input capture Counter1
Bit
7
6
5
4
3
2
1
0
$07 ($27)
PORTE7
PORTE6
PORTE5
PORTE4
PORTE3
PORTE2
PORTE1
PORTE0
PORTE
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial Value
1
1
1
1
1
1
1
1
Bit
7
6
5
4
3
2
1
0
$06 ($26)
DDE7
DDE6
DDE5
DDE4
DDE3
DDE2
DDE1
DDE0
DDRE
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial Value
0
0
0
0
0
0
0
0
Bit
7
6
5
4
3
2
1
0
$05 ($25)
PINE7
PINE6
PINE5
PINE4
PINE3
PINE2
PINE1
PINE0
PINE
Read/Write
R
R
R
R
R
R
R
R
Initial Value
Pull1
Pull1
Pull1
Pull1
Pull1
Pull1
Pull1
Pull1