Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.COM

X  

AN1445 Datasheet(PDF) 1 Page - STMicroelectronics

Part # AN1445
Description  USING THE ST7 SPI TO EMULATE A 16-BIT SLAVE
Download  7 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1445 Datasheet(HTML) 1 Page - STMicroelectronics

  AN1445 Datasheet HTML 1Page - STMicroelectronics AN1445 Datasheet HTML 2Page - STMicroelectronics AN1445 Datasheet HTML 3Page - STMicroelectronics AN1445 Datasheet HTML 4Page - STMicroelectronics AN1445 Datasheet HTML 5Page - STMicroelectronics AN1445 Datasheet HTML 6Page - STMicroelectronics AN1445 Datasheet HTML 7Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 1 / 7 page
background image
AN1445/1101
1/7
AN1445
APPLICATION NOTE
USING THE ST7 SPI TO EMULATE A 16-BIT SLAVE
By Microcontroller Division Applications
INTRODUCTION
This application note describes how to emulate a 16-bit slave SPI using an ST7 microcon-
troller with an on-chip 8-bit SPI.
Figure 1. 16-bit SPI frame
1 PRINCIPLE
The ST7 SPI cell has a double buffer for receiving data using two 8-bit registers: a read reg-
ister and a shift register (see Figure 2.). The application software accesses the read register to
retrieve the received data. The 8-bit shift register is managed by hardware to receive the 8 bits
of each byte. As each bit is received, it is shifted into the shift register. During byte reception,
the read register is not changed. It contains the previously received byte which can still be
read by software. At the end of byte reception, the 8-bit shift register is copied into the read
register.
This double buffering makes it possible to receive 16-bit words. At the end of reception of the
first byte, the shift register is copied into the read register, the SPIF flag is set and an interrupt
can be generated. The next in-coming byte will be received in the shift register while the first
byte is available in the read register. In order not to lose any bits, the software must be fast
enough to read the first byte before the end of the reception of the second one.
Note: The SPISR (SPI Status Register) is also called SPICSR (SPI Control/Status Register)
depending on which ST7 microcontroller device you use. In this application note, we’ll use the
name SPISR for the status register.
bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 bit 8 bit 9 bit 10 bit 11 bit 12 bit 13 bit 14bit 15
1


Similar Part No. - AN1445

ManufacturerPart #DatasheetDescription
logo
Silicon Laboratories
AN144 SILABS-AN144 Datasheet
322Kb / 30P
   DEVICE CUSTOMIZATION GUIDE
logo
STMicroelectronics
AN1441 STMICROELECTRONICS-AN1441 Datasheet
381Kb / 13P
   The ST890 is a low voltage
AN1446 STMICROELECTRONICS-AN1446 Datasheet
21Kb / 3P
   USING THE ST72521 EMULATOR TO DEBUG A ST72324 TARGET APPLICATION
AN1447 STMICROELECTRONICS-AN1447 Datasheet
208Kb / 26P
   SOFTWARE DRIVER FOR 4-MULTIPLEXED LCD WITH A STANDARD ST62
More results

Similar Description - AN1445

ManufacturerPart #DatasheetDescription
logo
STMicroelectronics
AN1504 STMICROELECTRONICS-AN1504 Datasheet
176Kb / 9P
   STARTING A PWM SIGNAL DIRECTLY AT HIGH LEVEL USING THE ST7 16-BIT TIMER
AN1042 STMICROELECTRONICS-AN1042 Datasheet
94Kb / 8P
   ST7 ROUTINE FOR I2C SLAVE MODE MANAGEMENT
AN1713 STMICROELECTRONICS-AN1713 Datasheet
48Kb / 4P
   SMBus SLAVE DRIVER FOR ST7 I2C PERIPHERAL
AN1712 STMICROELECTRONICS-AN1712 Datasheet
113Kb / 14P
   GENERATING A HIGH RESOLUTION SINEWAVE USING ST7 PWMART
AN1014 STMICROELECTRONICS-AN1014 Datasheet
258Kb / 25P
   HOW TO MINIMIZE THE ST7 POWER CONSUMPTION
AN970 STMICROELECTRONICS-AN970 Datasheet
69Kb / 10P
   SPI COMMUNICATION BETWEEN ST7 AND EEPROM
UM0250 STMICROELECTRONICS-UM0250 Datasheet
244Kb / 12P
   Getting started with the ST7
logo
NXP Semiconductors
S12CPU15UG NXP-S12CPU15UG Datasheet
7Mb / 548P
   The HCS12 V1.5 Core is a 16-bit processing core using the 68HC12 instruction set architecture (ISA).
Version 1.2
logo
STMicroelectronics
UM0139 STMICROELECTRONICS-UM0139 Datasheet
2Mb / 38P
   The ST7-EMU3 series emulators are the third generation of high-end emulators for ST7
June 2007 Rev 6
logo
Analog Devices
ADT7310 AD-ADT7310_17 Datasheet
442Kb / 25P
   16-Bit Digital SPI Temperature Sensor
More results


Html Pages

1 2 3 4 5 6 7


Datasheet Download

Go To PDF Page


Link URL




Privacy Policy
ALLDATASHEET.COM
Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Datasheet Upload   |   Contact us   |   Privacy Policy   |   Link Exchange   |   Manufacturer List
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