03.01.2015 Views

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

INPUT/OUTPUT PORTS<br />

13.1.2 Output Port<br />

Figure 13-2 shows the internal construction of an output port pin. An internal connection permanently<br />

enables the three-state output driver. The Port Control latch selects the source of data for<br />

the pin, which can be either the on-chip peripheral or the Port Data latch. The Port Direction bit<br />

has no effect on an output-only pin; it can be used for storage.<br />

13.1.3 Open-Drain Bidirectional Port<br />

Figure 13-3 shows the internal control logic for the open-drain bidirectional port pin. The logic<br />

is slightly different from that for the other port types. When the open-drain port pin is configured<br />

as an output, clearing the Port Data latch turns on the N-channel driver, resulting in a “hard zero”<br />

being present at the pin. A one value in the Port Data Latch shuts off the driver, resulting in a high<br />

impedance (input) state at the pin. The open-drain pin can be floated directly by setting its Port<br />

Direction bit.<br />

The open-drain ports are not multiplexed with on-board peripherals. The port/peripheral data<br />

multiplexer exists for open-drain ports, even though the pins are not shared with peripheral functions.<br />

The open-drain port pin floats if the Port Control latch is programmed to select the nonexistent<br />

peripheral function.<br />

13.1.4 Port Pin Organization<br />

The port pins are divided into three functional groups: Port 1, Port 2 and Port 3. Most of the port<br />

pins are multiplexed with peripheral functions.<br />

13-3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!