2016-06-29 06:48 AM
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.2016-06-29 09:30 AM
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. 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.