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

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.7
PORTG is a digital input only port. Each pin is multi-
plexed with an LCD segment driver. These pins have
Schmitt Trigger input buffers.
EXAMPLE 4-7:
TABLE 4-13:
TABLE 4-14:
DS39544A-page 38
Legend: ST = Schmitt Trigger input
108h
188h
10Dh
Legend: Shaded cells are not used by PORTG.
Address
Note 1: On a Power-on Reset, these pins are
BCF
BSF
BCF
BCF
RG0/SEG20
RG1/SEG21
RG2/SEG22
RG3/SEG23
RG4/SEG24
RG5/SEG25
RG6/SEG26
RG7/SEG28
Name
PORTG and TRISG Register
2: To configure the pins as a digital port, the
STATUS,
STATUS,
LCDSE,
LCDSE,
PORTG
TRISG
LCDSE
Name
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.
SUMMARY OF REGISTERS ASSOCIATED WITH PORTG
PORTG FUNCTIONS
PORTG Data Direction Control Register
Bit#
bit0
bit1
bit2
bit3
bit4
bit5
bit6
bit7
SE29
Bit 7
INITIALIZING PORTG
RG7
RP0
RP1
SE27
SE20
Buffer Type
SE27
Bit 6
;digital inputs
RG6
;Select Bank2
;
;Make all PORTG
;and PORTE<7>
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
Preliminary
SE12
Bit 3
RG3
FIGURE 4-9:
Bit 2
RG2
Data Bus
RD Port
RD TRIS
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
PORTG BLOCK DIAGRAM
V
Q
DD
2001 Microchip Technology Inc.
EN
0000 0000
1111 1111
1111 1111
EN
Power-on
Value on
D
Reset
Digital Input/
LCD Output pin
Schmitt
Trigger
Input
Buffer
Value on all
0000 0000
1111 1111
1111 1111
RESETS
other

Related parts for PIC16C926-I/CL