Overview

Table 1. Port Availability per Device
Device PORTA PORTB PORTC PORTD PORTE PORTF
28-pin devices   (1)  
40/44-pin devices (2)  
48-pin devices (2)
Note:
  1. 1.Pin RE3 only
  2. 2.Pins RE0, RE1, RE2 and RE3 only

Each port has eight registers to control the operation. These registers are:

In this chapter the generic names such as PORTx, LATx, TRISx, etc. can be associated with PORTA, PORTB, PORTC, etc., depending on availability per device.

A simplified model of a generic I/O port, without the interfaces to other peripherals, is shown in the following figure:

Figure 1. Generic I/O Port Operation