PIC16F688-I/SL Microchip Technology Inc., PIC16F688-I/SL Datasheet - Page 44

no-image

PIC16F688-I/SL

Manufacturer Part Number
PIC16F688-I/SL
Description
14 PIN, 7 KB FLASH, 256 RAM, 12 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F688-I/SL

A/d Inputs
8-Channel, 10-Bit
Comparators
2
Cpu Speed
5 MIPS
Eeprom Memory
256 Bytes
Input Output
12
Interface
USART
Memory Type
Flash
Number Of Bits
8
Package Type
14-pin SOIC-N
Programmable Memory
7K Bytes
Ram Size
256 Bytes
Speed
20 MHz
Timers
1-8-bit, 1-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F688-I/SL
Manufacturer:
MICROCHIP
Quantity:
4 952
Part Number:
PIC16F688-I/SL
Manufacturer:
Microchip Technology
Quantity:
27 564
Part Number:
PIC16F688-I/SL
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F688-I/SL
0
PIC16F688
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 or compara-
tor. For specific information about individual functions
such as the EUSART or the A/D converter, refer to the
appropriate section in this data sheet.
REGISTER 4-6:
REGISTER 4-7:
DS41203B-page 42
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
The ANSEL and CMCON0 registers must
be initialized to configure an analog
channel as a digital input. Pins configured
as analog inputs will read ‘0’.
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 bits
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
‘1’ = Bit is set
W = Writable bit
‘1’ = Bit is set
TRISC5
R/W-1
R/W-x
RC5
IH
IL
TRISC4
R/W-1
R/W-x
RC4
U = Unimplemented bit, read as ‘0’
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
‘0’ = Bit is cleared
TRISC3
R/W-0
R/W-1
EXAMPLE 4-3:
RC3
BANKSEL PORTC
CLRF
MOVLW
MOVWF
BANKSEL ANSEL
CLRF
MOVLW
MOVWF
PORTC
07h
CMCON0
ANSEL
0Ch
TRISC
TRISC2
R/W-0
R/W-1
RC2
INITIALIZING PORTC
© 2006 Microchip Technology Inc.
x = Bit is unknown
x = Bit is unknown
;
;Init PORTC
;Set RC<4,1:0> to
;digital I/O
;
;digital I/O
;Set RC<3:2> as inputs
;and set RC<5:4,1:0>
;as outputs
TRISC1
R/W-0
R/W-1
RC1
TRISC0
R/W-0
R/W-1
RC0
bit 0
bit 0

Related parts for PIC16F688-I/SL