Waveshare WM8960 User Manual Download Page 10

WM8960 Audio Board 

   

 

2.

 

Description of files 

Examples are compiled on MDK-ARM V4, generated by STM32CubeMX 

../Src: 

WM8960.c: Bottom driver of WM8960, mainly provide functions that sending data 

to chip, initializes chip. In the top of this file, macros are used to choose record 

devices (On board mic or earphone mic), in the function of WM8960 initialization, 

you can uncomment codes to enable functions of bypass output 

Record_WAV.c: Provide function that record audio and stores to SD card, include 

create WAV files, record audio, handle keys events and so on. 

3.

 

Expected result 

Connecting all the modules to Open429I-C, then inset an earphone or speaker to 

Audio board. Connect UASRT1 interface of Open429I-C to PC and open the serial 

assistance software. 

Download example to Open429I-C, MCU will prints the recording file name via 

UASRT1, and prompt that press Joystick to begin recording. 

After pressing joystick, you can speak to mic, and you can see your voice are 

bypass outputted from speaker or earphone, You can press Joystick to 

pause/restore during recording. Long press Joystick for 1~2s to stop recording. 

After recording, power off Open429I-C, inset the SD card to PC, you can find the 

WAV files recorded and play; You can also use the play example to play the audio 

you record. 

Summary of Contents for WM8960

Page 1: ...quantity MEMS silicon MIC for recording without earphone 3 5mm 4 segment headphone mic allows external headphone for recording or playing Dual channel Speaker interface for external speaker Supports...

Page 2: ...98dB ADC signal noise ratio 94dB Headphone controller 16 40mW Speaker controller 8 1W PINS PIN Descriptions VCC 3 3V GND Ground SDA I2C Data input SCL I2C Clock input CLK I2S Bit clock input WS I2S F...

Page 3: ...cating There are 3P pins for choosing MCLK signal left one is MCLK signal transmitted and the right one is MCLK signal received You can connect 3 segment headphone or 4 segment headphone mic to EARPHO...

Page 4: ...bit and finally the response signal If slave device receives the response signal it will return a response to master device Then master device could begin to send data to slave device which is 8 bits...

Page 5: ...uency 2 x Sample rate x Sample bits Frame clock LRCK WS is used to switch data of LEFT and RIGHT channels If LRCK is 1 it means that data of RIGHT channel are being transmitted and LEFT channel is act...

Page 6: ...audio file to SD card EXAMPLES FOR OPEN429I C Example 1 Play audio data internal 1 Hardware connection Board Open429I C Module required WM8960 Audio Board You should connect WM8960 module to I2S inter...

Page 7: ...d TX on board with jumper connect WM8960 audio board to Open429 as table above Connect an earphone or speaker to audio board then download the example to development board Audio will be outputted to e...

Page 8: ...f WM8960 mainly provide functions that sending data to chip initializes chip Play_WAV c Provide function that play WAV file from SD card include read list of WAV files read audio information of files...

Page 9: ...Hardware connection Board Open429I C Modules required Micro SD Storage Board SD card WM8960 Audio Board You should insert SD card to Micro SD Storage Board then connect the SD board to SDIO interface...

Page 10: ...ts and so on 3 Expected result Connecting all the modules to Open429I C then inset an earphone or speaker to Audio board Connect UASRT1 interface of Open429I C to PC and open the serial assistance sof...

Page 11: ...interface of the Open board PIN Open746I C VCC 3 3V GND GND SDA I2C1_SDA PB9 SCL I2C1_SCL PB8 CLK I2S2_CLK PB13 WS I2S2_WS PB12 TXSDA I2S2_SDA PB13 TXMCLK I2S2_MCLK PC6 Note Pins which doesn t listed...

Page 12: ...speaker to audio board then download the example to development board Audio will be outputted to earphone speaker Example 2 Play WAV audio from SD card 1 Hardware connection Board Open746I C Modules r...

Page 13: ...lay_WAV c Provide function that play WAV file from SD card include read list of WAV files read audio information of files play WAV files handle keys events and so on 3 Expected result After connecting...

Page 14: ...cro SD Storage Board SD card WM8960 Audio Board You should insert SD card to Micro SD Storage Board then connect the SD board to SDIO interface of Open746I C Finally insert Audio board to SAI interfac...

Page 15: ...ts and so on 3 Expected result Connecting all the modules to Open746I C then inset an earphone or speaker to Audio board Connect UASRT1 interface of Open746I C to PC and open the serial assistance sof...

Reviews: