1 output functions, Utput, Unctions – Maxim Integrated Secure Microcontroller User Manual

Page 102

Advertising
background image

Secure Microcontroller User’s Guide

102 of 187

12.1 Output Functions

Slightly different output buffer structures are implemented for the four parallel I/O ports. When the pins
are used strictly for parallel I/O, ports 1, 2, and 3 have internal weak pullup devices. Port 0, on the other
hand, has a totem-pole output structure. When used as outputs, all port pins will drive the state to which
the associated SFR latch bit has been set except for Port 0 which will only drive low. Port 0 requires a
pullup to drive high when used as parallel I/O
. Port 0 functions as true I/O when used as the multiplexed
address/data bus.

When an instruction is executed that writes a new value to the SFR latch for a parallel I/O port, the write
actually occurs at S6P2 of the final machine cycle of the instruction. There is an additional delay in that
the output buffers only sample the state of the latch’s output during Phase 1 of any given clock period. As
a result, the new value that is written to the latch will appear on the pin at S1P1 of the machine cycle
following the final cycle of the instruction that performs the write to the port latch. See the section on
CPU timing for clock details.

Port 1, 2, and 3 activate additional high-current pullup devices when a write operation to the port
necessitates a 0-to-1 transition on the I/O pin in order to speed up the transition time. The structure of
these devices is illustrated in

Figure 12-5

. The pullup structure is comprised of three pFET devices that

are turned on when a logic 0 is applied to their gates and turned off when a 1 is applied. An n-channel
device is used to drive a 0 on the pin and is turned on and off in the inverse sense of the pFET. When a 1
is applied, the n-channel FET is turned on and it is turned off when a 0 is applied.

Following a 0-to-1 change in the state of the latch bit, transistor P1 will be turned on for two oscillator
periods. This extra pullup device can source about 10mA (100 times more current than the normal P3
device). While P1 is turned on, it will in turn activate P3. The gate and P3 form a latch when P1 is turned
off so that the state will be maintained on the pin.

P2 is a very weak pullup device (about 1/10 the strength of P3) whose sole purpose is to restore a 1 to the
pin should a negative glitch cause a 1 to be lost by forcing the latch to a 0 state.

When an access on the Expanded bus takes place, the pins of Port 0 and Port 2 are driven with
address/data information. Port 2 outputs the most significant eight bits of address while Port 0 is time-
multiplexed with the least significant eight bits of address and data. When 1s are output on Port 2 for
address bits during these cycles, strong current drivers are employed. The information in the Port 2 SFR
latch is unchanged during these cycles. Port 0 also employs strong output drivers for 1s during these
cycles. However, a value of 0FFH will be written to the Port 0 SFR latch, destroying any previous
information that was written into it.

Advertising