Datasheet

78
7728G–AVR–06/10
ATtiny87/ATtiny167
Master, the data direction of this pin is controlled by DDA3. When the pin is forced by
the SPI to be an input, the pull-up can still be controlled by the PORTA3 bit.
PCINT3/ADC3/ISRC/INT1 – Port A, Bit 3
PCINT3: Pin Change Interrupt, source 3.
ADC3: Analog to Digital Converter, channel 3.
ISCR: Current Source Output pin. While current is sourced by the Current Source module,
the user can use the Analog to Digital Converter channel 4 (ADC4) to measure the pin
voltage.
INT1: External Interrupt, source 1. The PA4 pin can serve as an external interrupt source.
PCINT2/ADC2/OC0A/DO/MISO – Port A, Bit 2
PCINT2: Pin Change Interrupt, source 2.
ADC2: Analog to Digital Converter, channel 2.
OC0A: Output Compare Match A or output PWM A for Timer/Counter0. The pin has to be
configured as an output (DDA2 set
(one)) to serve these functions.
DO: Three-wire Mode USI Data Output. Three-wire mode data output overrides PORTA2
and it is driven to the port when the data direction bit DDA2 is set. PORTA2 still
enables the pull-up, if the direction is input and PORTA2 is set
(one).
MISO: Master Data input, Slave Data output pin for SPI channel. When the SPI is enabled
as a Master, this pin is configured as an input regardless of the setting of DDA2. When
the SPI is enabled as a Salve, the data direction of this pin is controlled by DDA2.
When the pin is forced to be an input, the pull-up can still be controlled by PORTA2.
PCINT1/ADC1/TXD/TXLIN – Port A, Bit 1
PCINT1: Pin Change Interrupt, source 1.
ADC1: Analog to Digital Converter, channel 1.
TXD: UART Transmit pin. When the UART transmitter is enabled, this pin is configured as an
output regardless the value of DDA1. PORTA1 still enables the pull-up, if the direction
is input and PORTA2 is set
(one).
TXLIN: LIN Transmit pin. When the LIN is enabled, this pin is configured as an output
regardless the value of DDA1. PORTA1 still enables the pull-up, if the direction is input
and PORTA2 is set
(one).
PCINT0/ADC0/RXD/RXLIN – Port A, Bit 0
PCINT0: Pin Change Interrupt, source 0.
ADC0: Analog to Digital Converter, channel 0.
RXD: UART Receive pin. When the UART receiver is enabled, this pin is configured as an
input regardless of the value of DDA0. When the pin is forced to be an input, a logical
one in PORTA0 will turn on the internal pull-up.
RXLIN: LIN Receive pin. When the LIN is enabled, this pin is configured as an input regard-
less of the value of DDA0. When the pin is forced to be an input, a logical one in
PORTA0 will turn on the internal pull-up.
Table 9-4 and Table 9-5 relate the alternate functions of Port A to the overriding signals shown
in Figure 9-6 on page 73.