Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

PIC16F684-E/P Datasheet(PDF) 42 Page - Microchip Technology

Part # PIC16F684-E/P
Description  14-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
PDF  164 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16F684-E/P Datasheet(HTML) 42 Page - Microchip Technology

Back Button PIC16F684-E/P Datasheet HTML 38Page - Microchip Technology PIC16F684-E/P Datasheet HTML 39Page - Microchip Technology PIC16F684-E/P Datasheet HTML 40Page - Microchip Technology PIC16F684-E/P Datasheet HTML 41Page - Microchip Technology PIC16F684-E/P Datasheet HTML 42Page - Microchip Technology PIC16F684-E/P Datasheet HTML 43Page - Microchip Technology PIC16F684-E/P Datasheet HTML 44Page - Microchip Technology PIC16F684-E/P Datasheet HTML 45Page - Microchip Technology PIC16F684-E/P Datasheet HTML 46Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 42 / 164 page
background image
PIC16F684
DS41202C-page 40
Preliminary
 2004 Microchip Technology Inc.
4.3
PORTC
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 Enhanced CCP or the A/D, refer to the
appropriate section in this data sheet.
EXAMPLE 4-3:
INITIALIZING PORTC
4.3.1
RC0/AN4/C2IN+
The RC0 is configurable to function as one of the
following:
• a general purpose I/O
• an analog input for the A/D Converter
• an analog input to the comparator
4.3.2
RC1/AN5/C2IN-
The RC1 is configurable to function as one of the
following:
• a general purpose I/O
• an analog input for the A/D Converter
• an analog input to the comparator
FIGURE 4-7:
BLOCK DIAGRAM OF RC0
AND RC1
Note:
The ANSEL (91h) and CMCON0 (19h)
registers must be initialized to configure
an analog channel as a digital input. Pins
configured as analog inputs will read ‘0’.
BCF
STATUS,RP0
;Bank 0
CLRF
PORTC
;Init PORTC
MOVLW
07h
;Set RC<4,1:0> to
MOVWF
CMCON0
;digital I/O
BSF
STATUS,RP0
;Bank 1
CLRF
ANSEL
;digital I/O
MOVLW
0Ch
;Set RC<3:2> as inputs
MOVWF
TRISC
;and set RC<5:4,1:0>
;as outputs
BCF
STATUS,RP0
;Bank 0
I/O PIN
VDD
VSS
D
Q
CK
Q
D
Q
CK
Q
Data Bus
WR
PORTC
WR
TRISC
RD
TRISC
To A/D Converter
RD
PORTC
Analog Input
Mode(1)
To Comparators
Note
1:
Analog Input mode comes from ANSEL or
Comparator mode.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com