PIC16F913-I/SP Microchip Technology Inc., PIC16F913-I/SP Datasheet - Page 53

no-image

PIC16F913-I/SP

Manufacturer Part Number
PIC16F913-I/SP
Description
28 PIN, 7 KB FLASH, 352 RAM, 25 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F913-I/SP

A/d Inputs
5-Channel, 10-Bit
Comparators
2
Cpu Speed
5 MIPS
Eeprom Memory
256 Bytes
Input Output
25
Interface
I2C/SPI/USART
Memory Type
Flash
Number Of Bits
8
Package Type
28-pin SPDIP
Programmable Memory
7K Bytes
Ram Size
256 Bytes
Speed
20 MHz
Timers
2-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:
PIC16F913-I/SP
Manufacturer:
TI
Quantity:
212
3.4
PORTC is an 8-bit bidirectional port. PORTC is
multiplexed with several peripheral functions. PORTC
pins have Schmitt Trigger input buffers.
All PORTC pins have latch bits (PORTC register).
They, when written, will modify the contents of the
PORTC latch; thus, modifying the value driven out on
a pin if the corresponding TRISC bit is configured for
output.
REGISTER 3-7:
REGISTER 3-8:
© 2005 Microchip Technology Inc.
Note:
PORTC and TRISC Registers
bit 7-0
bit 7-0
Analog lines that carry LCD signals
(i.e., SEGx, VLCDy, where x and y are
segment and LCD bias voltage identifiers)
are shown as direct connections to the
device pins. The signals are outputs from
the LCD module and may be tri-stated,
depending on the configuration of the LCD
module.
PORTC – PORTC REGISTER (ADDRESS: 07h)
TRISC – PORTC TRI-STATE REGISTER (ADDRESS: 87h)
bit 7
RC<7:0>: PORTC I/O Pin bits
1 = Port pin is >V
0 = Port pin is <V
Legend:
R = Readable bit
- n = Value at POR
bit 7
TRISC<7:0>: PORTC Tri-State Control bits
1 = PORTC pin configured as an input (tri-stated)
0 = PORTC pin configured as an output
Legend:
R = Readable bit
- n = Value at POR
TRISC7
Note:
R/W-x
R/W-1
RC7
TRISC<7:6> always reads ‘1’ in XT, HS and LP OSC modes.
TRISC6
R/W-x
R/W-1
RC6
IH
IL
TRISC5
R/W-x
R/W-1
RC5
Preliminary
W = Writable bit
‘1’ = Bit is set
W = Writable bit
‘1’ = Bit is set
PIC16F917/916/914/913
TRISC4
R/W-x
R/W-1
RC4
EXAMPLE 3-3:
BCF
BCF
CLRF
BSF
BCF
MOVLW
MOVWF
BCF
BSF
CLRF
BCF
BCF
TRISC3
R/W-x
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
R/W-1
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
STATUS,RP0 ;Bank 0
STATUS,RP1 ;
PORTC
STATUS,RP0 ;Bank 1
STATUS,RP1 ;
FFh
TRISC
STATUS,RP0 ;Bank 2
STATUS,RP1 ;
LCDCON
STATUS,RP0 ;Bank 0
STATUS,RP1 ;
RC3
TRISC2
R/W-x
R/W-1
RC2
INITIALIZING PORTC
;Init PORTC
;Set RC<7:0> as inputs
;
;Disable VLCD<3:1>
;inputs on RC<2:0>
x = Bit is unknown
x = Bit is unknown
TRISC1
R/W-x
R/W-1
RC1
DS41250E-page 51
TRISC0
R/W-x
R/W-1
RC0
bit 0
bit 0

Related parts for PIC16F913-I/SP