Zakładka z wyszukiwarką danych komponentów
  Polish  ▼
ALLDATASHEET.PL

X  

AN3143 Arkusz danych(PDF) 7 Page - STMicroelectronics

Numer części AN3143
Szczegółowy opis  Audio software codec for the STM8S
PDF  13 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Producent  STMICROELECTRONICS [STMicroelectronics]
Strona internetowa  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3143 Arkusz danych(HTML) 7 Page - STMicroelectronics

Back Button AN3143 Datasheet HTML 3Page - STMicroelectronics AN3143 Datasheet HTML 4Page - STMicroelectronics AN3143 Datasheet HTML 5Page - STMicroelectronics AN3143 Datasheet HTML 6Page - STMicroelectronics AN3143 Datasheet HTML 7Page - STMicroelectronics AN3143 Datasheet HTML 8Page - STMicroelectronics AN3143 Datasheet HTML 9Page - STMicroelectronics AN3143 Datasheet HTML 10Page - STMicroelectronics AN3143 Datasheet HTML 11Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 7 / 13 page
background image
AN3143
Audio data encoding and storing
Doc ID 17011 Rev 1
7/13
Another way to store audio data to the internal memory is to link audio data arrays with the
compiled code. To include raw data in a project, a binary representation of the data have to
be converted to ASCII format. Any advanced HEX editor is able to export data in this format
which is then readable by ANSI C compilers. The TxD hexa editor (see References) is an
easy-to-use software, with a free license, no restrictions for commercial use, and which can
be freely distributed.
The processing of audio data, which have to be included in a project, consists of loading
binary data into the editor and exporting them as a C source code.
Figure 3.
Hexa editor export to C source code
The output of this operation is a C source file with one array:
unsigned char rawData[10340] = { ...
This declaration has to be modified, using compiler directives, into an array of constants in
the program memory. This is done for the COSMIC compiler as follows:
const @far unsigned char rawData[10340] = { ...
For the Raisonance compiler, the following directive has to be used:
fcode unsigned char rawData[10340] = { ...
For more details, see the firmware project associated with this application note on
www.st.com/mcu.



Html Pages

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


Arkusz danych Pobierz

Go To PDF Page


Link URL



Czy Alldatasheet okazała się pomocna?  [ DONATE ] 

O Alldatasheet   |   Reklama   |   Kontakt   |   Polityka prywatności   |   Link do karty katalogowej    |   Linki   |   Lista producentów
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