Home
mikromedia workStation User Manual
Contents
1. In order to start using mikroProg and program your E Bm T microcontroller you just have to follow two simple steps j PROGRAMMER 1 Install the necessary software Install USB drivers Page 20 Install mikroProg Suite for PIC9 software Page 21 2 Power up the board and you are ready to go Plug in the programmer USB cable Turn on Power switch LINK and POWER LED should light up Figure 5 1 mikroProg is well protected under metal casing Why so many LEDs Three LEDs indicate specific programmer operation Figure 5 1 Link LED lights up when USB link is established with your PC Active LED lights up when programmer is active Data LED lights up when data is being transferred between the programmer and PC software compiler or mikroProg Suite for PIC Programming with ICD2 ICD3 mikromedia workStation v7 is equipped with R 12 connector compatible with Microchip ICD29 and ICD3 external programmers You can either use the on board mikroProg programmer or external programming tools as long as you use only one of them at the same time Insert your ICD programmer cable into connector CN7 as shown in images QD and mikromedia page 18 workStation LINK ACTIVE DATA VCC 3 3V VCC 3 3V VCC 5V LD2 LD3 LD4 E L L x x x R9 R10 R11 2K2 4K7 6K8 LED DATA LED ACT LED USB VCC 3 3V VCC 3 3V VCC 5V 100nF VCC 3 3V R2 10K 1 C2 100nF mikro
2. TROP 04 It S good to 05 Power Supply Power 1 06 mikromedia mikromedia board 08 How to properly place into the socket 10 What is mikromedia 11 Which one to 12 BSP makes programming 14 Package 16 Installing BSP libraries 1 Programmer debugger On board 18 Installing programmer drivers 20 Programming lt 1 21 mikrolCD In Circuit 22 Connectivity Input Output 24 MIKFOBUS SOCKENS oco P ERES 26 Click Boards are plug 27 Communication UART Via 232 28 UART via 5 29 Other modules Navigation 5 30 Audio MOGUIC scs ica ict et PR e en 31 DS1820 Digital Temperature Sensor 32 LM35 Analog Temperature 33 ADC inputs ceris PEE d LAE ERROREM Ita 34 PICZO BUZZ CERE 35 Addit
3. Fou cnn manapi aurot or mc fles Henr you can mme e neni Figure 4 7 Package Manager window 2 219 CiMUaeza V PubliciDocuments Mikroeleketronika mikroc PRO for PICIJQ Packages mikromedia Work C MJaezaVPubliciDoecumentaMMikroelektzonika utikzoC PRO for PICS2MFackages uikrzomedia Work t Wsers Public Documents Mikroelektronika mikroc PRO for PICS2 Fackages mikromedie Work t Usere Public Documents Mikroelektronika mikroc PRO for PICS2 Packager mikromedia Work C Usersa Public Documents Mikrcelexrvronika uikroC FRO for PIC32 Packeges mikromedia Work t Usera Public Documenta Mikroelekeronika mikroc PRO for PICIJ2 Packages mikromecia Work t Usere Public Decumenta Mikroelektronike mikro for PICS2 Packacee mikroredia Work t Users fublic Documents Mikroelektronika mikroc FRO for 2 Work t Usere Public Documente Mikroelektronika mikroc PRO for PICS2 Packager mikromedia Work C Users Public Documents Mikzoelervronika uikzoC PRO for PICI2 Packeges nikromedia Work Ci Usera Public Decumenta Mikroelektronika mikroc PRO for PICIQ Packages mikromecia Work C WUsere Public Decumenta Mikroelektronike mikro for PIC32MPackages mikromedia Work C Users fublic Documents Mikroelektronika mikroc FRO for PICS 2XPackages uikromedia Work Cr Useere Public Documents Mikroelektronika mikroc PRO for PICS2 Packager mikromedia Work mivoMeda for
4. Show Hide breakpoints z Clears breakpoints of Jump to interrupt workStation mikrolCD commands Ay oe eI m Sy du Here is a short overview of which debugging commands are supported in mikroElektronika compilers You can see what each command does and what are their shortcuts when you are in debugging mode It will give you some general picture of what your debugger can do Shortcut F9 F6 Ctrl F2 F7 F8 Ctrl F8 F4 F5 Shift F4 Shift Ctrl F5 F2 Q0 fU O0 Description Starts Debugger Run Pause Debugger Stops Debugger Executes the current program line then halts If the executed program line calls another routine the debugger steps into the routine and halts after executing the first instruction within It Executes the current program line then halts If the executed program line calls another routine the debugger will not step into it The whole routine will be executed and the debugger halts at the first instruction following the call Executes all remaining program lines within the subroutine The debugger halts immediately upon exiting the subroutine Executes the program until reaching the cursor position Toggle breakpoints option sets new breakpoints or removes those already set at the current cursor position Shows Hides window with all breakpoints Delete selected breakpoints Opens window with available
5. Consumption back light is ON Back light current Max I C speed Max microSD SPI speed Max Flash memory SPI speed Max Audio codec SPI speed 16 MIPS 256 kB 16 kB 2 3 6V Yes No 56 2 mA 42mA 400 kHz 16 MHz 16 MHz 2 MHz T DEVICE T M TI II c 7 El a EI PET 5 Li mikromedia for 24 Architecture 16 bit CPU speed 70 MIPS Flash memory 512 kB RAM memory 52 kB Operating MCU Voltage 3 3 6V USB DEVICE Yes USB UART No Consumption back light is ON 57 mA Back light current 42mA Max speed 400 kHz Max microSD SPI speed 35 MHz Max Flash memory SPI speed 35 MHz Max Audio codec SPI speed 2 1 MHz mikromedia workStation For now we are giving you the choice to choose between 6 mikromedia boards Each of them Is specific in its own way The main idea here is to show you comparative key features one place which makes it easier for you to choose ie UO i USB UART USE DEVICE o J E ij 2 LJ 2 LI l 2 LI 7 EE I EI LI 26 EJ LJ EI 59 UR Ox 2 EELE ILLE TFT320X240 B48 8 g ES 545 4 mikromedia for dsPIC33 mikromedia for dsPIC33EP mikromedia for PIC32 Architecture 16 bit Architecture 16 bit Architecture 32 bit CPU speed 40 MIPS CPU
6. 22 Cr Users Public Decuments Mikroelextronika eikro FRO for PICO2M Packages mikromedia Work CiMUaers V PubliciDocuments Mikrcelekeronika mikroc PRO for PICI2 Packages mikromedia Work C MUJseza V PubliciDocuments Mikroelektronika uikroC PRO for PICS2MPackages mikromedia Work C Users fublic Documents Mikroelektronika mikroC PRO for PICS2MPackages uikromedia Work Total 69 files copied Updating files P32MX46 07 2L m k HLKs update successfull Total 1 MIXs updated Finished successfully Date Time 6 21 2013 3 18 06 m 7 Package name F mdromedu Workstation mpi fes you want to make a ibranes You can manage source or md fles Mere you can Figure 4 8 Installation is complete page 17 CtNUseza PublicVDocuments Mikrcelexrvronika uikroC FRO for PICO2M Packeges mikromedia Work iL x On board programmer What is mikroProg c fo p mikroProg is afast USB 2 0 programmer with mikroICD hardware eat e In Circuit Debugger Smart engineering allows mikroProg to QUEE support all 10 12 16 18 PIC24 dsPIC30 33 a ENS PIC32 MCU families in a single programmer It supports over 570 gt microcontrollers from Microchip Outstanding performance and a uh easy operation are among it s top features USB 20 programmer 5 debugger How do start
7. PRO for PIC mikroPASCAL PRO for PIC COMPILER COMPILER COMPILER mimt PRO Tar PRO tor PIC RZ mikrot PRO tot 8 PRO ter PICS gait PRA ioe deh ie er tor P4 34 mikra PRO dao page 38 dsPIC and PIC32 applications Projects Once you have chosen your compiler and since you already got the board you are ready to start writing your first projects We have equipped our compilers with dozens of examples that demonstrate the use of each and every feature of the mikromedia workStation v7 board and all of our accessory boards as well This makes an excellent starting point for your future projects Just load the example read well commented code and see how it works on hardware Browse through the compiler Examples path to find the following folder Development Systems Community If you want to find answers to your questions on many interesting topics we invite you to visit our forum at http www mikroe com forum and browse through more than 150 thousand posts You are likely to find just the right information for you On the other hand if you want to download free projects and libraries or share your own code please visit the Libstock website With user profiles you can get to know other programmers and subscribe to receive notifications on their code http www libstock com Support We all know
8. You must accept he agreemeni iz inzial miroDekron a Package Manager 32 continue 1 1 nat accegt the beme af License Agreement Chere natal Locale Chessos thun fider art 5 real miroklektrorsks mi natal mirobona Package Manager in fhe firana fodder To natal r a folder dek duct another folder Olek ngt to 41 11 998 757 108 Completing the mikroElektronika Package Manager Selup Wizard eres Manager had been an your 2 Finch tn dase thes Step 6 Finish Installation mikromedia workStation Installing BSP libraries 1 Download libraries from Libstock website Libstock is a community website created by LIBSTOCK mikroElektronika where users can share download projects libraries and examples for free In order to install BSP libraries you need the appropriate MPKG file which can be downloaded from following address on LibStock website www libstock com projects view 368 mikromedia workstation v 7 bsp c Open package with Package manager After downloading run the package file MPKG and Package Manager window will appear Figure 4 7 Gl Navigation section shows the contents of the package libraries help files and examples Information section shows the list of supported microcontrollers
9. aut 3 22 5 e j n i El ni 7 simikromedia ec i ee C reir Ls 1 hp 39i i Ev aa N teca for AR ae B z 2 E UU Na Lu mikromedia for dsPIC33 mikromedia for dsPIC33EP for PIC32 mikromedia workStation 15 He D D Package Manager What is the Package manager Package manager is a free software which enables you to integrate your libraries into all MikroElektronika Compilers for PIC dsPIC PIC24 and PIC32 Package manager can also make a redistributive archive with goal to be installed on other computers Packages can contain other valuable information such as Library files Help files and Examples To begin first locate the installation archive on the Product DVD PRODUCT DVD DRIVERS f COMPILERS EXAMPLES SCHEMATICS MANUALS DVD download eng software compilers package manager package manager v240 zip After downloading extract the package and double click the executable setup file to start installation B ES 9 0168 aeo CIP32MX120F0320 328 ooo F1 1 n 2 5 0 Ust Otons 1 5D P32MXSGar 1 281 Append trom cites 168 P32MXS64F 1281 Paste LP32MX220 03 3 32 575 25 from dipboarg P32MX22060335 P32MXxS7SF ase Ref
10. in case of wrong usage Inthefarupperrightsectionofthe board there is a RESET button which can be used to manually reset the microcontroller There is an additional button at the top of the mikromedia board LED Light Emitting Diode is a highly T jl K efficient electronic light source When oF aid d connecting ji it is necessary to place current SMD resistor a limitirig current limiting resistor in B through the LED series so that LEDs are provided with the current value specified by the manufacturer The current varies from 2 to 20mA depending on the type of the LED and the manufacturer The mikromedia workStation v7 board uses low current LEDs with typical current consumption of 2 or Board contains 40 LEDs which can be used for visual indication of the logic state on PORT pins An active LED indicates that a logic high 1 is present on the pin In order to enable GROUP LEDs it is necessary to enable the corresponding DIP switch on SW3 Figure 6 6 z O uJ J Figure 6 6 SW3 1 through SW3 5 switches are used to enable GROUP LEDs gt fm gt Easier connectivity and simple configuration are imperative in modern electronic devices Success of the USB standard comes from it s simplicity of usage and high and reliable data transfer rates As we in mikroElektronika see i
11. interrupts doesn t work in mikrolCD mode page 23 One of the most distinctive features of mikromedia workStation v7 are it s Input Output PORT groups They add so much to the connectivity potential of the board Everything is grouped together PORT headers PORT buttons and PORT LEDs are next to each other and grouped together It makes development easier and the entire mikromedia workStation v7 cleaner and well organized We have also provided an additional PORT headers on the left side of the board so you can access any pin you want from that side of the board too Tri state pull up down DIP switches Tri state DIP switches like SW1 on Figure 6 3 are used to enable 4K7 pull up or pull down resistor on any desired port pin Each of these switches has three states 1 middle position disables both pull up and pull down See of of oe z ii Cli feature from the PORT Figure 6 2 2 UP position connects the resistor in pull up state to Tri state DIP the selected pin switch on GROUPO 3 down position connects the resistor in pull down State to the selected PORT pin DATA BUS Button press level tri state DIP switch is used to determine ES which logic level will be applied to port pins when buttons pressed VCC 3 3V GO_LEVEL up down DIP switch buttons and LEDs all in one place GO_LED Figure 6 3 Schem
12. mikromedia board is a compact development system with lots of on board peripherals which allow development of devices with multimedia content The central part of the system is a PIC18FJ PIC24 dsPIC33 or PIC32 microcontroller depending on mikromedia board The mikromedia features integrated modules such as Audio module with stereo MP3 codec and 3 5mm audio connector for headphones resistive TFT 320x240 touch screen display with 262 144 Kk is E E et IJ l LL Br DL r m 1 a 184 different colors battery charger accelerometer microSD card slot and 8 Mbit flash memory mikromedia board also contains a MINI B USB connector two 1x26 connection pads LI Polymer battery connector and other It comes pre programmed with bootloader but can also be programmed with standalone programmers such as mikroProg or ICD2 3 mikromedia is compact and slim and perfectly fits in the palm of your hand which makes it a convenient platform for mobile devices t can be powered through a o 9614 wr RG6 SCK ET wenn Lo EL R66 soo 8 5 ya awT GNDc w ww E e 258 Figure 4 6 Key components of mikromedia for PIC32 board mikromedia workStation Doard 0 po USB MINI B cable or battery supply When you put any of them i
13. order to use USB UART module on mikromedia workStation v7 board you must first install FTDI drivers on your computer Drivers can be found on Product DVD PRODUCT DVD COMPILERS EXAMPLES SCHEMATICS DRIVERS MANUALS DVD download eng software development tools universal ftdi vcp_drivers zip t USB UART communication is being done through 95 le proe a FT232RL controller USB connector CN21 i and microcontroller UART module To establish this connection you must connect RX and TX lines to the A appropriate pins of the mikromedia board This connection is done using DIP switches SW4 6 SW4 7 VCC 3 3V VCC 5V 3 3 VCC 3 3V CN21 R19 R20 2K2 l4K7 vec LO l 9 6 28 2 27 a 3 6 LD7 LD8 Oo LLI 4 25 L L 5 ia 2 d R21 2 6 EM 23 RX LED1 4 7 e 7 0 TX LED1 NO 8 FT232RL 21 9 GND 20 USB DE 10 19 e 11 18 12 MM 17 V VCC V VCC 5V 13 161 FTDI1 D_N 14 5 FTDI1 D_P L CO 2 FT232RL C13 uk 100 100nF 100 100nF page 29 Oo Whenworking with multimedia applications it is far more intuitive to use a single joystick than several different push buttons that are more far apart This is more natural for users and they can browse through on screen menus or even play games much easier mikromedia workStation v7 features navigation switch with five different positio
14. 0 pA current drain As it draws only 60 pA from its supply it The LM35 is a low cost precision integrated circuit temperature sensor whose output voltage 15 linearly proportional to the Celsius Centigrade temperature The LM35 thus has an advantage over linear temperature sensors calibrated in Kelvin as the user is not required to subtract a large constant voltage from its output to t Enabling LM35 Sensor Figure 13 1 LM35 not connected Figure 13 2 LM35 placed in socket Figure 13 3 LM35 connected to GO 3 Figure 13 4 LM35 connected to 0 0 mikromedia workStation v7 enables you to get analog readings from the LM35 sensor using 60 0 60 3 microcontroller pins The selection of either of those two lines is done using J4 jumper When placing the sensor in the socket make sure that half circle on the board s silkscreen markings matches the rounded part of the LM35 sensor If you accidentally connect the sensor the other way it can be permanently damaged and you might need to replace it with another one During the sensor readings make sure that no other device is using the selected analog line as that may interfere with the readings mikromedia workStation other modules has very low self heating less than 0 1 in still air mikromedia workStation v7 provides a separate socket TS2 for the LM35 sensor in TO 92 plastic packaging Readings are done with microc
15. POWER VCC 5V VCC USB EE 1 GND 5 Vout VCC 3 3V VCC 5V Vin Z T MC33269DT3 3 C20 E5 ON OFF 100nF 10uF R28 2K2 E T ser M 3 3V VOLTAGE REGULATOR alles e VCC USB 1N4007 D3 1N4007 D4 D5 220uF 35V LESR MBRS140T3 E8 220uF asy 1N4007 LESR R31 5V SWITCHING POWER SUPPLY 1K Figure 3 2 Power supply unit schematic mikromedia page 6 workStation Power supply via DC connector or screw terminals 7V to 23V AC or 9V 32V DC Board power supply creates stable 3 3V necessary for or via USB cable 5V DC operation of the microcontroller and all on board modules Power capacity up to 500mA with USB and to 600mA with external power supply power supply How to power the board 1 With USB cable Set J1 jumper to USB position To power the board with USB cable place jumper J1 in USB position You can then plug in the USB cable as shown on images and and turn the power switch ON c Using adapter Set J1 jumper to EXT position To power the board via adapter connector place jumper 1 in EXT position You can then plug in the adapter cable as shown on images and and turn the power switch ON 3 With laboratory power supply Set J1 jumper to EXT position To power the board using screw terminals place jumper J1 in EXT position You can then screw on the cables in the screw terminals as shown on images and 3 and tu
16. SABIGPS SH HP11C14D1886253 2 H8156 L8885 L10 y WHERE gum ENIM 5919100 M mikroElektronika portfolio of over 200 accessory boards is now enriched by with literally zero hardware configuration Just plug and play mikromedia an additional set of mikroBUS compatible Click Boards Almost each month workStation v7 supports only 3 3V Click Boards Visit the Click boards several new Click boards are released It is our intention to provide the web page for the complete list of available boards community with as much of these boards as possible so you will be able to expand your mikromedia workStation v7 board with additional functionality DODBSB55075DD L NC FCC iD T9JRN41 1 n Lu T az NO ze bid L ME ME MEL NC aora jac BlueToothc lick C D gt 2 lt J T J LU N The UART universal asynchronous receiver transmitter is one of the most common ways of exchanging data between the MCU and peripheral components It is a Serial protocol with separate transmit and receive lines and can be used for full duplex communication Both sides must be initialized with the same baud rate otherwise the data will not be received correctly RS 232 serial communication is performed through a 9 pin SUB D connector and the microcontroller UART module In order to enable this co
17. appropriate controller is automatically marked Install package button to install package Uninstall package button to uninstall package 3 Install packages All you need to do is to click on the Install package button and the opened package will start to install in previously chosen compiler The installation process is complete when the Finished successfully massage appears in Information section Figure 4 8 Open the appropriate Mikroelektronika Compiler and in the Library Manager section at the end of the list you will see unmarked mikromedia Workstation library For more information see the Help within each package mikromedia workStation CP33HXIIO0FO0158 PA2HXA4OFSIZH P32MXTSSESID Ust Options JEXJMXITOFOISD FIXHEABON2544 m PI2HXIIOFUG2B JO PXSHDAGORSIMD apy te dipboard 2MXI2OFO3ID an Pxarxisorosan 7 rxn 7 Append frons free clipboard fist Device MOL Rebuild dl MCLs Fabuild using HELE miromedu weristabon pe72 Balen nime Select Gevices name begins with dapi rama eagle diranta bogn with Selection dges having Deselect devices having regatems 77 Select By library Deselect by library suec all all zx device checked Hes piu mani 8 maks
18. ase read them first Driver Name Status mikroElektronika USB1 Ready to use Step 4 Finish installation You will be informed if the drivers are installed correctly Click on Finish button to end installation process mikromedia workStation Programming software mikroProg Suite for PIC On board mikroProg programmer requires special programming software called mikroProg Suite for PIC This software is used for programming all of Microchip9 microcontroller families including 10 12 16 PIC18 dsPIC30 33 PIC24 and PIC32 Software has intuitive interface and SingleClick programming technology To begin first locate the installation archive on the Product DVD os sad DVD download eng software development tools universal mikroprog mikroprog_suite_for_pic_v225 zip After downloading extract the package and double click the executable setup file to start installation CONFIG mikromedia ork Station e Tel 3 ES fe PLL Input Divider 12 Divider Watchdog DC A HEX File Options Windowed Timer Enable WDT Enabled M Watchdog Timer Standard WDT Selected T v tod Save chdog Timer Postscaler 1 10485 i a ing and Monitor Selection FSCM and Clock Switching are disabled iv Reload HEX Peripheral Bus c lock Diviso SYSCLK Ja
19. atic of the single 1 0 GROUPO page 24 mikromedia workStation With enhanced connectivity as one of the key features of mikromedia workStation v7 we have provided four connection headers for each PORT 1 0 PORT group contains two male IDC10 header like CN3 and CN4 Figure 6 3 and one 1x10 row of connection pads like CN1 Figure 6 3 There is one more IDC10 header available on the left side of the board next to breadboard IDC10 can be used to connect accessory boards with IDC10 female sockets p apt vv Figure 6 4 IDC10 male headers enable easy connection with mikroElektronika accessory boards work The logic state of all microcontroller digital inputs may be changed using BUTTON PRESS LEVEL Figure 6 5 Button press level DIP pun switch tri state Mie d switch SW2 is available for selecting which logic state will be applied to corresponding MCU pin when button is pressed for each 1 0 port separately If you for example place SW2 1 in VCC position then pressing of any push button in GROUPO 1 0 group will apply logic one to the appropriate microcontroller pin The same goes for GND If DIP switch is in the middle position neither of two logic states will be applied to the appropriate microcontroller pin You can disable pin protection 220ohm resistors by placing jumpers J5 and J6 which will connect your push buttons directly to VCC or GND Be aware that doing so you may accidentally damage MCU
20. d 3 e CODE Prima HD Cle output ut signal al active on the OSCO Dn MEC 2 Load Save DATA y Oscillator Configuration Disabled ae Internal External Switch Over Enabled Hem h CODE tar E 4 Program Memory Size 512 kB Device Status Idle Type B 8007 Address Oh Options Progress 0 E E EIE NU DEVELOPMENT TOOLS 1 COMPILERS BOOKS fo w Installation wizard 6 simple steps Kim Suite for FIC 2 15 Welcome to the mikroProg Suite for PIC v2 25 Setup Wizard This eiaa sane Sei a ihe af iria fat cose nl other Stu Thes malo it peel In update reievant pishem fles without haing En reboot your kimga Chick hiat 52 Cbr rud iy Suite fer FIC v2 25 Setup Li Dee Dem Step 3 3 Install for All users or current user hie m rsirog Sut for PIE v2 25 i berig Create Piren irdena Menu Programe mide Step 5 Installation in progress Suite for FIC v2 25 Satu License MBemeni revere Prae licence Seren Before rm Lar leg ote fer PIC v2 25 Press Page Dern in ser the rest of fw agreement License tabrmernt and umibed Warranty TANT READ CAREFULLY tenent etn
21. ed with high quality components on board programmer and debugger and it s ready to be your strong ally in development We hope you will enjoy it as much as we do mikromedia workStation v7 Development Team De eb JL Jgg ge er on board T on board For easier connections Four mikroBUS sockets Powerful on board mikroProg programmer and In Circuit debugger can program and debug all supported mikromedias Once you use it you won t be able to imagine a development without it Not two not three but four different mikroBUS host sockets enable you to do do whatever you imagine Simply snap in your Click board and add a whole new functionality IN CIRCUIT DEBUGGER mikromedia workStation its good to know System Specifications 7 23V or 9 32V DC 5V or via USB cable 5V DC power consumption 135 mA all modules CONSUMPTION i disconnected Package contains L d E 1 ERS BOOKS 10015 j COMPILERS DE Damage resistant protective box juo 1 61918 mikromedia workStation a Li sjm f LI OR Tum mikromedia workStation v7 board for PIC Q Board schematic board dimensions 266 x 220 mm 10 47 x 8 66 inch USB cable 206 e Da eer aei krog US T lt 1 Le 70 mikroProg Suite and mikrolCD man
22. ed successfully 18 Jun 2012 12 56 31 17 1 Insert Peripherals Freeze A0060000 40000010 50000020 40000030 0000040 0000050 0000060 0000070 0000080 0000090 F mikroMedia Workstation for PIC_BSP_v100 mikroMedia for PIC32 LED G mikroC PRO for PIC32 v 2 4 0 F mikroMedia Workstation for PIC_BSP_v100 mikroMedia for PIC32 LED Blinking LED Blinking mcp32 NOT REGISTERED Sea File Edit View Project Build Run Tools De MBs ea iD 9 7 4 gt Af i Debuglayout ld ki im a Um 2 gt Start Page 3 1 LED Blinking c E mikroMedia Workstation PIC32 c 2 mikroMedia Workstation PIC32 h 52 Watch Values Ea include mikroMedia Workstation 3 2 E Eb Eh while 1 dc X o 5 Add char i val 0 A EN Select variable from list of i 1 Y Bvoid main Pe Search for variable b bly name Workstation Init po E l 0x01 earch for variable by assembly name T GROUPO SET OUTPUJ BIT MAS ae Advanced Address Figure 5 4 mikroC PRO for PIC32 compiler in debugging view with SFR registers in Watch Window mikromedia kStation IN CIRCUIT DEBUGGER 15008 Icon Start Debugger Run Pause Debugger Stop Debugger gt 0 Step Into Pu Step Over Step Out gt Run To Cursor m Toggle Breakpoint 8
23. er is 21021024 This means that supported voltage range for example from 0 3 3V can be divided into 1024 discrete steps of about 3 22mV mikromedia workStation v7 board provides an interface in form of two potentiometers for simulating analog input voltages that can be routed to any of the 7 supported analog input pins of mikromedia board VCC 3 3 m DATA BUS Figure 14 2 Schematic of ADC input page 34 ADC inputs Enabling ADC inputs h AOE Bits HAIRS ADC INPUT N Figure 14 1 use 2 and 7 jumpers to connect analog input lines with potentiometers P1 and P2 In order to connect the output of the potentiometer P1 to 60 0 60 1 0 2 GO 3 60 4 analog mikromedia inputs you have to place the jumper J2 in the desired position If you want to connect potentiometer P2 to AO or 1 analog mikromedia inputs place jumper 7 the desired position By moving the potentiometer knob you create voltages in range from GND to VCC mikromedia workStation Piezo Buzzer Piezo electricity is the charge which accumulates in certain solid materials in response to mechanical pressure but also providing the charge to the piezo electric material causes it to physically deform One of the most widely used applications of piezo electricity is the production of sound generators called piezo buzzers Piezo buzzer is an electric component that comes in different shapes and sizes which can be
24. for PICI8FJ dsPIC33 PIC24 and PIC32 OIMIN LN LN ILO ___ Figure 4 2 mikromedia board socket schematic LOUT mikromedia workStation sd ipe UO ap O How to properly place your mikromedia board into the socket Before you plug the mikromedia board into the socket make sure that the power supply is turned off Images below show how to correctly plug the board First make sure that mikromedia board orientation matches the silkscreen outline on the Figure 4 3 On board mikromedia socket has silkscreen markings which will help you to correctly orient the mikromedia board before inserting T mikromedia workStation v7 board socket Place the mikromedia board over the socket so that each male header is properly aligned with the female socket as shown in Figure 4 4 Then put the mikromedia board slowly down until all the pins match the 4 4 Place the mikromedia board in the socket so that pins are aligned properly i k PEL sx pe socket make sure you don t push the screen Check again if everything is placed correctly and press the mikromedia board until it is completely plugged into the socket as shown in Figure 4 5 Now you can turn the power supply on Figure 4 5 Properly placed mikromedia board 3 Wx So E CR CON S SOO d mikromedia workStation What is mikromedia The
25. how important it is that we can rely on someone in moments when we are stuck with our projects facing a deadline or when we just want to ask a simple basic question that s pulling us back for a while We do understand how important this is to people and therefore our Support Department is one of the pillars upon which our company is based MikroElektronika offers Free Tech Support to the end of product lifetime so if something goes wrong we are ready and willing to help http www mikroe com esupport mikromedia workStation DISCLAIMER All the products owned by MikroElektronika are protected by copyright law and international copyright treaty Therefore this manual is to be treated as any other copyright material No part of this manual including product and software described herein must not be reproduced stored in a retrieval system translated or transmitted in any form or by any means without the prior written permission of MikroElektronika The manual PDF edition can be printed for private or local use but not for distribution Any modification of this manual is prohibited MikroElektronika provides this manual as is without warranty of any kind either expressed or implied including but not limited to the implied warranties or conditions of merchantability or fitness for a particular purpose MikroElektronika shall assume no responsibility or liability for any errors omissions and inaccuracies that may a
26. in your final design work R24 22K R25 22K G2 2 MISO G2 3 MOSI VCC 3 3V SHTDWN 2 1 BYPASS GND IN Vdd IN VET 2 LM4864 R26 _ C18 E9 10uF 100nF 100uF 20V VCC 3 3V U4 SHTDWN 02 BYPASS GND 1 E4 19 10 10uF 100nF 100uF 20V Vdd IN Vol LM4864 R27 Figure 11 1 Audio module connection schematic SP1 V b other modules H 051820 is a digital temperature sensor that uses 1 wire interface for it s operation It is capable of measuring temperatures within the range of 55 to 128 C and provides 0 5 C accuracy for temperatures within the range of 10 to 85 C It requires 3V to 5 5V power supply for stable operation It takes maximum 5 Ra TS T TSi aiam oc gt fe Soon 4 Goo e E oi a Ji e ok oi E Dosko Dsis2o DSI82e0 051820 7 fel COU Ly J3 Figure 12 1 DS1820 not connected Figure 12 2 DS1820 placed in socket Figure 12 3 DS1820 connected to G1 7 pin Figure 12 4 DS1820 connected to G2 0 pin mikromedia workStation v7 enables you to establish 1 wire communication between DS1820 and the microcontroller over G1 7 or G2 0 pins The selection of either of those two lines is done using J3 jumper When placing the sensor in the socket make sure that half circle on the board s silkscreen
27. ional 2 22222 2 36 Breadboard area 3 What s Next Whats j 8 page 3 2 U ie lt 42 aan ai m 1 i Wicca id e Es mee Fa Sd B MET the brain mikromedia with WIres Supports all Microchip mikromedias It s like the body fo Perfect for education This is a perfect tool for education Since board supports mikromedia boards for PIC18 dsPIC 24 and PIC32 you can easily Switch to one you need in your development Workstation helps you to connect your mikromedia board to the rest of the world Button LED and four headers for each pin are the arsenal you need mikromedia becomes the brain of your device page 4 ey V o jap Introduction After several years of successful production of mikromedia boards we have decided to delight users of our products and make a new development system that expands functionality of all mikromedia boards with Microchip microcontrollers The idea was to make a development system with as many peripherals as possible to cover multimedia modules On the other hand we wanted to fit in dimensions of other development systems with 2 layer PCB We present you the board which is powerful well organiz
28. lk you through updating the drivers Step 1 Start Installation Welcome screen of the installation Just click on Next button to proceed mikroElektronika USB18F Device x64 Vista Platform Installer Installing the drivers Please wait while the drivers install This may take some time to complete Step 3 Installing drivers Drivers are installed automatically in a matter of seconds mikroElektronika USB18F Device x64 Vista Platform Installer To continue accept the following license agreement To read the entire agreement use the scroll bar or press the Page Down key mikroElektronika Associates License Statement and Limited Warranty IMPORTANT READ CAREFULLY This license statement and limited warranty constitute a legal agreement License Agreement between you either as an individual or a single entity and mikroElektronika mikroElektronika Associates for software product Software identified above including any software media and accompanying ondine or printed documentation Step 2 Accept EULA Carefully read End User License Agreement If you agree with it click Next to proceed mikroElektronika 05818 Device x64 Vista Platform Installer Congratulations You have finished drivers Instalation The drivers were successfully installed on this computer You can now connect your device to this computer If your device came with instructions ple
29. markings matches the rounded part of the DS1820 sensor If you accidentally connect the sensor the other way it may be permanently damaged Make sure to disconnect other peripherals except those in 1 wire network LEDs and additional pull up or pull down resistors from the interface lines in order not to interfere with signal data integrity page 32 of 750ms for the DS1820 to calculate temperature with 9 bit resolution 1 wire serial communication enables data to be transferred over a single communication line while the process itself is under the control of the master microcontroller The advantage of such communication is that only one microcontroller pin is used Multiple TOP VIEW VCC 3 3V sensors can be connected on the same line All slave devices by default have a unique ID code which enables the master device to easily identify all devices sharing the same interface Board provides a separate socket TS1 for the DS1820 Communication line with the microcontroller is selected with a J3 jumper DATA BUS Figure 12 5 DS1820 connected to G2 0 pin mikromedia workStation LM35 Analog Temperature Sensor obtain convenient Centigrade scaling The LM35 does not require any external calibration or trimming to provide typical accuracies of 7 at room temperature and 4 C over a full 55 to 150 C temperature range It has a linear 10 0 mV C scale factor and less than 6
30. media workStation mikroProg USB 2 0 programmer debugger IN CIRCUIT PROGRAMMER COMPILERS SUPPORTED Figure 5 2 mikroProg block schematic A VCC USB USBDN CON USBDP CON C5 100nF USB MCLR HEEN VCC 3 3V MCU PGC DATA BUS page 19 Installing programmer drivers On board mikroProg requires drivers in order to work Drivers are located on the Product DVD that you received with the mikromedia workStation v7 package DVD download eng software development tools universal mikroprog mikroprog_for_pic_ drivers_v200 zip When you locate the drivers please extract files from the ZIP archive Folder with extracted files contains sub folders with drivers for different operating systems Depending on which operating system you use choose adequate folder and open it Vista 32bit Win Vista 64 bit Win Win 98 2008 32 bit 2008 64 bit Windows 7 32 bit Windows 7 64 bit Adobe Win 2000 XP Win XP 2003 installing usb dri 2003 32 bit 64 bit vers pdf In the opened folder you should be able to locate the driver setup file Double click on setup file to begin installation of the programmer drivers USBISPR G Vista 64 page 20 mikroElektronika USB18F Device x64 Vista Platform Installer Welcome to the USB18F Device x64 Vista Platform Installer This wizard will wa
31. mikromedia workStation for dsPIC33 PIC24 and PIC32 ATS NN i wus axon 6 PIGBE and MCI connectivity Four connectors for each port Amazing Connectivity mikro BUS Easy add extra boards mikroBUS sockets Fast USB 2 0 programmer and In Circuit Debugger mikromedia 6 mikromedia boards supported PIC18F dsPIC33 PIC24 and Many on board modules Multimedia peripherals MikroElektronika DEVELOPMENT TOOLS COMPILERS BOOKS To our valued customers mikromedia has developed into a well known brand Not only that we set new standards in design and selection of on board modules but we also created an entire ecosystem of users who use our visual tools and compilers to develop TFT applications faster and easier than ever before The ease of use is our top priority This is why we wanted to take things to the next level mikromedia workStation v7 is unlike anything you have seen before With custom pin markings it will revolutionize the way people look at different architectures Switching from one mikromedia to another while using virtually the same code is a very powerful concept We are confident this will be especially interesting in education and among developers who need flexibility and rapid prototyping Nebojsa Matic Owner and General Manager of mikroElektronika Introduction
32. mmunication it is necessary to establish a connection between RX and TX lines on SUB D connector and the same pins on In order to enable RS 232 the target microcontroller using DIP switches communication you must push Since RS 232 communication voltage levels SW3 6 G4 4 and SW3 7 G4 5 are different than microcontroller logic to ON position This connects the levels it is necessary to use a RS 1 1 RX and TX lines to appropriate 232 Transceiver circuit such as mikromedia board UART module MAX3232 as shown on Figure 8 1 VCC 3 3V VCC 3 3V DATA BUS 100nF C10 100nF R2OUT SW3 Bn MAX3232 RS 232 CONNECTOR R22 C12 100nF 100nF VCC 3 3V Figure 8 1 UART via RS 232 L connection schematic ms mikromedia page 28 workStation JOYSTICK In order to enable USB UART communication you must push SW4 6 G4 4 SW4 7 64 5 to ON position This connects the RX and TX lines to appropriate mikromedia board UART module DATA BUS mikromedia workStation Figure 9 1 UART via USB connection schematic cd communication Modern PC computers laptops and notebooks are no longer equipped with RS 232 connectors and UART controllers They are nowadays replaced with USB connectors and USB controllers Still certain technology enables UART communication to be done via USB connection FT232RL from FTDI9 convert UART signals to the appropriate USB standard In
33. n mikromedia workStation v7 system number of modules and functionality significantly increase Key components are marked as in the example of mikromedia for PIC32 Figure 4 6 and are similar for other mikromedia The most important differences between mikromedia boards are shown on page 12 and 13 A detailed description can be found in appropriate manuel provided with the mikromedia board Connection Pads TFT 320x240 display USB MINI B connector CHARGE indication LED Li Polymer battery connector 3 5mm headphone connector Power supply regulator Serial Flash memory VS1053 Stereo mp3 coder decoder RESET button microcontroller PIC3 2MX460F512L Accelerometer Crystal oscillator Power indication LED microSD Card Slot ICD2 3 connector mikroProg connector page 11 ie nem lt Which to use USB DEVICE mikromedia for PIC18F Architecture CPU speed Flash memory RAM memory Operating MCU Voltage USB DEVICE USB UART Consumption back light is ON Back light current Max 2 speed Max microSD SPI speed Max Flash memory SPI speed Max Audio codec SPI speed page 12 8 bit 12 MIPS 128 kB 3 904 Bytes 2 3 60V Yes No 51 7 mA 42mA 400 kHz 12 MHz 12 MHz 3 MHz USE DEVICE mikromedia for PIC24 Architecture CPU speed Flash memory RAM memory Operating MCU Voltage USB DEVICE USB UART
34. ne 3 3V VCC 3 3V power line RX UART Receive line SCK SPI Clock line GND Reference Ground TX UART Transmit line mikro mikro BUS BUS 20 1 m AN PWM PWM 1 5 m AN PWM I S a Nez est INT ca Naat WT 8 zc INT 8 yn S RE i5 Nero 5 35 Des Raa Nr 65 X 8i eis 7 N22 ws eis NS Hans i777 NS 3d 50 c7 Emso 7 m MOSI SDA m m MOSI SDA m m MOSI SDA m VCC 3 3V m 3 3V 5V m VCC 5V VCC 3 3V 3 3V 5V m VCC 5V VCC 3 3V 3 3V 5V m VCC 5V m GND GND m GND GND m GND GND Figure 7 1 Connection schematic of on board mikroBUS host sockets sna VIVO mikroBUS host connector Each mikroBUS host connector consists of two 1x8 female headers containing pins that are most likely to be used in the target accessory board There are three groups of communication pins SPI UART and I C communication There are also single pins for PWM Interrupt Analog input Reset and Chip Select Pinout contains two power groups 5V and GND on one header and 3 3V and GND on the other 1x8 header mikromedia workStation mmm 6986F0023100 OVNW OBNGELL VINOBMFC3HN ch ene ON f E EL im E A gt ex Es 19 2 9690 ia kastleeo LIGRA
35. ns Up Down Left Right and Push of those acts as a button and is connected to one of the following microcontroller pins GO 6 61 0 G0 5 G0 7 G4 1 respectively After pressing the navigation switch in desired direction associated microcontroller pins are connected to GND which can be detected in user software To enable LEFT UP RIGHT DOWN PUSH ports you must turn on DIP switches SW4 1 SW4 5 Figure 10 2 Navigation switch is an intuitive solution for browsing through on screen menus Figure 10 1 Navigation switch connection schematic work It s hard to imagine modern multimedia devices without high quality audio reproduction modules Sound and music are almost important as graphical user interface mikromedia workStation v7 contains two audio power amplifiers capable of delivering 675mW of continuous average power into 80 load Amplifiers are connected each with one speaker thus with mikromedia stereo V 1053 audio codec making a stereo audio system Speakers has maximum power of 0 20W with 81dB maximum output sound level Left and right audio signals are brought to the board directly from the mikromedia board socket via two connection pins LOUT and ROUT left and right stereo signals You can disconnect each off the amplifiers from the mikromedia socket LOUT and ROUT pins by placing J8 and J9 jumpers in OFF position respectively After programming and testing Stereo system can be implement
36. ontroller using single analog input line which is selected with a J4 jumper TOP VIEW vcc 5y GND VOUT DATA BUS Figure 13 5 LM35 connected to 0 0 pin page 33 amp E other modules Digital signals have two discrete states which are decoded as high and low and interpreted as logic 1 and logic 0 Analog signals on the other hand are continuous and can have any value within defined range A D converters are specialized circuits which can convert analog signals voltages into a digital representation usually in form of an integer number The value of this number is linearly dependent on the input voltage value Most microcontrollers nowadays internally have A D converters connected to one or more input pins Some of the most important parameters of A D converters are conversion time and resolution Conversion time determines how fast can an analog voltage be represented in form of a digital number This is an important parameter if you need fast data acquisition The other parameter is resolution Resolution represents the number of discrete steps that supported voltage range can be divided into It determines the sensitivity of the A D converter Resolution is represented in maximum number of bits that resulting number occupies For example if microcontroller has 10 bit resolution meaning that maximum value of conversion can be represented with 10 bits which converted to integ
37. pilers or if you do not want to use BSP connections between mikromedia side pads and workStation board pins are as shown on the images below 8 Senna Soe sj 1 mikromedia a dha J ERB for PICE4EP AEREN mikromedia for 24 mikromedia workStation Install board support package BSP in 3 simple steps mikromedia ie Wir DI BH uso om LIBSTOCK A PLACE FOR CODE MikroElektronika Package Manager v 2 40 Eile Edit View Help mikromedia Workstation PIC32 BROWSE CODE SHARECODE REQU eem Use your forum account to login CATEGORIES OAl codes Libraries mikromedia Workstation PIC32 mpkg LOGIN COMPILERS mikroc C mikroBasic Libraries mikromedia Workstation WS GROUPO Set Output B Dependencies WS GROUPO Set Input omm CATEGORY ALL CODES X Lib mikroMedia Workstation PIC32 c 2 WS_GROUP1 In Lib mikroMedia Workstation PIC32 emd WS GROUPi Out Username SORT BY lbestrank oldest 1 Download package from libstock website 2 Install it with Package manager software 3 Use it as a library in mikroE compilers p r qom ul m oe E BnutH LA M i LUC s iara wy RO Ely Ee 2 62 Tm 24 js nn S L go 73 I PRU RR peri x r3 JMESMWENMFTF
38. ppear in this manual In no event shall MikroElektronika its directors officers employees or distributors be liable for any indirect specific incidental or consequential damages including damages for loss of business profits and business information business interruption or any other pecuniary loss arising out of the use of this manual or product even if MikroElektronika has been advised of the possibility of such damages MikroElektronika reserves the right to change information contained in this manual at any time without prior notice if necessary TRADEMARKS The MikroElektronika name and logo the MikroElektronika logo mikroC mikroBasic mikroPascal mikroProg EasyPIC EasyPIC PRO mikromedia mikroBus and Click boards are trademarks of MikroElektronika All other trademarks mentioned herein are property of their respective companies All other product and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their respective companies and are only used for identification or explanation and to the owners benefit with no intent to infringe Copyright MikroElektronika 2012 All Rights Reserved IN CIRCUIT DEBUGGER www mikroe com www mikroe com esupport office mikroe com mikromedia workStation v7 for PIC Manual ver 1 00 0 100000 020463
39. ram the microcontroller with this HEX file you can start the debugger using F9 command Compiler will change layout to debugging view and a blue line will mark where code execution is currently paused Use debugging toolbar in the Watch Window to guide the program execution and stop anytime Add the desired variables to Watch and monitor their values Complete guide to using mikrolCD with your compiler is provided within the mikromedia workStation v7 package mikrolCD in mi debugger En Ew i ktronika 99 el mikrolCD In Circu Marte ai e ene aor testingan wid pin ee nee all PIC icrocontro llers wi ith s support Figure 5 3 mikrolCD manual explains debugging thoroughly GROUP1_SET_OYMUT BIT_MAS GROUP2_SET OUTPUT BIT i GROUP3 SET OUTPUT ope GROUPO OUT val GROUP1 OUT va GROUP OUT va 10 GROUP4 OUJ 17 GROUP4 OU Detey fis 100 for i 0 i 8 i 4 val amp 0 01 lt lt 1 GROUPO OUT val GROUP1 OUT val GROUP2 OUT val GROUP3 OUT val EM 8 0 08 G0 8 8 O8 S AR GO GG SM M 72222111112 Messages 9 Quick Converter vV Errors Warnings V Hints Line Message No Message Text 0 128 Linked in 203 ms 0 129 Project LED Blinking mcp32 completed 733 ms 0 103 Finish
40. re 63 vertical lines on both halves of the Breadboard area Each line consists out of 5 female connectors connected together There are also four horizontal lines for GND and VCC Female connectors are arranged in standard distance form factor 1x26 female header allows you to easily connect Breadboard connectors to mikromedia socket pins using male to male wire jumpers provided with the package Example is shown on Figure 17 1 SEM OX X ee F3 p z 474746 Figure 17 1 Example with Breadboard area work Whats Next You have now completed the journey through each and every feature of mikromedia workStation v7 board You got to know it s modules organization supported microcontrollers programmer and debugger Now you are ready to start using your new board We are suggesting several steps which are probably the best way to begin We invite you to join thousands of users of mikromedia brand You will find very useful projects and tutorials and can get help from a large ecosystem of users Welcome Compiler You still don t have an appropriate compiler Locate dsPIC or PIC32 compiler that suits you best on the Product DVD provided with the package DVD download eng software compilers Choose between mikroC mikroBasic and mikroPascal and download fully functional demo version so you can begin building your PIC mikroC PRO for PIC mikroBASIC
41. resh li peatix230F 0648 ELA Device eror L P32MXGGAF OG AR Rebuild P32MX250F128D pere Rebuild d Missing MAs 5 Select Deselect Selection options Select devices name containing Deselect devices name containing Reset Selection Select devices name begins with Deselect devices namebegin with Invert Selection Select devices having registes Deselect devices having registers Display Only Selected Select by memory Deselect by memory Select by library Deselect by library Select all Package name F work mikroMedia i Workstation tat for PIC BSP 100 mikroC mikromedia Work ge fles you want to make a lbranes You can manage source or md Here you can Welcome to the mikroFlektronika Package Manager Setup Wizard you maison iis recommended that Goce al other before starting This mall akn to D regewerd fles without reboot your conga fint Con rud oma Step 1 Start Installation Vino mi whale rors Packi birder m ior Erren Externas Hemery mos Lines Spier rane Pr Sere Se fore ie Laing eerie bores Tbe Manag Press Page Down is sex the rest ed agreement rg yea accept the lerra ol the derer
42. rn the power switch ON mikromedia workStation page 7 contains four female headers that together form a socket for specialized small development boards with a microcontroller and on chip modules called mikromedia boards Two of them are used for general purpose I O and power pins 1x26 The other two are used for the mikroProg programmer 1x5 or ICD2 3 1x6 Before placing the mikromedia board into the appropriate socket Page 10 you have to solder two 1x26 male headers to the side pads and one 1x5 male header for mikroProg programmer Currently six mikromedia boards are supported but there is a tendency to increase the number Figure 4 1 mikromedia board socket mikromedia for mikromedia for PIC24 mikromedia for PIC2Z4EP mikromedia for dsPIC33 mikromedia for dsPIC33EP mikromedia for After testing and building the final program this mikromedia can also be taken out of the board socket and used in your final device which makes it a great choice for both beginners and professionals The socket schematic is shown on Figure 4 2 aed S 1 iat E ult 1 i Ns hs od CUN LAC 0 UO Oo 2 MIN TOT IN CN CO SF LOW MINTO iun N 3 PIN IN _ ee mikromedia
43. s a unique set of markings on a silk screen which enables you to use each pin connected to mikromedia side pads with the well organized layout combined together into five 1 0 ENG t ae ei Ladia d for i z i 9 E F mikromedia for PIC18F page 14 groups labeled as GO G1 G2 G3 and G4 BSP abstracts what s underneath the hood and enables you to have one development system for various mikromedia boards For example pin number 5 on the side pad of mikromedia for PIC18F is connected to the RF2 microcontroller pin On theotherhand pin number 5 on the side pad of mikromedia for PIC32 is connected to the RB2 microcontroller pin BSP package and mikromedia workStation v7 offers you the possibility to use this pin with the unique name GO O and this stands for all PIC mikromedia boards In addition to simple I O functions BSP package also provides you m jiii mikromedia for PIC24 programming easier a simple way of using ADC 2 SPI and UART libraries without knowing for example if it is UART1 or UART2 module connected to mikromedia side pads Before using you need to choose the appropriate BSP package depending on the programming language C Basic Pascal and the type of mikromedia PICL8F PIC24 PIC24EP dsPIC33 dsPIC33EP PIC32 BSP can only be used with Mikroelektronika compilers If you use other com
44. speed 70 MIPS CPU speed 120 MIPS Flash memory 256 kB Flash memory 512 kB Flash memory 512 kB RAM memory 30 kB RAM memory 52 kB RAM memory 32 kB Operating MCU Voltage 3 3 6V Operating MCU Voltage 3 3 6V Operating MCU Voltage 2 3 3 6V USB DEVICE No USB Yes USB DEVICE Yes USB UART Yes USB UART No USB UART No Consumption back light is ON 59 7 mA Consumption back light is ON 56 2 mA Consumption back light is ON 113 mA Back light current 42mA Back light current 42mA Back light current 42mA speed 400 2 speed 400 2 1 speed 400 2 microSD SPI speed 16 MHz Max microSD SPI speed 35 MHz Max microSD SPI speed 20 MHz Max Flash memory SPI speed 16 MHz Max Flash memory SPI speed 35 MHz Max Flash memory SPI speed 40 MHz Max Audio codec SPI speed 4 MHz Max Audio codec SPI speed 2 1 MHz Max Audio codec SPI speed 3 33 MHz mikromedia workStation 109 UO D BSP makes Board Support Package in mikroElektronika compilers What is BSP In embedded world BSP or Board Support Package is the common name for all hardware specific codes which simplifies working with the board That is why we made a BSP package support for mikromedia workStation v7 board to make programming of mikromedia boards much easier Various mikromedia boards have different connections of microcontroller pins on side pads mikromedia workStation v7 development system ha
45. t Plug and Play devices with minimum settings are the future in embedded world too This is why our engineers AN GO 1 RSTIG3 1 CS G3 2 Ie 6c MISO G2 2 Ex BUS GO SANT ANIGO 2 RSTI GA CS G3 4 Nc MISOVG2 2 mikroBUS sockets mikro BUS G2 S PWM G4 4 RX GA 5ITX G4 B SCL 7 MISO G2 2 mikro BUS pie TNNT G4 AIRX G4 5 TX GA B SCL AN GO 3 RST G3 5 oo Bus BUS G2 7 PWM G1 0 INT G4 4 RX G4 5 TX G4 6 SCL RSTIG3 7 5 54 0 SCK G2 1 a ance have up with simple but brilliant pinout GATI SDA MOSUG23 G4 7 SDA with lines that most of today s accessory boards require which almost completely eliminates the need of additional hardware settings We called this new standard the mikroBUS mikromedia workStation v7 supports mikroBUS with four on board host sockets As you can see there are no additional DIP switches or jumper selections Everything is already routed to the most appropriate pins of the microcontroller sockets MOSVG2 3 MOSI G2 3 4 50 ti Th 3 3V 5M 3 3V e 43 3V 45V GND Ly GND 3 GND 4 GND SCL 12 Clock line SDA 12 Data line 5V VCC 5V power line GND Reference Ground AN Analog pin MISO SPI Slave Output line PWM PWM output line RST Reset pin MOSI SPI Slave Input line INT Interrupt line CS SPI Chip Select li
46. tion you first have to connect the transistor driver of piezo buzzer to the appropriate pin This is done using SW3 8 or SW4 8 DIP switch never in the same time Once the switch is in ON position it connects the buzzer driver to G4 2 or G4 3 pin How to make it sing Buzzer starts singing when you provide PWM signal from the microcontroller to the buzzer driver The pitch of the sound is determined by the frequency and amplitude is determined by the duty cycle of the PWM signal mikromedia workStation page 35 mikromedia workStation v7 board contains two GND pins located in different sections of the board which allow you to easily connect oscilloscope GND reference when you monitor signals on microcontroller pins or signals of on board modules GND is located below the mikromedia board socket on the left side GND is located below the mikromedia board socket on the right i hl LI NS side Figure 16 1 Two oscilloscope GND pins are conveniently positioned so each part of the board can be reached with an oscilloscope probe mikromedia workStation v7 contains Breadboard area as well as additional 1x52 female header side by side That allows you to expand your mikromedia workStation v7 board with additional functionality That can be done by placing your additional components such as resistors LED diodes motors DIP IC s etc on available Breadboard area There a
47. uals weight 515 1 135 Ibs Wire jumpers COMPILERS EXAMPLES SCHEMATICS DRIVERS MANUALS 201 11 isa gi eee RRCEERREE nu a a L L y 7 MikroElektronika DEVELOPMENT TOOLS COMPILERS BOOKS 8 se DVD with examples and documentation 2 J 7 page 5 e M power supply LJ y 4 b Board contains switching power Supply that creates stable voltage and current levels necessary for powering each part of the board Power supply section contains specialized MC33269DT3 3 power regulator which creates VCC 3 3V power supply m UU thus making the board capable of supporting li T 3 3V microcontrollers Power supply unit can be R30 powered in three different ways with USB power supply CN5 using external adapters via adapter connector CN36 or additional screw terminals CN35 External adapter voltage levels 7 must be in range of 9 32V DC 7 23V Use jumper 1 to specify lt 35 which power source you are using Upon providing the power using either external POWER SUPPLY adapters or USB power source you can turn on power supply by using SWITCH 1 Figure 3 1 Power LED ON Green will indicate the presence of power supply Figure 3 1 Power supply unit of mikromedia workStation v7
48. used to create sound waves when provided with analog electrical signal mikromedia workStation v7 comes with piezo buzzer which can be connected to G4 2 or G4 3 microcontroller pin Connection is established using SW3 8 or SW4 8 DIP switch Buzzer is driven by transistor Q1 Figure 25 1 Microcontrollers can create sound by generating a PWM Pulse Width Modulated signal a square wave signal which is nothing more than DATA BUS Figure 15 1 Piezo buzzer connected to G4 3 microcontroller pin Freq 3kHz Duty Cycle 50 3kHz Volume 50 Freq 3kHz Duty Cycle 80 3kHz l Volume 80 _ Freq 3kHz Duty Cycle 20 3kHz Volume 20 N other modules a sequence of logic zeros and ones Frequency of the square signal determines the pitch of the generated sound and duty cycle of the signal can be used to increase or decrease the volume in the range from 096 to 100 of the duty cycle You can generate PWM signal using hardware capture compare module which is usually available in most microcontrollers or by writing a custom software which emulates the desired signal waveform Supported sound frequencies Piezo buzzer s resonant frequency where you can expect it s best performance is 3 8kHz but you can also use it to create sound in the range between 2kHz and 4kHz Enabling Piezo Buzzer PERSPECTIVE VIEW In order to use the on board Piezo Buzzer in your applica
49. you eter at an riv ora Ange ery and eratis dii aaa d ud product d nd accompanying ondine pr printed documentation If yos aocept of the pei Ped i et al piedi ie mgreemenit iz inziall Suite for v2 25 Hent V gecepe terme ed 1da not accept the of the License Agreement Li aea oen tme Step 2 Accept EULA and continue Suite for FIC ZIS Setup Choose install Location Chee thu Folder it ta mkroieog Sube Ser PIC vids vill install mlroPmg Sae fnr v2 25 m the lienem folder To n a differed Solder cick and dnd fhar Bolder Click rectal t5 cha Step 4 Choose destination a folder Completing the mikroProg Suite for PIC v2 25 Setup Wizard fer PIC v2 25 has been installed on your inner Finish to dase this retard Step 6 Finish Installation page 21 lera fU 672 ay mikrolCD In Circuit Debugger What is Debugging Every developer comes to a point where he has to monitor the code execution in order to find errors in the code or simply to see if everything is going as planed This hunt for bugs or errors in the code is called debugging There are two ways to do this one is the software simulation which enables
50. you to simulate what is supposed to be happening on the microcontroller as your code lines are executed and the other most reliable one is monitoring the code execution on the MCU itself And this latter one is called In Circuit debugging In Circuit means that it is the real deal code executes right on the target device What is mikrolCD The on board mikroProg programmer supports mikroICD highly effective tool for a Real Time debugging on hardware level The mikrolCD debugger enables you to execute your program on the host PIC microcontroller and view variable values Special Function Registers SFR RAM CODE and EEPROM memory along with the mikrolCD code execution on hardware Whether you are a beginner or a professional this powerful tool with intuitive interface and convenient set of commands will enable you to track down bugs quickly mikrolCD is one of the fastest and most reliable debugging tools on the market Supported Compilers All MikroElektronika compilers mikroC mikroBasic mikroPascal for PIC dsPIC and PIC32 natively support mikrolCD Specialized mikrolCD DLL module allows compilers to exploit the full potential of fast hardware debugging Along with compilers make sure to install the appropriate programmer drivers and mikroProg Suite for PIC programming software as described on pages 20 and 21 page 22 How do use the debugger When you build your project for debugging and prog
Download Pdf Manuals
Related Search
Related Contents
Lab Test Report KDS Legato 100 Series Jenn-Air EXPRESSIONS WW30430S User's Manual Guide de l`utilisateur Borrador de Boletin Abril Osram DST TWIST 8W/825 E27 Eglo Wave Philips Electric shaver HQ7890 Copyright © All rights reserved.
Failed to retrieve file