Waveshare WM8960 User Manual Download Page 4

WM8960 Audio Board 

   

 

WORKING PROTOCOL 

 

This module use WM8960 for audio encode/decode. WM8960 use I2C bus to 

control signal and configures internal registers, I2S bus used to transmit/receive audio 

signals. 

I2C BUS 

 

In I2C Bus, master device will first send an address frame for searching slave 

device and setting communication mode. High 7 bits are address, followed a control 

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 and the high 7 bits are address and the lowest one is 

response signal. MSB first. 

 

According to Datasheet, registers of WM8960 are 9-bit. Thus, when we send data 

to it, should split data to two bytes and add the ID of register to recognized before 

transmitting. The ID of register flagged by 7-bit. 

 

For more details about I2C, please refer to Page 15 and Page 63 of WM8960_v4.2. 

 

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: