English
Language : 

PIC16F737-I Datasheet, PDF (70/276 Pages) Microchip Technology – 28/40/44-Pin, 8-Bit CMOS Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
PIC16F7X7
5.5 PORTE and TRISE Register
This section is not applicable to the PIC16F737 or
PIC16F767.
PORTE has four pins, RE0/RD/AN5, RE1/WR/AN6,
RE2/CS/AN7 and MCLR/VPP/RE3, which are individu-
ally configureable as inputs or outputs. These pins have
Schmitt Trigger input buffers. RE3 is only available as an
input if MCLRE is ‘0’ in Configuration Word 1.
I/O PORTE becomes control inputs for the micro-
processor port when bit, PSPMODE (TRISE<4>), is
set. In this mode, the user must make sure that the
TRISE<2:0> bits are set (pins are configured as digital
inputs). Ensure ADCON1 is configured for digital I/O. In
this mode, the input buffers are TTL.
Register 5-1 shows the TRISE register which also
controls the Parallel Slave Port operation.
PORTE pins are multiplexed with analog inputs. When
selected as an analog input, these pins will read as ‘0’s.
TRISE controls the direction of the RE pins, even when
they are being used as analog inputs. The user must
make sure to keep the pins configured as inputs when
using them as analog inputs.
Note: On a Power-on Reset, these pins are
configured as analog inputs and read as ‘0’.
FIGURE 5-19:
PORTE BLOCK DIAGRAM
(IN I/O PORT MODE)
Data Bus
WR Port
WR TRIS
D
Q
CK
Data Latch
DQ
CK
TRIS Latch
I/O pin(1)
Schmitt
Trigger
Input
Buffer
RD TRIS
RD Port
Q
D
ENEN
Note 1: I/O pins have protection diodes to VDD and VSS.
TABLE 5-9: PORTE FUNCTIONS
Name
Bit# Buffer Type
Function
RE0/RD/AN5
RE1/WR/AN6
RE2/CS/AN7
bit 0 ST/TTL(1) Input/output port pin or read control input in Parallel Slave Port mode or analog input.
For RD (PSP mode):
1 = Idle
0 = Read operation. Contents of PORTD register output to PORTD I/O pins (if chip selected).
bit 1 ST/TTL(1) Input/output port pin or write control input in Parallel Slave Port mode or analog input.
For WR (PSP mode):
1 = Idle
0 = Write operation. Value of PORTD I/O pins latched into PORTD register (if chip selected).
bit 2 ST/TTL(1) Input/output port pin or chip select control input in Parallel Slave Port mode or analog input.
For CS (PSP mode):
1 = Device is not selected
0 = Device is selected
MCLR/VPP/RE3 bit 3
ST
Input, Master Clear (Reset) or programming input voltage.
Legend: ST = Schmitt Trigger input, TTL = TTL input
Note 1: Input buffers are Schmitt Triggers when in I/O mode and TTL buffers when in Parallel Slave Port mode.
TABLE 5-10: SUMMARY OF REGISTERS ASSOCIATED WITH PORTE
Addr Name Bit 7 Bit 6 Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on:
POR, BOR
Value on
all other
Resets
09h PORTE
89h TRISE
—
—
—
—
RE3 RE2 RE1 RE0 ---- x000
IBF OBF IBOV PSPMODE —(1) PORTE Data Direction bits 0000 1111
9Fh ADCON1 ADFM ADCS2 VCFG1 VCFG0 PCFG3 PCFG2 PCFG1 PCFG0 0000 0000
Legend: x = unknown, u = unchanged, — = unimplemented, read as ‘0’. Shaded cells are not used by PORTE.
Note 1: RE3 is an input only. The state of the TRISE3 bit has no effect and will always read ‘1’.
---- x000
0000 1111
0000 0000
DS30498C-page 68
 2004 Microchip Technology Inc.