Audio Sine Tone Tutorial: Step 2

Step 2.1: Add SSC, XDMAC and stdio drivers

1

UnderASF Wizard, selectaudio_sine_tone_lab from theProject drop-down menu. This shows the available and default selected ASF modules.

image6.png

Click image to enlarge.

2

SelectDrivers from theShow drop-down list. Select and AddSynchronous Serial Controller(SSC) (driver).

image7.png

The SSC driver is added to use the SAM V71 SSC peripheral. SSC is used for transmission of audio data in I2S protocol mode.

3

Select and addExtendible Direct Memory Access Controller (XDMAC) (driver).

image8.png

The XDMAC driver enables the SSC to transfer data without processor intervention while connecting over the I2S interface.

4

Select and addStandard serial I/O (stdio) (driver).

image9.png

The stdio driver uses the SAM V71 USART peripheral as a console to print debug messages.

Step 2.2: Add System Clock Control and Delay routines services

Select 'Services' from the 'Show' drop-down list.

1

Select and addSystem Clock Control (service).

image10.png

The system clock control service is used to add thePower Management Controller driver (PMC) module. The PMC is needed to enable the peripheral clocks for SSC, TWI and XDMAC modules.

2

Select and addDelay routines (service).

image11.png

The delay system service is used to perform delay operations.

Step 2.3: Add audio codec WM8904 component

Select 'Components' from the 'Show' drop-down list.

1

Select and addWM8904 Audio Codec (component).

image12.png

The WM8904 audio codec component is added to configure and enable the WM8904 codec module on the SAM V71 Xplained Ultra Evaluation Kit. This component provides APIs to configure and enable the codec as a master or slave.

2

ClickApply to add the selected ASF module to the project.

image13.png

While the added modules are being applied to the project, information is prompted mentioning the modules added. Click theOK button on the information prompt.

image14.png

Instead of selecting the ASF modules from the drop down list, you can find and add the required module by typing the name in the search text box.

image54.png

Step 2.4: Verify the added modules

On the right pane, Click onSolution Explorer and observe that the source files for the selected modules are added to the project.

image15.png



Next Step >