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

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.7
PORTG is an digital input only port. Each pin is multi-
plexed with an LCD segment driver. These pins have
Schmitt Trigger input buffers.
EXAMPLE 5-7:
TABLE 5-13: PORTG FUNCTIONS
TABLE 5-14: SUMMARY OF REGISTERS ASSOCIATED WITH PORTG
DS30444E - page 40
Name
RG0/SEG20
Address Name
108h
188h
10Dh
Legend: Shaded cells are not used by PORTG.
RG1/SEG21
RG2/SEG22
RG3/SEG23
RG4/SEG24
RG5/SEG25
RG6/SEG26
RG7/SEG28
Legend: ST = Schmitt Trigger input
BCF STATUS,RP0
BSF STATUS,RP1
BCF LCDSE,SE27
BCF LCDSE,SE20
Note 1: On a Power-on Reset these pins are con-
Note 2: To configure the pins as a digital port, the
PORTG and TRISG Register
PORTG
TRISG
LCDSE
figured 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.
INITIALIZING PORTG
PORTG Data Direction Control Register
Bit#
bit0
bit1
bit2
bit3
bit4
bit5
bit6
bit7
SE29
Bit 7
RG7
;Select Bank2
;
;Make all PORTG
;and PORTE<7>
;digital inputs
Buffer Type
SE27
Bit 6
RG6
ST
ST
ST
ST
ST
ST
ST
ST
SE20
Bit 5
RG5
Digital input or Segment Driver20
Digital input or Segment Driver21
Digital input or Segment Driver22
Digital input or Segment Driver23
Digital input or Segment Driver24
Digital input or Segment Driver25
Digital input or Segment Driver26
Digital input or Segment Driver28 (not available on 64-pin devices)
SE16
Bit 4
RG4
SE12
Bit 3
RG3
FIGURE 5-10: PORTG BLOCK DIAGRAM
Data Bus
RD PORT
RD TRIS
Bit 2
RG2
SE9
LCD Common
Output Enable
LCD Segment
Output Enable
LCD
Common Data
LCDSE<n>
LCD
Segment Data
Bit 1
RG1
SE5
Function
Bit 0
RG0
SE0
V
DD
Q
1997 Microchip Technology Inc.
EN
0000 0000
1111 1111
1111 1111
Power-on
Value on
EN
D
Reset
Digital Input/
LCD Output pin
Schmitt
Trigger
input
buffer
other resets
Value on all
0000 0000
1111 1111
1111 1111

Related parts for PIC16C923-04I/CL