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

PIC16F916-I/ML View Datasheet(PDF) - Microchip Technology

Part Name
Description
Manufacturer
PIC16F916-I/ML Datasheet PDF : 330 Pages
First Prev 61 62 63 64 65 66 67 68 69 70 Next Last
PIC16F913/914/916/917/946
3.5 PORTC and TRISC Registers
PORTC is an 8-bit bidirectional port. PORTC is
multiplexed with several peripheral functions. PORTC
pins have Schmitt Trigger input buffers.
All PORTC pins have latch bits (PORTC register).
They will modify the contents of the PORTC latch
(when written); thus, modifying the value driven out on
a pin if the corresponding TRISC bit is configured for
output.
EXAMPLE 3-3:
BANKSEL PORTC
CLRF PORTC
BANKSEL TRISC
MOVLW 0FFh
MOVWF TRISC
BANKSEL LCDCON
CLRF LCDCON
INITIALIZING PORTC
;
;Init PORTC
;
;Set RC<7:0> as inputs
;
;
;Disable VLCD<3:1>
;inputs on RC<2:0>
REGISTER 3-8: PORTC: PORTC REGISTER
R/W-x
RC7
bit 7
R/W-x
RC6
R/W-x
RC5
R/W-x
RC4
R/W-x
RC3
R/W-x
RC2
R/W-x
RC1
R/W-x
RC0
bit 0
Legend:
R = Readable bit
-n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
x = Bit is unknown
bit 7-0
RC<7:0>: PORTC I/O Pin bits
1 = Port pin is >VIH min.
0 = Port pin is <VIL max.
REGISTER 3-9: TRISC: PORTC TRI-STATE REGISTER
R/W-1
TRISC7
bit 7
R/W-1
TRISC6
R/W-1
TRISC5
R/W-1
TRISC4
R/W-1
TRISC3
R/W-1
TRISC2
R/W-1
TRISC1
R/W-1
TRISC0
bit 0
Legend:
R = Readable bit
-n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
x = Bit is unknown
bit 7-0
TRISC<7:0>: PORTC Tri-State Control bits
1 = PORTC pin configured as an input (tri-stated)
0 = PORTC pin configured as an output
DS41250F-page 62
© 2007 Microchip Technology Inc.

Share Link: 

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