pic24hj128gp510at-i-pt Microchip Technology Inc., pic24hj128gp510at-i-pt Datasheet - Page 161

no-image

pic24hj128gp510at-i-pt

Manufacturer Part Number
pic24hj128gp510at-i-pt
Description
High-performance, 16-bit Microcontrollers
Manufacturer
Microchip Technology Inc.
Datasheet
16.0
The Serial Peripheral Interface (SPI) module is a syn-
chronous serial interface useful for communicating with
other peripheral or microcontroller devices. These
peripheral devices may be serial EEPROMs, shift regis-
ters, display drivers, Analog-to-Digital converters, etc.
The SPI module is compatible with SPI and SIOP from
Motorola
FIGURE 16-1:
© 2009 Microchip Technology Inc.
Note:
Note:
SDOx
SCKx
SDIx
SSx
®
SERIAL PERIPHERAL
INTERFACE (SPI)
.
This data sheet summarizes the features
of the PIC24HJXXXGPX06A/X08A/X10A
family of devices. However, it is not
intended to be a comprehensive reference
source. To complement the information in
this data sheet, refer to the “PIC24H
Family Reference Manual“, Section 18.
“Serial
(DS70243), which is available from the
Microchip website (www.microchip.com).
In this section, the SPI modules are
referred to together as SPIx, or separately
as SPI1 and SPI2. Special Function Reg-
isters will follow a similar notation. For
example, SPIxCON refers to the control
register for the SPI1 or SPI2 module.
Read SPIxBUF
Control
Sync
Transfer
Peripheral
SPI MODULE BLOCK DIAGRAM
SPIxRXB
bit 0
PIC24HJXXXGPX06A/X08A/X10A
SPIxBUF
SPIxSR
Control
Interface
Clock
Shift Control
SPIxTXB
(SPI)”
Transfer
Write SPIxBUF
Preliminary
Select
Edge
Each SPI module consists of a 16-bit shift register,
SPIxSR (where x = 1 or 2), used for shifting data in and
out, and a buffer register, SPIxBUF. A control register,
SPIxCON, configures the module. Additionally, a status
register, SPIxSTAT, indicates various status conditions.
The serial interface consists of 4 pins: SDIx (serial data
input), SDOx (serial data output), SCKx (shift clock
input or output), and SSx (active-low slave select).
In Master mode operation, SCK is a clock output but in
Slave mode, it is a clock input.
16
Secondary
1:1 to 1:8
Prescaler
Internal Data Bus
1:1/4/16/64
Prescaler
Primary
F
SPIxCON1<1:0>
SPIxCON1<4:2>
Enable
Master Clock
DS70592A-page 159
CY

Related parts for pic24hj128gp510at-i-pt