Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN2682 Datasheet(PDF) 8 Page - STMicroelectronics

Part # AN2682
Description  This application note describes how to interface
PDF  15 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2682 Datasheet(HTML) 8 Page - STMicroelectronics

Back Button AN2682 Datasheet HTML 4Page - STMicroelectronics AN2682 Datasheet HTML 5Page - STMicroelectronics AN2682 Datasheet HTML 6Page - STMicroelectronics AN2682 Datasheet HTML 7Page - STMicroelectronics AN2682 Datasheet HTML 8Page - STMicroelectronics AN2682 Datasheet HTML 9Page - STMicroelectronics AN2682 Datasheet HTML 10Page - STMicroelectronics AN2682 Datasheet HTML 11Page - STMicroelectronics AN2682 Datasheet HTML 12Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 8 / 15 page
background image
STR711 implementation example
AN2682 - Application note
8/15
3.2
STR711 firmware description
This section describes how to use the SPI to I2S bridge in your application firmware, the
description is based on the source code for STR71x provided with this application note.
First, the STR71x peripherals are initialized:
●
The TIM1 timer is configured in PWM mode with a period and duty cycle corresponding
to the user defined CLK frequency.
●
The BSPI0 is configured in slave mode, with falling edge clock (CPOL=0, CPHA=1), 16
bit format, 10-word Transmit and Receive FIFO depth, clock divider calculated to
correspond to the user-defined BSPI clock frequency and Transmit FIFO empty
interrupt enabled (or Receive FIFO full interrupt if receive-only mode is active).
●
The EIC interrupt controller is configured to enable BSPI interrupt IRQ with the highest
priority.
The STR71x microcontroller performs two main functions:
1.
Configuration function: the microcontroller gets the user-defined Conf_Reg register
value from the DEFINE statements, then sets the Start pin low and transmits the three
bits clocked by the Conf falling edge.
2.
Communication function: After setting the Start signal high, the microcontroller waits
for an internal interrupt indicating that the transmit FIFO is empty or that the receive
FIFO is full. Then in the interrupt handler, the transmit FIFO is loaded from the audio
file and the receive FIFO is read and loaded in the corresponding file. This whole
operation is done while the last word is being transmitted and received (bidirectional
BSPI shift register). This results in fluent data transfer with no delays or breaks.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   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