4.3.10 Audio and External PLL

SAM V71 Xplained Ultra includes a WOLFSON WM8904 Audio CODEC for input and output of digital sound, the kit has two 3.5mm stereo jacks for microphone input and headphone output. There is also an (optional) external PLL, Cirrus Logic CS2100CP, that can be used to generate a reference clock to the WM8904. In an Ethernet AVB application, the CS2100CP PLL can be used to accurately reconstruct a media clock that is generated at a remote network node.

The WM8904 is configured through I2C while audio data is transferred via the SSC module in the SAM V71. The CS2100CP PLL is also configured through I2C, and the input clock reference is from PD21 which is internally connected to the timer unit of the Ethernet MAC in the ATSAMV71Q21.

Table 4-30. WM8904 Connections
SAM V71 pinFunctionAudio functionShared functionality
PA03TWD0I2C control interface, data lineEXT1, EXT2, EDBG I2C, LCD, Camera, PLL, MediaLB, EEPROM, Crypto, and Shield
PA04TWCK0I2C control interface, clock lineEXT1, EXT2, EDBG I2C, LCD, Camera, PLL, MediaLB, EEPROM, Crypto, and Shield
PA10RD, receiver dataADCDAT, digital audio output (microphone)Shield
PA18PCK2MCLK, master clockShield
PB00TF, transmitter frame synchronizationLRCLK left/right data alignment clockEXT1 and Shield (2)
PB01TK, transmitter clockBCLK, bit clock, for synchronizationEXT1 and Shield (2)
PD11GPIOInterrupt from Audio CODECCamera, EXT2, and Shield
PD24RF, receiver frame synchronizationLRCLK, left/right data alignment clockAudio, Camera, and Shield
PD26TD, transmitter dataDACDAT, digital audio input (headphone)EXT2 and Shield
Table 4-31. CS2100CP Connections
SAM V71 pinFunctionAudio functionShared functionality
PA03TWD0I2C control interface, data lineEXT1, EXT2, EDBG I2C, LCD, Camera, Audio, MediaLB, EEPROM, Crypto, and Shield
PA04TWCK0I2C control interface, data lineEXT1, EXT2, EDBG I2C, LCD, Camera, Audio, MediaLB, EEPROM, Crypto, and Shield
PD21TIOA11REFCLK, PLL inputCamera, EXT1, EXT2, EDBG SPI, and Shield (2)
PA22RK, receiver clockPLL outputShield