Quick viewing(Text Mode)

PIC32 USB Digital Audio Accessory Board Information Sheet

PIC32 USB Digital Audio Accessory Board Information Sheet

PIC32 USB Digital Audio Accessory Board Information Sheet

Features The PIC32 USB Digital Audio Accessory Board showcases a 16/24-bit quality digital stereo audio development platform using the PIC32 microcontroller (MCU). It can be used for 16/24-bit stereo audio playback and recording with a sample rate of up to 48 kHz. This accessory board is powered by the USB Host and can be used with any personal computer (PC), tablet, gaming station, or that supports the USB Audio Device Class. The digital audio stream is transferred over USB isochronous transfers. The PIC32 USB Digital Audio Accessory Board features the PIC32 MCU, which has a USB module with Host and Device capability, in addition to an SPI periph- eral module with Audio Mode that supports I2S, LJ, RJ, DSP/PCM modes and an accurate, flexible audio reference clock output generation module that can be used as time base for the external codec or Digital-to-Analog Converter (DAC). Key features of the PIC32 USB Digital Audio Accessory Board: • PIC32MX250F128B MCU: 40 MIPS, 128 KB of program memory and 32 KB of RAM • PIC32 I2S support (LJ, RJ, DSP/PCM modes supported) – all modes can be 16/24-bit • PIC32 reference clock output for codec master clock • Audio codec (AK4645A) with up to 48 kHz sampling rate and 16/24-bit resolution • Supported codec-based audio processing features: - 5-band equalizer - Analog output mixing Americas Asia/Pacific (Continued) - Stereo separation emphasis and wind-noise filtering Atlanta - 678-957-9614 China - Hangzhou - 86-571-2819-3187 - Auto-level control Boston - 774-760-0087 China - Hong Kong SAR - 852-2401-1200 Chicago - 630-285-0071 China - Nanjing- 86-25-8473-2460 FIGURE 1: PIC32 USB DIGITAL AUDIO ACCESSORY BOARD Cleveland - 216-447-0464 China - Qingdao - 86-532-8502-7355 Dallas - 972-818-7423 China - Shanghai - 86-21-5407-5533 Detroit - 248-538-2250 China - Shenyang - 86-24-2334-2829 Indianapolis - 317-773-8323 China - Shenzhen - 86-755-8203-2660 Los Angeles - 949-462-9523 China - Wuhan - 86-27-5980-5300 Phoenix - 480-792-7200 China - Xiamen - 86-592-2388138 Santa Clara - 408-961-6444 China - Xian - 86-29-8833-7252 Toronto - 905-673-0699 China - Zhuhai - 86-756-3210040 India - Bangalore - 91-80-3090-4444 Europe India - New Delhi - 91-11-4160-8631 Austria - Wels - 43-7242-2244-39 India - Pune - 91-20-2566-1512 Denmark - Copenhagen - 45-4450-2828 Japan - Osaka - 81-66-152-7160 France - Paris - 33-1-69-53-63-20 Japan - Yokohama - 81-45-471-6166 Germany - Munich - 49-89-627-144-0 Korea - Daegu - 82-53-744-4301 Italy - Milan - 39-0331-742611 Korea - Seoul - 82-2-554-7200 Netherlands - Drunen - 31-416-690399 Malaysia - Kuala Lumpur - 60-3-6201-9857 Getting Started Spain - Madrid - 34-91-708-08-90 Malaysia - Penang - 60-4-227-8870 UK - Wokingham - 44-118-921-5869 Philippines - Manila - 63-2-634-9065 The PIC32 USB Digital Audio Accessory Board is preprogrammed with a USB Audio Asia/Pacific Singapore - 65-6334-8870 application, which demonstrates audio playback and record. This demonstration can playback high Australia - Sydney - 61-2-9868-6733 Taiwan - Hsin Chu - 886-3-5778-366 quality stereo audio through . It can also record audio through a . China - Beijing - 86-10-8569-2100 Taiwan - Kaohsiung - 886-7-536-4818 To run the demonstration, follow these steps: China - Chengdu - 86-28-8665-5511 Taiwan - Taipei - 886-2-2500-6610 Thailand - Bangkok - 66-2-694-1351 1. Using the USB cable provided with the board, insert the mini-B connector end of the cable into China - Chongqing - 86-23-8980-9588 the receptacle labeled J1on the PIC32 USB Digital Audio Accessory Board. 2. Connect the other end of the cable to the USB port of the PC. 11/29/11 3. Wait for the USB audio driver to be automatically installed and the PIC32 USB Digital Audio Accessory Board to be enumerated as a digital audio device. 4. Audio Playback: a) Plug in a pair of headphones to the connector labeled HP OUT. b) Open any music application on the PC and play music. Inc. • 2355 West Chandler Blvd. • Chandler, AZ 85224-6199 c) Listen to the music through a pair of headphones. www.microchip.com 5. Audio Recording: The Microchip name and logo, the Microchip logo, and MPLAB are registered trademarks of Microchip Technology a) Plug in a microphone to either the MIC1 IN or MIC2 IN connector. Incorporated in the U.S.A. and other countries. All other trademarks mentioned herein are property of their respective b) Open any audio record application on the PC and begin recording. companies. © 2012, Microchip Technology Incorporated, Printed in the U.S.A. All Rights Reserved. 11/11 c) After recording for the desired duration, save and playback the recorded audio. DS52061A To get started with development, please visit www.microchip.com/pic32tools, and click the PIC32 *DS52061A* USB Digital Audio Accessory Board product link. PIC32 USB Digital Audio Accessory Board Information Sheet

Schematics (Sheets 1 of 2)

U1

R6 1R 1 28 AVDD PGD/RB0 PGED1/RB0 RPA1/RA1 SPI_SDI C5 R7 2 27 10uF PGC PGEC1/RB1 RA0 ANO/RAO DVDD 0R 3 26 CNB2 SDA2/RB2 MCLR MCLR AVDD R2 10k 4 25 DVDD CNB3 SCL2/RB3 AVDD C1 R12 1R CVDD 5 24 0.1uF D1 DVDD VSS AVSS R3 1K RED C7 Y1 PGD/RB0 C9 1uF C8 6 23 10uF 10uF OSCI/RA2 RPB15/RB15 RB15 R4 1K D2 RED RB15 7 22 RESET OSC2/RA3 SCK1/RB14 SPI_SCK

R5 1K D3 RED RB13 8 21 SPI_LRCK RPB4/RB4 RPB13/RB13 RB13 DVDD 9 20 REF_CLKO RPA4/RA4 VUSB C2 DVDD 10 19 0.1uF C35 VDD RPB11/D-/RB11 USB_D- TC1262-3.3VDB 0.1uF J2 +5V 11 18 SPI_SDO RPB5/RB5 RPB10/D+/RB10 USB_D+ USB MINI-B U3 DVDD C3 12 17 VBUS VCAP USB_D- 10uF 13 16 USB_D+ C10 CNB7 RPB7/RB7 VSS 1uF C4 14 GND_Pad 15 10uF I2C1_SCL SCL1/RB8 SDA1/RB9 I2C1_SDA GND 29

R18

0R

DVDD J3 1 MCLR CW 2 400R CNB2 DVDD R8 3 10K ANO/RAO 4 POT1 PGD/RB0 C6 CNB3 CCW 5 1uF PGC 6

CNB7

DS52061A PIC32 USB Digital Audio Accessory Board Information Sheet

Schematics (Sheets 2 of 2)

U4 1 32 MPWR MPWR RIN1/IN1+ IN1+

2 31 R24 VCOM LIN1/IN1- IN1- 5.6K C19 1uF C11 C12 2.2uF 0.1uF 3 30 LLINE_IN AVSS LIN2/IN2+ IN2+ C20 AVDD C13 R25 R26 0.1uF J4 4 29 5.6K 220pF 10M AVDD RIN2/IN2- IN2- C21 10uF C14 (DNP) 10uF 5 28 RIN3 MIN R27 6 27 5.6K C22 1uF CVDD I2C LOUT LLINE_OUT RLINE_IN 7 26 C23 RESET PDN ROUT RLINE_OUT R28 R29 CVDD 5.6K 220pF 10M R20 8 25 C24 10uF R19 CVDD CSN LIN4 LLINE_IN (DNP) 2.2K 2.2K 9 24 I2C1_SCL CCLK RIN4 RLINE_IN C15 1uF 10 23 I2C1_SDA CDTI MUTET

11 22 CVDD SPI_SDO SDTI HPL LHP1_OUT

12 21 MPWR MPWR R21 R22 SPI_SDI SDTO HPR RHP1_OUT R30 R33 100K (DNP) 100K (DNP) 13 20 2.2K 2.2K SPI_LRCK LRCK HVDD AVDD C25 1uF C27 1uF C16 J5 J6 IN2- IN1- 14 19 SPI_SCK BICK HVSS 0.1uF R23 10R C26 1uF C28 1uF 15 18 CVDD DVDD TESTO IN1+ IN2+ R32 R35 C17 R31 R34 16 CVDD TVDD MCKI REF_CLKO

0.1uF THERMAL 2.2K 2.2K (DNP) 17 (DNP) C18 33 0.1uF AK4645A

MPWR MPWR

C33 10uF R40 100R C29 47uF LLINE_OUT R36 6.8R J8 LHP1_OUT J7 R41 47K R37 6.8R RHP1_OUT R42 100R C32 C31 C30 47uF 0.22uF 0.22uF RLINE_OUT R39 R38 C34 R43 10R 10R 10uF 47K

DS52061A