cancel
Showing results for 
Search instead for 
Did you mean: 

sine wave from CS43l22

aditya
Associate II
Posted on June 29, 2016 at 15:48

Can anyone help me with how i can generate a sine wave and listen it on headphone or speaker through CS43L22 o my STM32F4-discovery board?

How should i set the desired frequency of the sine wave?

Thanks.
1 REPLY 1
Walid FTITI_O
Senior II
Posted on June 29, 2016 at 18:30

Hi gujjelwar.aditya,

Check ''stm32f4_discovery_audio.c'' in the STM32CubeF4 at this path : STM32Cube_FW_F4_V1.12.0\Drivers\BSP\STM32F4-Discovery

You can get inspired also from the ''Audio_playback_and_record'' example in the same package at this path : STM32Cube_FW_F4_V1.12.0\Projects\STM32F4-Discovery\Applications\Audio\Audio_playback_and_record

You would check also stm32f4_discovery_audio_codec.c and the ''Audio_playback_and_record'' project in the STM32F4-Discvovery_FW that you can download from this

http://www.st.com/content/st_com/zh/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32-standard-peripheral-libraries-expansions/stsw-stm32068.html

. File is under : STM32F4-Discovery_FW_V1.1.0\Utilities\STM32F4-Discovery

-Hannibal-

Can anyone help me with how i can generate a sine wave and listen it on headphone or speaker through CS43L22 o my STM32F4-discovery board?

How should i set the desired frequency of the sine wave?

Thanks.