Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

16F636 Datasheet(PDF) 51 Page - Microchip Technology

Part # 16F636
Description  8/14-PIN FLASH-BASED, 8-BIT CMOS MICROCONTROLLERS WITH NANOWATT TECHNOLOGY
PDF  196 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

16F636 Datasheet(HTML) 51 Page - Microchip Technology

Back Button 16F636 Datasheet HTML 47Page - Microchip Technology 16F636 Datasheet HTML 48Page - Microchip Technology 16F636 Datasheet HTML 49Page - Microchip Technology 16F636 Datasheet HTML 50Page - Microchip Technology 16F636 Datasheet HTML 51Page - Microchip Technology 16F636 Datasheet HTML 52Page - Microchip Technology 16F636 Datasheet HTML 53Page - Microchip Technology 16F636 Datasheet HTML 54Page - Microchip Technology 16F636 Datasheet HTML 55Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 51 / 196 page
background image
© 2005 Microchip Technology Inc.
Preliminary
DS41232B-page 49
PIC12F635/PIC16F636/639
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 comparator. For specific
information about individual functions, refer to the
appropriate section in this data sheet.
EXAMPLE 4-3:
INITIALIZING PORTC
4.3.1
RC0/C2IN+
The RC0 pin is configurable to function as one of the
following:
• a general purpose I/O
• an analog input to the comparator
4.3.2
RC1/C2IN-
The RC1 pin is configurable to function as one of the
following:
• a general purpose I/O
• an analog input to the comparator
FIGURE 4-7:
BLOCK DIAGRAM OF RC0
AND RC1
4.3.3
RC2
The RC2 pin is configurable to function as a general
purpose I/O.
4.3.4
RC3
The RC3 pin is configurable to function as a general
purpose I/O.
4.3.5
RC5
The RC5 pin is configurable to function as a general
purpose I/O.
FIGURE 4-8:
BLOCK DIAGRAM OF
RC2, RC3 AND RC5
Note:
The CMCON0 (19h) register must be ini-
tialized to configure an analog channel as
a digital input. Pins configured as analog
inputs will read ‘0’.
BCF
STATUS,RP0
;Bank 0
BCF
STATUS,RP1
;
CLRF
PORTC
;Init PORTC
MOVLW
07h
;Set RC<4,1:0> to
MOVWF
CMCON0
;digital I/O
BSF
STATUS,RP0
;Bank 1
BCF
STATUS,RP1
MOVLW
0Ch
;Set RC<3:2> as inputs
MOVWF
TRISC
;and set RC<5:4,1:0>
;as outputs
BCF
STATUS,RP0
;Bank 0
BCF
STATUS,RP1
;
I/O pin
VDD
VSS
D
Q
CK
Q
D
Q
CK
Q
Data Bus
WR
PORTC
WR
TRISC
RD
TRISC
RD
PORTC
Analog Input
Mode
To Comparators
I/O pin
VDD
VSS
D
Q
CK
Q
D
Q
CK
Q
Data Bus
WR
PORTC
WR
TRISC
RD
TRISC
RD
PORTC



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