PIC18F2331-E/SP Microchip Technology, PIC18F2331-E/SP Datasheet - Page 215

IC MCU FLASH 4KX16 28-DIP

PIC18F2331-E/SP

Manufacturer Part Number
PIC18F2331-E/SP
Description
IC MCU FLASH 4KX16 28-DIP
Manufacturer
Microchip Technology
Series
PIC® 18Fr

Specifications of PIC18F2331-E/SP

Core Size
8-Bit
Program Memory Size
8KB (4K x 16)
Core Processor
PIC
Speed
40MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, Power Control PWM, QEI, POR, PWM, WDT
Number Of I /o
24
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
768 x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 5x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
28-DIP (0.300", 7.62mm)
Controller Family/series
PIC18
No. Of I/o's
24
Eeprom Memory Size
256Byte
Ram Memory Size
768Byte
Cpu Speed
40MHz
No. Of Timers
4
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
I3-DB18F4431 - BOARD DAUGHTER ICEPIC3AC164035 - MODULE SKT FOR 18F2X31 28SOICDVA18XP280 - DEVICE ADAPTER 18F2220 PDIP 28LD
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
18.0
18.1
The Synchronous Serial Port (SSP) module is a serial
interface useful for communicating with other periph-
eral or microcontroller devices. These peripheral
devices may be serial EEPROMs, shift registers,
display drivers, A/D Converters, etc. The SSP module
can operate in one of two modes:
• Serial Peripheral Interface (SPI)
• Inter-Integrated Circuit (I
An overview of I
information on the SSP module can be found in the
“PIC
(DS33023).
Refer to application note AN578, “Use of the SSP
Module in the I
(DS00578).
© 2007 Microchip Technology Inc.
®
Mid-Range MCU Family Reference Manual”
SYNCHRONOUS SERIAL PORT
(SSP) MODULE
SSP Module Overview
2
C™ Multi-Master Environment”
2
C operations and additional
2
C™)
PIC18F2331/2431/4331/4431
Preliminary
18.2
This section contains register definitions and opera-
tional characteristics of the SPI module. Additional
information on the SPI module can be found in the
”PIC
(DS33023).
SPI mode allows 8 bits of data to be synchronously
transmitted and received simultaneously. To accomplish
communication, typically three pins are used:
• Serial Data Out (SDO) – RC7/RX/DT/SDO or
• Serial Data In (SDI) – RC4/INT1/SDI/SDA or
• Serial Clock (SCK) – RC5/INT2/SCK/SCL or
Additionally, a fourth pin may be used when in a Slave
mode of operation:
• Slave Select (SS) – RC6/TX/CK/SS
When initializing the SPI, several options need to be
specified. This is done by programming the appropriate
control bits in the SSPCON (SSPCON<5:0>) and
SSPSTAT<7:6> registers. These control bits allow the
following to be specified:
• Master mode (SCK is the clock output)
• Slave mode (SCK is the clock input)
• Clock polarity (Idle state of SCK)
• Clock edge (output data on rising/falling edge of
• Clock rate (Master mode only)
• Slave Select mode (Slave mode only)
RD1/SDO
RD2/SDI/SDA
RD3/SCK/SCL
SCK)
®
Mid-Range MCU Family Reference Manual”
SPI Mode
DS39616C-page 213

Related parts for PIC18F2331-E/SP