![Atmel AT90S8414 Manual Download Page 62](http://html1.mh-extra.com/html/atmel/at90s8414/at90s8414_manual_3003427062.webp)
4-62
AT90S8414
Preliminary
Table 18: DDBn Effects on Port B Pins
DDBn
PORTBn
I/O
Pull up
Comment
0
0
Input
No
Tri-state (Hi-Z)
0
1
Input
Yes
PBn will source current (IIL) if ext. pulled low.
1
0
Output
No
Push-Pull Zero Output
1
1
Output
No
Push-Pull One Output
n: 7,6…0, pin number.
ALTERNATE FUNCTIONS FOR PORTB
The alternate pin configuration is as follows:
SCK - PORTB, Bit 7:
SCK: Master clock output, slave clock input pin for SPI channel
MISO - PORTB, Bit 6:
MISO: Master data input, slave data output pin for SPI channel
MOSI - PORTB, Bit 5:
MOSI: SPI Master data output, slave data input for SPI channel
SS - PORTB, Bit 4:
S S
(Slave port select input)
AIN1 - PORTB, Bit 3
AIN1, Analog Comparator Negative Input. When configured as an input (DDB3 is cleared (zero)) and with the internal
MOS pull up resistor switched off (PB3 is cleared (zero)), this pin also serves as the negative input of the on-chip analog
comparator.
AIN0 - PORTB, Bit 2
AIN0, Analog Comparator Positive Input. When configured as an input (DDB2 is cleared (zero)) and with the internal
MOS pull up resistor switched off (PB2 is cleared (zero)), this pin also serves as the positive input of the on-chip analog
comparator.
T1 - PORTB, Bit 1:
T1, Timer/Counter1 counter source: The PB1 pin has to be configured as an input (DDB1 is cleared (zero)) to serve this
function. See the timer description for further details. The internal pull up MOS resistor can be activated as described
above.
T0 - PORTB, Bit 0:
T0: Timer/Counter0 counter source: The PB0 pin has to be configured as an input (DDB0 is cleared (zero)) to serve this
function. See the timer description for further details. The internal pull up MOS resistor can be activated as described
above.