PIC16C923-04I/CL Microchip Technology, PIC16C923-04I/CL Datasheet - Page 36

no-image

PIC16C923-04I/CL

Manufacturer Part Number
PIC16C923-04I/CL
Description
8-Bit CMOS Microcontroller with LCD Driver
Manufacturer
Microchip Technology
Datasheet
PIC16C9XX
5.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 com-
mon drivers.
TRISD controls the direction of pins RD0 through RD4
when PORTD is configured as a digital port.
EXAMPLE 5-4:
DS30444E - page 36
Note:
Note:
BCF
BSF
BCF
BCF
BSF
BCF
MOVLW 0x07
MOVWF TRISD
PORTD and TRISD Registers
STATUS,RP0
STATUS,RP1
LCDSE,SE29
LCDSE,SE0
STATUS,RP0
STATUS,RP1
On a Power-on Reset these pins are con-
figured as LCD segment drivers.
To configure the pins as a digital port, the
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.
INITIALIZING PORTD
;Select Bank2
;
;Make RD<7:5> digital
;Make RD<4:0> digital
;Select Bank1
;
;Make RD<4:0> outputs
;Make RD<7:5> inputs
FIGURE 5-6: PORTD<4:0> BLOCK
WR
TRIS
Data Bus
WR
PORT
RD
PORT
LCDSE<n>
TRIS Latch
Data Latch
RD TRIS
LCD
Segment Data
LCD Segment
Output Enable
D
D
CK
CK
DIAGRAM
Q
Q
1997 Microchip Technology Inc.
Q
EN
EN
D
Schmitt
Trigger
input
buffer
I/O pin

Related parts for PIC16C923-04I/CL