DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PIC16LC924-08/CL View Datasheet(PDF) - Microchip Technology

Part Name
Description
Manufacturer
PIC16LC924-08/CL
Microchip
Microchip Technology 
PIC16LC924-08/CL Datasheet PDF : 189 Pages
First Prev 31 32 33 34 35 36 37 38 39 40 Next Last
PIC16C9XX
5.7 PORTG and TRISG Register
PORTG is an digital input only port. Each pin is multi-
plexed with an LCD segment driver. These pins have
Schmitt Trigger input buffers.
Note 1: On a Power-on Reset these pins are con-
figured as LCD segment drivers.
Note 2: 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.
EXAMPLE 5-7: INITIALIZING PORTG
BCF STATUS,RP0
BSF STATUS,RP1
BCF LCDSE,SE27
BCF LCDSE,SE20
;Select Bank2
;
;Make all PORTG
;and PORTE<7>
;digital inputs
FIGURE 5-10: PORTG BLOCK DIAGRAM
LCD
Segment Data
LCD Segment
Output Enable
LCD
Common Data
LCD Common
Output Enable
Digital Input/
LCD Output pin
LCDSE<n>
Data Bus
Q
D
Schmitt
Trigger
input
buffer
RD PORT
ENEN
VDD
RD TRIS
TABLE 5-13: PORTG FUNCTIONS
Name
Bit# Buffer Type
RG0/SEG20
bit0
ST
RG1/SEG21
bit1
ST
RG2/SEG22
bit2
ST
RG3/SEG23
bit3
ST
RG4/SEG24
bit4
ST
RG5/SEG25
bit5
ST
RG6/SEG26
bit6
ST
RG7/SEG28
bit7
ST
Legend: ST = Schmitt Trigger input
Function
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)
TABLE 5-14: SUMMARY OF REGISTERS ASSOCIATED WITH PORTG
Address Name
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3
108h
PORTG RG7 RG6 RG5 RG4 RG3
188h
TRISG PORTG Data Direction Control Register
10Dh LCDSE SE29 SE27 SE20
Legend: Shaded cells are not used by PORTG.
SE16
SE12
Bit 2
RG2
SE9
Bit 1
RG1
SE5
Bit 0
RG0
SE0
Value on
Power-on
Reset
Value on all
other resets
0000 0000 0000 0000
1111 1111 1111 1111
1111 1111 1111 1111
DS30444E - page 40
© 1997 Microchip Technology Inc.

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]