background image

Page 26

Page 27

Figure 8-1:

headphones connected 

with mikromedia

Figure 8-2: 

Inserting 3.5mm

headphones jack

8. Audio Module

The mikromedia for dsPIC33 features MP3 codec audio controller 

VS1053

. This 

module enables audio reproduction by using stereo headphones connected to the 
system via a 

3.5mm

 connector CN2. All functions of this module are controlled by 

the microcontroller over Serial Peripheral Interface (

SPI

). 

Summary of Contents for mikromedia for dsPIC3

Page 1: ...user s guide to Compact development system rich with on board peripherals for all round multimedia development on dsPIC33FJ256GP710A mikrome ia board for dsPIC33 ...

Page 2: ... is to design and produce high quality electronic products and to constantly improve the performance thereof in order to better suit your needs The Microchip Atmel NXP and CYPRESS name logo and products names are trademarks of Microchip Atmel NXP and CYPRESS Inc in the U S A and other countries TO OUR VALUED CUSTOMERS Nebojsa Matic General Manager ...

Page 3: ...ce COM port 13 step 1 Choosing COM port 13 step 2 Choosing device family 14 step 3 Choosing device 14 step 4 Browse for hex file 15 step 5 Set Baud rate 16 step 6 Uploading hex file 16 Programing with mikroProg programmer 18 mikroProg Suite for PIC Software 19 Programing with ICD2 or ICD3 programmer 20 5 microSD Card Slot 22 6 Flash Memory 23 7 Touch Screen 24 8 Audio Module 26 9 USB UART connecti...

Page 4: ...6GP710A microcontroller The mikromedia for dsPIC33 features integrated modules such as stereo MP3 codec TFT 320x240 touch screen display accelerometer USBconnector MMC SD card slot and other It comes preprogrammed with UART bootloader but can also be programmed with external programmers such as mikroProg or ICD2 3 Mikromedia is compact and slim and perfectly fits in the palm of the hand which make...

Page 5: ...3 schematic CD with documentation and examples USB cable schematic Compact development system rich with on board peripherals for all round multimedia development on dsPIC33FJ256GP710A mikrome ia board for dsPIC33 user s guide to Compact development system rich with on board peripherals for all round multimedia development on dsPIC33FJ256GP710A mikrome ia board for dsPIC33 ...

Page 6: ...SB MINI B connector LI Polymer battery connector 3 5mm headphone connector Power supply regulator FTDI chip Serial Flash memmory RESET button VS1053 Stereo mp3 coder decoder dsPIC33FJ256GP710A microcontroller Accelerometer Crystal oscillator Power indicator LED microSD Card Slot ICD2 3 connector mikroProg connector ...

Page 7: ...ification power supply Over a USB cable 5V DC board dimensions 8 x 6cm 3 14 x 2 36 inch weight 50g 0 11 lbs power consumption 50mA in idle state when on board modules are off 03 06 07 11 08 04 05 09 10 17 16 12 13 14 15 ...

Page 8: ...ble 1 USB power supply You can provide power supply to the board using provided miniUSB connector On board voltage regulator will make sure to generate the appropriate voltage levels to each part of the board Power LED will indicate the presence of power supply ...

Page 9: ... VSENSE MOSI2 RG8 VSENSE VCC 3 3 dsPIC33FJ256GP710A PF R4 27 RA12 RA13 CN1 BAT CONN Charging Current approx 250mA VCC SYS E3 10uF E4 10uF LD29080DT33 REG1 VCC 3 3 GND VIN VOUT 1 3 2 Figure 2 1 Battery charger connection schematic Figure 2 2 Li polymer battery connected to mikromedia 2 Battery power supply You can also power the board using Li Polymer battery via on board battery connector On board...

Page 10: ...6KB of program memory 30 720 Bytes of RAM memory 85 I O pins Internal Oscillator 7 37 MHz 512kHz nanoWatt features Fast Wake Fast Control 2 UART 2 SPI 2 I2C etc Data Memory Bus Data Bus 40 60 MIPS 16 bit Core Optimal for C MCU DSP Resources 40 bit Accumulator DSP Engine 16 Core Registers 16x16 Multiply Shadow Set Instruction Data Motor Control PWM 32 bit CRC Audio DAC Control DAC 10 12 bit ADC Ana...

Page 11: ...Page 11 The microcontroller can be programmed in three ways 4 Programming the microcontroller 01 02 03 Over UART bootloader Using mikroProg external programmer Using ICD2 3 external programmer ...

Page 12: ... to MCU you need bootloader softwer ds30 Loader which can be downloaded from After software is downloaded uzip it to desired location and start ds30 Loader software http www mikroe com eng products view 586 mikrommb for dspic33 board Figure 4 1 ds30 Loader open source software Connect mikromedia for dsPIC33 with a PC before starting ds30 Loader software note ...

Page 13: ...OM port step 1 Choosing COM port Figure 4 3 Selecting COM port 01 From drop down list select USB COM port which is used for communication with a PC in this case COM5 In Device Manager you can see which COM port is assigned to mikromedia in this case COM5 note 01 ...

Page 14: ...rom drop down list select MCU chip 256GP710A step 2 Choosing device family step 3 Choosing device Figure 4 4 Selecting MCU family 01 From drop down list select MCU family dsPIC33FJ 01 Figure 4 5 Selecting MCU chip ...

Page 15: ...op up window for hex file choosing step 4 Browse for hex file 01 Click on Browse button and from pop up window figure 3 6 select hex file which will be uploaded to MCU memory 01 03 02 01 Select desired hex file Folder list Click on Open button 03 02 01 ...

Page 16: ...Figure 4 9 Write program 01 First RESET mikromedia and then within 5s click on Write button 01 Figure 4 8 Seting baud rate step 5 Set Baud rate 01 From drop down list set baud rate value to 256000 Check Write program check box 02 02 01 ...

Page 17: ... will get notice in ds30 Loader history window Progress bar indicates hex file upload process 01 01 If you accidently erase bootloader program from MCU memory it is posible to load it again with external programer mikromedia for dsPIC33 bootloader firmware hex file is located in Firmware subfolder Page 12 note ...

Page 18: ... via the CN6 connector Figure 4 12 mikroProg is a fast USB 2 0 programmer with mikroICD hardware In Circuit Debugger Smart engineering allows mikroProg to support PIC10 PIC12 PIC16 PIC18 dsPIC30 33 PIC24 and PIC32 devices in a single programmer It supports over 570 microcontrollers from Microchip Outstanding performance easy operation and elegant design are it s key features Figure 4 12 connecting...

Page 19: ... and PIC32 Software has intuitive interface and SingleClick programming technology Just by downloading the latest version of mikroProg Suite your programmer is ready to program new devices mikroProg Suite is updated regularly at least four times a year so your programmer will be more and more powerful with each new release Figure 4 13 Main Window of mikroProg Suite for PIC programming softwaer mik...

Page 20: ...ogrammer In order to enable the ICD2 and ICD3 programmers to be connected to the development system it is necessary to provide the appropriate connector such as the ICD2 CONNECTOR BOARD This connector should be first soldered on the CN5 connector Figure 4 15 Then you should plug in the ICD2 or ICD3 programmer into it as shown in figure 4 14 Figure 4 15 Connecting ICD2 or ICD3 programmer Figure 4 1...

Page 21: ...M1X6 MCLR VCC 3 3 RST PGC1 PGD1 RB7 RB6 MCLR PGC1 PGD1 CN6 M1X5 GND MCLR PGC1 PGD1 VCC 3 3 dsPIC33FJ256GP710A PF U1 RA12 RA13 RF7 RF6 E9 10uF R14 100 R15 100 Figure 4 16 ICD2 ICD3 mikroProg programmer connection schematic ...

Page 22: ...R11 10K E6 10uF MOSI2 RG8 SD CS SD CD SCK2 RG6 VCC 3 3 dsPIC33FJ256GP710A PF U1 MISO2 RG7 R5 27 R4 27 RA12 RA13 RF7 RF6 E9 10uF Figure 5 2 Inserting microSD card Figure 5 1 microSD card 5 microSD Card Slot Board contains microSD card slot for using microSD cards in your projects It enables you to store large ammounts of data externally thus saving microcontroller memory microSD cards use Serial Pe...

Page 23: ... Memory Figure 6 2 Flash memory module connection schematic Figure 6 1 Flash memory module Since multimedia applications are getting increasingly demanding it is necessary to provide additional memory space to be used for storing more data The flash memory module enables the microcontroller to use additional 8Mbit flash memory It is connected to the microcontroller via the Serial Peripheral Interf...

Page 24: ...ystem features a TFT 320x240 display covered with a resistive touch panel Together they form a functional unit called a touch screen It enables data to be entered and displayed at the same time The TFT display is capable of showing data in 262 000 diffe rent colors ...

Page 25: ...14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 LED A1 LED A2 LED A3 LED A4 IM0 IM1 IM2 IM3 RESET VSYNC HSYNC DOTCLK ENABLE DB17 DB16 DB15 DB14 DB13 DB12 DB11 DB10 DB9 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 SDO SDI RD WR SCL RS CS FMARK VCC IO VCC VCC I GND XR YD XL YU R23 BAT43 1K D2 LCD RST LCD CS R40 12 Q3 BC846 Q2 BC846 Q1 BC846 TFT1 MI0283QT2...

Page 26: ...Audio Module The mikromedia for dsPIC33 features MP3 codec audio controller VS1053 This module enables audio reproduction by using stereo headphones connected to the system via a 3 5mm connector CN2 All functions of this module are controlled by the microcontroller over Serial Peripheral Interface SPI ...

Page 27: ...10K R20 10K VCC 1 8 VCC 3 3 MP3 DCS BSYNC MP3 CS R19 10K GPIO VCC 3 3 MISO2 MP3 MISO2 RG7 MOSI2 RG8 SCK2 RG6 CN2 R22 27 VCC 3 3 R21 10K C13 1uF R28 10 R29 10 GBUF RIGHT LEFT R27 10 C14 47nF C4 100nF VCC 1 8 C9 100nF VCC 1 8 C10 100nF VCC 1 8 C11 100nF VCC 1 8 C23 100nF VCC 3 3 C24 100nF VCC 3 3 C26 100nF VCC 3 3 C12 100nF VCC 3 3 C27 100nF VCC 3 3 MIC5205 ADJ U3 GND EN VOUT ADJ VCC 3 3 VCC 1 8 C29...

Page 28: ...or dsPIC33 board over USB connection enabled through miniUSB connector which is positioned next to the battery connector Before connecting the board make sure that you have FTDI drivers installed on your computer 9 USB UART connection Figure 9 1 Connecting USB cable to programming connector ...

Page 29: ...USBDP USBDM FP2 FERRITE 1 2 3 4 5 C28 10nF VCC USB VCC 3 3 VCC USB R51 4K7 R52 10K C34 100nF C36 100nF VCC 3 3 LD3 R53 220 VCC 3 3 U4 VCCIO VCC USBDM USBDP NC RESET NC OSCI OSCO 3V3OUT AGND GND GND GND TEST TXD RXD RTS CTS DTR DSR DCD RI CBUS0 CBUS1 CBUS2 CBUS3 CBUS4 FT232RL Figure 9 2 USB UART connection schematic ...

Page 30: ...3 10K R12 10K SDA1 RG3 SCL1 RG2 VCC 3 3 dsPIC33FJ256GP710A PF U1 RA12 RA13 RF7 RF6 E9 10uF Figure 10 2 Accelerometer connection schematic 10 Accelerometer On board ADXL345 accelerometer is used to measure acceleration in three axis x y and z The accelerometer s function is defined by the user in the program loaded into the microcontroller Communication between the accelerometer and the microcontro...

Page 31: ...3 3 VCC 3 3 VCC 3 3 VCC 3 3 VREF 1 8 E11 10uF FERRITE FP3 VCC 1 8 C30 C31 X3 32 768kHz X1 8MHz dsPIC33FJ256GP710A PF U1 RG15 T D13 T D14 T D15 LCD RST RC2 LCD CS FLASH CS MISO2 RG7 R5 27 R4 27 RA12 RA13 RF7 RF6 22pF C1 C2 22pF 22pF 22pF E9 10uF C5 100nF C6 100nF C7 100nF C8 100nF E8 10uF Boardisequippedwith8Mhzcrystaloscillator X1 circuitthatprovides external clock to the microcontroller OSC pins ...

Page 32: ...F6 E9 10uF M1X26 RB1 RB2 RB3 RB4 RB5 RB8 RB9 RA12 RA13 RA14 RA15 RB6 RB7 SCK1 RF6 MISO1 RF7 MOSI1 RF8 RG15 RG0 RD10 SCK2 RG6 MISO2 RG7 MOSI2 RG8 VCC 3 3 L RST R RD0 RD1 RD2 RD3 RD4 RD5 RD8 RD9 RD14 RD15 RD6 RC2 RF12 RF13 RF0 RF1 RX1 RF2 TX1 RF3 SCL1 RG2 SDA1 RG3 M1X26 VCC 3 3 VCC SYS HDR1 12 Pads The access to the microcontroller pins on the development system is enabled via pads provided along th...

Page 33: ...D4 OC5 CN13 AN9 RA12 RD5 OC6 CN14 AN20 INT1 RA13 RD8 IC1 AN21 INT2 RA14 RD9 IC2 INT3 RA15 RD14 IC7 U1CTS CN20 INT4 RB6 RD15 IC8 U1RTS CN21 PGEC1 AN6 OCFA RB7 RD6 OC7 CN15 PGED1 AN7 RF6 RC2 AN17 T3CK T6CK SCK1 INT0 RF7 RF12 U2CTS SDI1 RF8 RF13 U2RTS SDO1 RG15 RF0 C1RX COFS RG0 RF1 C1TX C2RX RD10 RF2 U1RX IC3 RG6 RF3 U1TX SCK2 CN8 RG7 RG2 SCL1 SDI2 CN9 RG8 RG3 SDA1 SDO2 CN10 3 3V 3 3V 3 3V power sup...

Page 34: ...Page 34 80 90 mm 3 18 73 01 mm 2 87 69 85 mm 2 75 2 54 mm 0 10 4 45 mm 0 17 2 77 mm 0 11 60 56 mm 2 38 5 08 mm 0 20 36 55 mm 1 44 55 47 mm 2 18 50 27 mm 1 98 14 Dimensions ...

Page 35: ...tion contained in this manual at any time without prior notice if necessary HIGH RISK ACTIVITIES The products of MikroElektronika are not fault tolerant nor designed manufactured or intended for use or resale as on line control equipment in hazardous environments requiring fail safe performance such as in the operation of nuclear facilities aircraft navigation or communication systems air traffic ...

Page 36: ...www mikroe com If you are experiencing some problems with any of our products or just need additional information please place your ticket at www mikroe com en support If you have any questions comments or business proposals do not hesitate to contact us at office mikroe com ...

Reviews: