PIC16F636-E/ST Microchip Technology, PIC16F636-E/ST Datasheet - Page 59

no-image

PIC16F636-E/ST

Manufacturer Part Number
PIC16F636-E/ST
Description
IC MCU FLASH 2KX14 14TSSOP
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F636-E/ST

Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
Brown-out Detect/Reset, LVD, POR, WDT
Number Of I /o
11
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
FLASH
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
14-TSSOP
For Use With
AC162057 - MPLAB ICD 2 HEADER 14DIP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-
Connectivity
-
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 comparator. For specific
information about individual functions, refer to the
appropriate section in this data sheet.
REGISTER 4-6:
REGISTER 4-7:
© 2007 Microchip Technology Inc.
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 CMCON0 register 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 General Purpose I/O Pin bits
1 = Port pin is > V
0 = Port 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
IH
IL
R/W-1
R/W-x
RC5
TRISC4
R/W-1
R/W-x
PIC12F635/PIC16F636/639
RC4
U = Unimplemented bit, read as ‘0’
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
‘0’ = Bit is cleared
TRISC3
R/W-x
EXAMPLE 4-3:
RC3
R-1
BANKSEL PORTC
CLRF
MOVLW
MOVWF
BANKSEL TRISC
MOVLW
MOVWF
PORTC
07h
CMCON0
0Ch
TRISC
TRISC2
R/W-x
R/W-1
RC2
INITIALIZING PORTC
x = Bit is unknown
x = Bit is unknown
;
;Init PORTC
;Set RC<4,1:0> to
;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
DS41232D-page 57
TRISC0
R/W-0
R/W-1
RC0
bit 0
bit 0

Related parts for PIC16F636-E/ST