Port 1 (p1) – Maxim Integrated High-Speed Microcontroller Users Guide: Network Microcontroller Supplement User Manual

Page 32

Advertising
background image

High-Speed Microcontroller User’s

Guide: Network Microcontroller

Supplement

32

Port 1 (P1)

7

6

5

4

3

2

1

0

SFR 90h

P1.7

INT5

P1.6

INT4

P1.5

INT3

P1.4

INT2

P1.3

TXD1

P1.2

RXD1

P1.1

T2EX

P1.0

T2

RW-1

RW-1

RW-1

RW-1

RW-1

RW-1

RW-1

RW-1

R = Unrestricted read, W = Unrestricted write, -n = Value after reset

P1.7–0
Bits 7–0

INT5
Bit 7

INT4
Bit 6

INT3
Bit 5

INT2
Bit 4

TXD1
Bit 3

RXD1
Bit 2

T2EX
Bit 1

T2
Bit 0

General-purpose I/O port 1. When serving as a general-purpose I/O port, all the pins have an alterna-
tive function as described later. P1.2–7 contains functions that are new to the 80C32 architecture. The

timer 2 functions on pins P1.1-0 are available on the 80C32, but not on the 80C31. Each of the functions

is controlled by several other SFRs. The associated port 1 latch bit must contain a logic 1 before the pin

can be used in its alternate function capacity.

External interrupt 5. A falling edge on this pin causes an external interrupt 5, if enabled.

External interrupt 4. A rising edge on this pin causes an external interrupt 4, if enabled.

External interrupt 3. A falling edge on this pin causes an external interrupt 3, if enabled.

External interrupt 2. A rising edge on this pin causes an external interrupt 2, if enabled.

Serial port 1 transmit. This pin transmits the serial port 1 data in serial port modes 1, 2, and 3, and
emits the synchronizing clock in serial port mode 0.

Serial port 1 receive. This pin receives the serial port 1 data in serial port modes 1, 2, and 3, and is a
bidirectional data transfer pin in serial port mode 0.

Timer 2 capture/reload trigger. A 1-to-0 transition on this pin causes the value in the T2 registers to be
transferred into the capture registers, if enabled by EXEN2 (T2CON.3). When in autoreload mode, a 1-

to-0 transition on this pin reloads the timer 2 registers with the value in RCAP2L and RCAP2H, if enabled

by EXEN2 (T2CON.3).

Timer 2 external input. A 1-to-0 transition on this pin causes timer 2 increment or decrement, depend-
ing on the timer configuration.

Maxim Integrated

Advertising