beautypg.com

Port 1, Port 3, Alternate functions of ports – Maxim Integrated Ultra-High-Speed Flash Microcontroller User Manual

Page 117: Port 1 -4, Port 3 -4, Alternate functions of ports 1 and 3 -4

background image

10-4

Ultra-High-Speed Flash

Microcontroller User’s Guide

Port 1

Port 1 functions as both an 8-bit bidirectional I/O port and an alternate functional interface for timer 2 I/O, external interrupts 2, 3, 4, 5,

and serial port 1. Reset conditions set these port pins to logic 1 and are held high with weak pullups. This condition also serves as an

input mode, since any external circuit that writes to the port overcomes the weak pullup. When a logic 0 is written to any port pin, the

port activates a strong pulldown that remains on until a 1 is written or a reset occurs. Writing a logic 1 after the port has been a 0 caus-

es a strong transition driver to turn on, followed by a weaker sustaining pullup. Once the momentary strong driver turns off, the pin

assumes both the output high and input state.

Port 3

Port 3 functions as both an 8-bit bidirectional I/O port and an alternate functional interface for external interrupts 0 and 1, serial port 0,

timers 0 and 1 inputs, and external data memory strobes. The reset condition sets all bits to logic 1. In this state, a weak pullup holds

the port high. This condition also serves as an input mode, since any external circuit that writes to the port overcomes the weak pullup.

Writing a logic 0 to any port pin activates a strong pulldown that remains on until a 1 is written or a reset occurs. Writing a logic 1 after

the port has been a 0 causes a strong transition driver to turn on, followed by a weaker sustaining pullup. Once the momentary strong

driver turns off, the pin assumes both the output high and input state.

Alternate Functions of Ports 1 and 3

When any of the pins of ports 1 and 3 is enabled as a special function, the port latch should be programmed to logic 1 to avoid poten-

tial bus contention and ensure proper operation. The drive characteristics of these pins do not change when the pins are used for gen-

eral I/O or as a special function associated with the pin. Port 0 and 2 pins, as well as PSEN, ALE, P3.6 and P3.7, incorporate special

circuitry to limit the current consumed by the device.

Internal Memory Cycles

C2

C3 C4 C1 C2 C3 C4

XTAL1

ALE

Port 0

Port 2

PSEN

C1

Ext Memory Cycle

Ext Memory Cycle

MSB Add MSB Add

LSB Add Data LSB Add Data

Figure 10-3. External Program Memory Access (Nonpage Model)

Maxim Integrated