PIC16F916-I/SP Microchip Technology, PIC16F916-I/SP Datasheet - Page 45

IC PIC MCU FLASH 8KX14 28SDIP

PIC16F916-I/SP

Manufacturer Part Number
PIC16F916-I/SP
Description
IC PIC MCU FLASH 8KX14 28SDIP
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F916-I/SP

Program Memory Type
FLASH
Program Memory Size
14KB (8K x 14)
Package / Case
28-DIP (0.300", 7.62mm)
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LCD, POR, PWM, WDT
Number Of I /o
24
Eeprom Size
256 x 8
Ram Size
352 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
Processor Series
PIC16F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
352 B
Interface Type
SSP/I2C/AUSART/SPI
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
24
Number Of Timers
3
Operating Supply Voltage
2 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
Through Hole
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
On-chip Adc
5-ch x 10-bit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F916-I/SP
Manufacturer:
Microchip Technology
Quantity:
1 800
Part Number:
PIC16F916-I/SP
Manufacturer:
JST
Quantity:
4 300
4.0
This device includes four 8-bit port registers along with
their corresponding TRIS registers and one four bit
port:
• PORTA and TRISA
• PORTB and TRISB
• PORTC and TRISC
• PORTD and TRISD
• PORTE and TRISE
PORTA, PORTB, PORTC and RE3/MCLR/V
implemented on all devices. PORTD and RE<2:0> are
implemented only on the PIC16F914 and PIC16F917.
4.1
PORTA is a 8-bit wide, bidirectional port. The
corresponding
(Register 4-2). 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 4-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 4-1).
Reading the PORTA register (Register 4-1) 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 implies that the
port pins are read, this value is modified and then written
to the port data latch.
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 input always read
‘0’.
 2004 Microchip Technology Inc.
Note 1: The CMCON0 (9Ch) register must be
2: Analog lines that carry LCD signals
I/O PORTS
PORTA and TRISA Registers
initialized to configure an analog channel
as a digital input. Pins configured as
analog inputs will read ‘0’.
(i.e., SEGx, COMy, where x and y are
segment and common 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.
data
direction
register
is
PP
TRISA
Preliminary
are
EXAMPLE 4-1:
BCF
BCF
CLRF
BSF
BCF
MOVLW
MOVWF
CLF
MOVLW
MOVWF
BCF
BCF
STATUS,RP0
STATUS,RP1
PORTA
STATUS,RP0
STATUS,RP1
07h
CMCON0
ANSEL
F0h
TRISA
STATUS,RP0
STATUS,RP1
INITIALIZING PORTA
PIC16F91X
;Bank 0
;
;Init PORTA
;Bank 1
;
;Set RA<2:0> to
;digital I/O
;Make all PORTA I/O
;Set RA<7:4> as inputs
;and set RA<3:0>
; as outputs
;Bank 0
;
DS41250B-page 43

Related parts for PIC16F916-I/SP