Motore di ricerca datesheet componenti elettronici
  Italian  ▼
ALLDATASHEETIT.COM

X  

DSPIC30F2012AT20E/SP Scheda tecnica(PDF) 91 Page - Microchip Technology

Il numero della parte DSPIC30F2012AT20E/SP
Spiegazioni elettronici  High-Performance, 16-Bit Digital Signal Controllers
PDF  205 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Produttore elettronici  MICROCHIP [Microchip Technology]
Homepage  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

DSPIC30F2012AT20E/SP Scheda tecnica(HTML) 91 Page - Microchip Technology

Back Button DSPIC30F2012AT20E/SP Datasheet HTML 87Page - Microchip Technology DSPIC30F2012AT20E/SP Datasheet HTML 88Page - Microchip Technology DSPIC30F2012AT20E/SP Datasheet HTML 89Page - Microchip Technology DSPIC30F2012AT20E/SP Datasheet HTML 90Page - Microchip Technology DSPIC30F2012AT20E/SP Datasheet HTML 91Page - Microchip Technology DSPIC30F2012AT20E/SP Datasheet HTML 92Page - Microchip Technology DSPIC30F2012AT20E/SP Datasheet HTML 93Page - Microchip Technology DSPIC30F2012AT20E/SP Datasheet HTML 94Page - Microchip Technology DSPIC30F2012AT20E/SP Datasheet HTML 95Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 91 / 205 page
background image
© 2006 Microchip Technology Inc.
DS70139E-page 89
dsPIC30F2011/2012/3012/3013
13.0
SPI MODULE
The Serial Peripheral Interface (SPI) module is a syn-
chronous serial interface. It is useful for communicating
with other peripheral devices, such as EEPROMs, shift
registers, display drivers and A/D converters, or other
microcontrollers. It is compatible with Motorola's SPI
and SIOP interfaces. The dsPIC30F2011/2012/3012/
3013 devices feature one SPI module, SPI1.
13.1
Operating Function Description
Figure 13-1 is a simplified block diagram of the SPI
module, which consists of a 16-bit shift register,
SPI1SR , used for shifting data in and out, and a buffer
register, SPI1BUF. Control register SPI1CON (not
shown) configures the module. Additionally, status reg-
ister SPI1STAT (not shown) indicates various status
conditions.
Four I/O pins comprise the serial interface:
• SDI1 (serial data input)
• SDO1 (serial data output)
• SCK1 (shift clock input or output)
• SS1 (active-low slave select).
In Master mode operation, SCK1 is a clock output. In
Slave mode, it is a clock input.
A series of eight (8) or sixteen (16) clock pulses shift
out bits from the SPI1SR to SDO1 pin and simulta-
neously shift in data from SDI1 pin. An interrupt is
generated when the transfer is complete and the
interrupt flag bit (SPI1IF) is set. This interrupt can be
disabled through the interrupt enable bit, SPI1IE.
The receive operation is double-buffered. When a com-
plete byte is received, it is transferred from SPI1SR to
SPI1BUF.
If the receive buffer is full when new data is being trans-
ferred from SPI1SR to SPI1BUF, the module will set the
SPIROV bit indicating an overflow condition. The trans-
fer of the data from SPI1SR to SPI1BUF is not com-
pleted and the new data is lost. The module will not
respond to SCL transitions while SPIROV is ‘1’, effec-
tively disabling the module until SPI1BUF is read by
user software.
Transmit writes are also double-buffered. The user
writes to SPI1BUF. When the master or slave transfer
is completed, the contents of the shift register
(SPI1SR) are moved to the receive buffer. If any trans-
mit data has been written to the buffer register, the con-
tents of the transmit buffer are moved to SPI1SR. The
received data is thus placed in SPI1BUF and the trans-
mit data in SPI1SR is ready for the next transfer.
FIGURE 13-1:
SPI BLOCK DIAGRAM
Note: This data sheet summarizes features of this group
of dsPIC30F devices and is not intended to be a complete
reference source. For more information on the CPU,
peripherals, register descriptions and general device
functionality, refer to the “dsPIC30F Family Reference
Manual “ (DS70046).
Note:
See “dsPIC30F Family Reference Man-
ual” (DS70046) for detailed information on
the control and status registers.
Note:
Both the transmit buffer (SPI1TXB) and
the receive buffer (SPI1RXB) are mapped
to the same register address, SPI1BUF.
Read
Write
Internal
Data Bus
SDI1
SDO1
SS1
SCK1
SPI1SR
SPIxBUF
bit 0
Shift
Clock
Edge
Select
FCY
Primary
1, 4, 16, 64
Enable Master Clock
Prescaler
Secondary
Prescaler
1:1 – 1:8
SS & FSYNC
Control
Clock
Control
Transmit
SPIxBUF
Receive



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Scheda tecnica Scarica

Go To PDF Page


Link URL



Lei ha avuto il aiuto da alldatasheet?  [ DONATE ] 

Di alldatasheet   |   Richest di pubblicita   |   contatti   |   Privacy Policy   |   Collegamento alla scheda tecnica    |   scambio Link   |   Ricerca produttore
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com