English
Language : 

PIC18F97J60_11 Datasheet, PDF (145/492 Pages) Microchip Technology – 64/80/100-Pin, High-Performance, 1-Mbit Flash Microcontrollers with Ethernet
PIC18F97J60 FAMILY
11.0 I/O PORTS
Depending on the device selected and features
enabled, there are up to nine ports available. Some
pins of the I/O ports are multiplexed with an alternate
function from the peripheral features on the device. In
general, when a peripheral is enabled, that pin may not
be used as a general purpose I/O pin.
Each port has three registers for its operation. These
registers are:
• TRIS register (Data Direction register)
• PORT register (reads the levels on the pins of the
device)
• LAT register (Output Latch register)
The Output Latch (LAT register) is useful for
read-modify-write operations on the value that the I/O
pins are driving.
A simplified model of a generic I/O port, without the
interfaces to other peripherals, is shown in Figure 11-1.
FIGURE 11-1:
GENERIC I/O PORT
OPERATION
RD LAT
Data
Bus
WR LAT
or PORT
WR TRIS
RD TRIS
D
Q
CK
Data Latch
D
Q
CK
TRIS Latch
RD PORT
Q
D
ENEN
I/O Pin
Input
Buffer
11.1 I/O Port Pin Capabilities
When developing an application, the capabilities of the
port pins must be considered. Outputs on some pins
have higher output drive strength than others. Similarly,
some pins can tolerate higher than VDD input levels.
11.1.1 PIN OUTPUT DRIVE
The output pin drive strengths vary for groups of pins
intended to meet the needs for a variety of applications.
PORTB and PORTC are designed to drive higher
loads, such as LEDs. The external memory interface
ports (PORTD, PORTE and PORTJ) are designed to
drive medium loads. All other ports are designed for
small loads, typically indication only. Table 11-1 sum-
marizes the output capabilities. Refer to Section 28.0
“Electrical Characteristics” for more details.
TABLE 11-1: OUTPUT DRIVE LEVELS
Port
Drive
Description
PORTA(1) Minimum Intended for indication.
PORTF(2)
PORTG(2)
PORTH(3)
PORTD(2)
PORTE
PORTJ(3)
Medium Sufficient drive levels for
external memory interfacing,
as well as indication.
PORTB
PORTC
High Suitable for direct LED drive
levels.
Note 1: The exceptions are RA<1:0>, which are
capable of directly driving LEDs.
2: Partially implemented on 64-pin and
80-pin devices; fully implemented on
100-pin devices.
3: Unimplemented on 64-pin devices.
 2011 Microchip Technology Inc.
DS39762F-page 145