PIC16F913-I/SS Microchip Technology, PIC16F913-I/SS Datasheet - Page 46

IC PIC MCU FLASH 4KX14 28SSOP

PIC16F913-I/SS

Manufacturer Part Number
PIC16F913-I/SS
Description
IC PIC MCU FLASH 4KX14 28SSOP
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F913-I/SS

Core Size
8-Bit
Program Memory Size
7KB (4K x 14)
Core Processor
PIC
Speed
20MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LCD, POR, PWM, WDT
Number Of I /o
24
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 5x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
28-SSOP
Controller Family/series
PIC16F
No. Of I/o's
24
Eeprom Memory Size
256Byte
Ram Memory Size
256Byte
Cpu Speed
20MHz
No. Of Timers
3
Package
28SSOP
Device Core
PIC
Family Name
PIC16
Maximum Speed
20 MHz
Operating Supply Voltage
5 V
Data Bus Width
8 Bit
Number Of Programmable I/os
24
Interface Type
I2C/SPI/USART
On-chip Adc
5-chx10-bit
Number Of Timers
3
Processor Series
PIC16F
Core
PIC
Data Ram Size
352 B
Maximum Clock Frequency
20 MHz
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000, DV164120
Minimum Operating Temperature
- 40 C
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
AC164307 - MODULE SKT FOR PM3 28SSOPXLT28SS-1 - SOCKET TRANSITION ICE 28SSOP
Lead Free Status / Rohs Status
 Details

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F913-I/SS
Manufacturer:
INFINEON
Quantity:
201
Part Number:
PIC16F913-I/SS
Manufacturer:
Microchi
Quantity:
7 664
Part Number:
PIC16F913-I/SS
Manufacturer:
MIC
Quantity:
20 000
PIC16F913/914/916/917/946
3.2
PORTA is a 8-bit wide, bidirectional port. The
corresponding
(Register 3-3). Setting a TRISA bit (= 1) will make the
corresponding PORTA pin an input (i.e., put the
corresponding output driver in a High-Impedance mode).
Clearing a TRISA bit (= 0) will make the corresponding
PORTA pin an output (i.e., put the contents of the output
latch on the selected pin). Example 3-1 shows how to
initialize PORTA.
Five of the pins of PORTA can be configured as analog
inputs. These pins, RA5 and RA<3:0>, are configured
as analog inputs on device power-up and must be
reconfigured by the user to be used as I/O’s. This is
done by writing the appropriate values to the CMCON0
and ANSEL registers (see Example 3-1).
Reading the PORTA register (Register 3-2) reads the
status of the pins, whereas writing to it will write to the
PORT latch. All write operations are read-modify-write
operations. Therefore, a write to a port means that the
port pins are read, this value is modified and then written
to the PORT data latch.
REGISTER 3-2:
REGISTER 3-3:
DS41250F-page 44
bit 7
Legend:
R = Readable bit
-n = Value at POR
bit 7-0
bit 7
Legend:
R = Readable bit
-n = Value at POR
bit 7-0
Note
TRISA7
R/W-x
R/W-1
RA7
1:
PORTA and TRISA Registers
TRISA<7:6> always reads ‘1’ in XT, HS and LP Oscillator modes.
data
RA<7:0>: PORTA I/O Pin bits
1 = Port pin is >V
0 = Port pin is <V
TRISA<7:0>: PORTA Tri-State Control bits
1 = PORTA pin configured as an input (tri-stated)
0 = PORTA pin configured as an output
TRISA6
R/W-x
R/W-1
RA6
PORTA: PORTA REGISTER
TRISA: PORTA TRI-STATE REGISTER
direction
W = Writable bit
‘1’ = Bit is set
W = Writable bit
‘1’ = Bit is set
IH
IL
max.
min.
register
TRISA5
R/W-x
R/W-1
RA5
is
TRISA
TRISA4
R/W-x
R/W-1
RA4
U = Unimplemented bit, read as ‘0’
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
‘0’ = Bit is cleared
TRISA3
R/W-1
R/W-x
The TRISA register controls the direction of the PORTA
pins, even when they are being used as analog inputs.
The user must ensure the bits in the TRISA register are
maintained set when using them as analog inputs. I/O
pins configured as analog inputs always read ‘0’.
EXAMPLE 3-1:
RA3
BANKSEL PORTA
CLRF
BANKSEL TRISA
MOVLW
MOVWF
CLRF
MOVLW
MOVWF
Note 1: The CMCON0 and ANSEL registers must
PORTA
07h
CMCON0
ANSEL
0F0h
TRISA
be initialized to configure an analog
channel as a digital input. Pins configured
as analog inputs will read ‘0’.
TRISA2
R/W-1
R/W-x
RA2
;
;Init PORTA
;
;Set RA<2:0> to
;digital I/O
;Make all PORTA digital I/O
;Set RA<7:4> as inputs
;and set RA<3:0> as outputs
INITIALIZING PORTA
© 2007 Microchip Technology Inc.
x = Bit is unknown
x = Bit is unknown
TRISA1
R/W-x
R/W-1
RA1
TRISA0
R/W-x
R/W-1
RA0
bit 0
bit 0

Related parts for PIC16F913-I/SS