PIC16C926-I/CL Microchip Technology, PIC16C926-I/CL Datasheet - Page 36

no-image

PIC16C926-I/CL

Manufacturer Part Number
PIC16C926-I/CL
Description
64/68-Pin CMOS Microcontrollers with LCD Driver
Manufacturer
Microchip Technology
Datasheet
PIC16C925/926
4.4
PORTD is an 8-bit port with Schmitt Trigger input buff-
ers. The first five pins are configurable as general pur-
pose I/O pins or LCD segment drivers. Pins RD5, RD6
and RD7 can be digital inputs, or LCD segment, or
common drivers.
TRISD controls the direction of pins RD0 through RD4
when PORTD is configured as a digital port.
EXAMPLE 4-4:
FIGURE 4-6:
DS39544A-page 34
BCF
BSF
BCF
BCF
BSF
BCF
MOVLW 0xE0
MOVWF TRISD
Note 1: On a Power-on Reset, these pins are
LCD
LCD
Segment Data
LCD Segment
Output Enable
Data
Bus
WR
Port
WR
TRIS
RD
TRIS
RD
Port
SE<n>
PORTD and TRISD Registers
2: To configure the pins as a digital port, the
STATUS,RP0
STATUS,RP1
STATUS,RP0
STATUS,RP1
LCDSE, SE29
LCDSE, SE0
configured as LCD segment drivers.
corresponding bits in the LCDSE register
must be cleared. Any bit set in the LCDSE
register overrides any bit settings in the
corresponding TRIS register.
TRIS Latch
Data Latch
D
D
CK
CK
Q
Q
INITIALIZING PORTD
PORTD <4:0> BLOCK
DIAGRAM
Q
;Select Bank2
;
;Make RD<7:5> digital
;Make RD<4:0> digital
;Select Bank1
;
;Make RD<4:0> outputs
;Make RD<7:5> inputs
EN
EN
D
Schmitt
Trigger
Input
Buffer
I/O pin
Preliminary
FIGURE 4-7:
LCD
Segment Data
LCD Segment
Output Enable
LCD
Common Data
LCD Common
Output Enable
LCDSE<n>
Data Bus
RD Port
RD TRIS
V
PORTD<7:5> BLOCK
DIAGRAM
DD
Q
2001 Microchip Technology Inc.
EN
EN
D
LCD Output pin
Digital Input/
Schmitt
Trigger
Input
Buffer

Related parts for PIC16C926-I/CL