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

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
11.4.1
The LCDSE register is used to select the pin function
for groups of pins. The selection allows each group of
pins to operate as either LCD drivers or digital only
pins. To configure the pins as a digital port, the corre-
sponding bits in the LCDSE register must be cleared.
trols the data direction. Any bit set in the LCDSE regis-
ter overrides any bit settings in the corresponding TRIS
register.
REGISTER 11-4:
DS39544A-page 94
If the pin is a digital I/O the corresponding TRIS bit con-
Note 1: On a Power-on Reset, these pins are
2: The LMUX1:LMUX0 takes precedence
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
SEGMENT ENABLES
configured as LCD drivers.
over the LCDSE bit settings for pins RD7,
RD6 and RD5.
LCDSE REGISTER (ADDRESS 10Dh)
bit 7
SE29: Pin Function Select
1 = Pins have LCD drive function
0 = Pins have digital Input function
SE27: Pin Function Select
1 = Pins have LCD drive function
0 = Pins have LCD drive function
1 = Pins have LCD drive function
0 = Pins have digital Input function
SE16: Pin Function Select
1 = Pins have LCD drive function
0 = Pins have digital Input function
SE12: Pin Function Select
1 = Pins have LCD drive function
0 = Pins have digital Input function
SE9: Pin Function Select
1 = Pins have LCD drive function
0 = Pins have digital Input function
SE5: Pin Function Select
1 = Pins have LCD drive function
0 = Pins have digital Input function
SE0: Pin Function Select
1 = Pins have LCD drive function
0 = Pins have digital Input function
Legend:
R = Readable bit
- n = Value at POR
SE20: Pin Function Select
R/W-1
SE29
R/W-1
SE27
R/W-1
SE20
Preliminary
W = Writable bit
’1’ = Bit is set
RG7/SEG28 and RE7/SEG27
RF7/SEG19 - RF4/SEG16
RF3/SEG15 - RF0/SEG12
RE6/SEG11 - RE4/SEG09
RE3/SEG08 - RE0/SEG05
RD4/SEG04 - RD0/SEG00
RD7/COM1/SEG31 - RD5/COM3/SEG29
RG6/SEG26 - RG0/SEG20
R/W-1
SE16
EXAMPLE 11-1:
EXAMPLE 11-2:
BCF
BSF
BSF
BCF
MOVLW 0x87
MOVWF LCDSE
. . .
BCF
BSF
BCF
BCF
MOVLW 0xFF
MOVWF LCDSE
. . .
U = Unimplemented bit, read as ‘0’
’0’ = Bit is cleared
STATUS,RP0
STATUS,RP1
LCDCON,LMUX1 ;Select Static MUX
LCDCON,LMUX0 ;
STATUS,RP0
STATUS,RP1
LCDCON,LMUX1 ;Select 1/3 MUX
LCDCON,LMUX0 ;
R/W-1
SE12
STATIC MUX WITH 32
SEGMENTS
ONE-THIRD DUTY CYCLE
WITH 13 SEGMENTS
R/W-1
SE9
;Select Bank 2
;
;Make PortD,E,F,G
;LCD pins
;configure rest of LCD
;Select Bank 2
;
;Make PORTD<7:0> &
;PORTE<6:0> LCD pins
;configure rest of LCD
2001 Microchip Technology Inc.
x = Bit is unknown
R/W-1
SE5
R/W-1
SE0
bit 0

Related parts for PIC16C926-I/CL