PIC16F616 Microchip Technology Inc., PIC16F616 Datasheet - Page 42

no-image

PIC16F616

Manufacturer Part Number
PIC16F616
Description
14-pin Flash-based, 8-bit Cmos Microcontrollers
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F616-E/SL
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F616-E/ST
0
Company:
Part Number:
PIC16F616-E/ST
Quantity:
30 000
Part Number:
PIC16F616-I/ML
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC16F616-I/SL
Manufacturer:
MICROCHIP
Quantity:
400
Part Number:
PIC16F616-I/SL
Manufacturer:
Microchip Technology
Quantity:
45 197
Part Number:
PIC16F616-I/SL
Manufacturer:
MICROCHIP
Quantity:
20 000
Part Number:
PIC16F616-I/SL
0
Company:
Part Number:
PIC16F616-I/SL
Quantity:
4 790
Company:
Part Number:
PIC16F616-I/SL
Quantity:
4 626
Part Number:
PIC16F616-I/ST
Quantity:
2 000
Part Number:
PIC16F616-I/ST
Manufacturer:
Microchip
Quantity:
30 000
Part Number:
PIC16F616-I/ST
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F616-I/ST
0
Part Number:
PIC16F616T-E/SL
0
PIC16F610/616/16HV610/616
4.3
PORTC is a general purpose I/O port consisting of 6
bidirectional pins. The pins can be configured for either
digital I/O or analog input to A/D Converter (ADC) or
Comparator. For specific information about individual
functions such as the Enhanced CCP or the ADC, refer
to the appropriate section in this data sheet.
REGISTER 4-6:
REGISTER 4-7:
DS41288C-page 40
bit 7
Legend:
R = Readable bit
-n = Value at POR
bit 7-6
bit 5-0
bit 7
Legend:
R = Readable bit
-n = Value at POR
bit 7-6
bit 5-0
Note:
U-0
U-0
PORTC and the TRISC Registers
The ANSEL register must be initialized to
configure an analog channel as a digital
input. Pins configured as analog inputs will
read ‘0’ and cannot generate an interrupt.
Unimplemented: Read as ‘0’
RC<5:0>: PORTC I/O Pin bit
1 = PORTC pin is > V
0 = PORTC pin is < V
Unimplemented: Read as ‘0’
TRISC<5:0>: PORTC Tri-State Control bit
1 = PORTC pin configured as an input (tri-stated)
0 = PORTC pin configured as an output
U-0
U-0
PORTC: PORTC REGISTER
TRISC: PORTC TRI-STATE REGISTER
W = Writable bit
W = Writable bit
‘1’ = Bit is set
‘1’ = Bit is set
TRISC5
R/W-x
R/W-1
RC5
IH
IL
TRISC4
R/W-1
R/W-x
RC4
Preliminary
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
TRISC3
R/W-0
R/W-1
EXAMPLE 4-2:
RC3
BCF
CLRF
BSF
CLRF
MOVLW
MOVWF
BCF
STATUS,RP0
PORTC
STATUS,RP0
ANSEL
0Ch
TRISC
STATUS,RP0
TRISC2
R/W-0
R/W-1
RC2
INITIALIZING PORTC
© 2007 Microchip Technology Inc.
x = Bit is unknown
x = Bit is unknown
;Bank 0
;Init PORTC
;Bank 1
;digital I/O
;Set RC<3:2> as inputs
;and set RC<5:4,1:0>
;as outputs
;Bank 0
TRISC1
R/W-x
R/W-1
RC1
TRISC0
R/W-x
R/W-1
RC0
bit 0
bit 0

Related parts for PIC16F616