Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AN2682 Datasheet(PDF) 9 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) 9 Page - STMicroelectronics

Back Button 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 AN2682 Datasheet HTML 13Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 15 page
background image
AN2682 - Application note
STR711 implementation example
9/15
3.2.1
CPU usage
In order to estimate the efficiency of this solution, for integration in different applications, we
can calculate the CPU load relative to the I2S communication. This value determines the
ratio of time dedicated to the I2S task. This value is calculated as follows:
T is time between the transmission of two words, so:
Where DW=1 or 2 depending on the word format (1 to 16 bits or 2 for 17 to 32 bits), and TF
is the FIFO size.
Tc is the CPU usage time, obtained (considering a mean instruction length of 3 CPU
cycles), by adding:
●
The time required to load the FIFOs (2 x TF x 3 CPU cycles).
●
The time needed to save and reload the context (16 + 26 CPU cycles).
●
The interrupt code execution time (47 x 3 CPU cycles).
●
Other durations need to be added such as the latency between the APB and the AHB
buses, the time related to the library operations, the optimization type used...
Determining the exact duration of all these terms is outside the scope of this document
and requires specific and detailed explanations for each case. The intention here is to
give a simplified overview of the performance.
For a 32 MHz MCLK frequency, 16-bit format and 10-word FIFO length, the CPU usage is
therefore:
C = 3.9%
C
Tc
T
-------
=
T
1
SCLK
----------------
16
DW
T
F
×
×
×
=



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