PIC16F684-E/ML Microchip Technology, PIC16F684-E/ML Datasheet - Page 42

IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,LLCC,16PIN,PLASTIC

PIC16F684-E/ML

Manufacturer Part Number
PIC16F684-E/ML
Description
IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,LLCC,16PIN,PLASTIC
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F684-E/ML

Rohs Compliant
YES
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
12
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
16-QFN
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
AC164324 - MODULE SKT FOR MPLAB 8DFN/16QFNXLT16QFN1 - SOCKET TRANSITION 14DIP TO 16QFN
Connectivity
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
PIC16F684
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:
DS41202F-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
The ANSEL and CMCON0 registers must
be initialized to configure an analog chan-
nel 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 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
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-3:
RC3
BANKSEL PORTC
CLRF
MOVLW
MOVWF
BANKSEL ANSEL
CLRF
MOVLW
MOVWF
BCF
PORTC
07h
CMCON0
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
;
;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
;Bank 0
TRISC1
R/W-0
R/W-1
RC1
TRISC0
R/W-0
R/W-1
RC0
bit 0
bit 0

Related parts for PIC16F684-E/ML