| Electronic Components Datasheet Search |
|
AN2682 Datasheet(PDF) 9 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2682 Datasheet(HTML) 9 Page - STMicroelectronics |
|
9 / 15 page ![]() 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 × × × = |
|
|
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 |
| 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 |