PIC16F84A-04E/SO Microchip Technology, PIC16F84A-04E/SO Datasheet - Page 258

IC MCU CMOS 4MHZ 1K FLASH 18SOIC

PIC16F84A-04E/SO

Manufacturer Part Number
PIC16F84A-04E/SO
Description
IC MCU CMOS 4MHZ 1K FLASH 18SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F84A-04E/SO

Core Processor
PIC
Core Size
8-Bit
Speed
4MHz
Peripherals
POR, WDT
Number Of I /o
13
Program Memory Size
1.75KB (1K x 14)
Program Memory Type
FLASH
Eeprom Size
64 x 8
Ram Size
68 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Oscillator Type
External
Operating Temperature
-40°C ~ 125°C
Package / Case
18-SOIC (7.5mm Width)
For Use With
I3-DB16F84A - BOARD DAUGHTER ICEPIC3
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Data Converters
-
Connectivity
-
PICmicro MID-RANGE MCU FAMILY
16.3.2
DS31016A-page 16-8
Enabling SPI I/O
To enable the serial port, SSP enable bit, SSPEN (SSPCON<5>), must be set. To reset or recon-
figure SPI mode, clear the SSPEN bit which re-initializes the SSPCON register, and then set the
SSPEN bit. This configures the SDI, SDO, SCK, and SS pins as serial port pins. For the pins to
behave as the serial port function, they must have their data direction bits (in the TRIS register)
appropriately programmed. That is:
• SDI must have the TRIS bit set
• SDO must have the TRIS bit cleared
• SCK (Master mode) must have the TRIS bit cleared
• SCK (Slave mode) must have the TRIS bit set
• SS must have the TRIS bit set
Any serial port function that is not desired may be overridden by programming the corresponding
data direction (TRIS) register to the opposite value. An example would be in master mode where
you are only sending data (to a display driver), then both SDI and SS could be used as general
purpose outputs by clearing their corresponding TRIS register bits.
1997 Microchip Technology Inc.

Related parts for PIC16F84A-04E/SO