background image

4.3. MM-BASIC

MM-BASIC was developed by Geoff Graham, you can see the original MaxiMite project at 

http://www.geoffg.net

What distinguishes the MM-BASIC, and the original MaxiMite design, from all other development 
boards and tools is that it is a single chip, complete computer solution with a PS2 keyboard and VGA 
monitor support, so all you need for development is one small computer board which is build around 
the powerful PIC32MX795 microcontroller.

DuinoMite 

was started with the ambition to improve the current MaxiMite hardware by adding some 

hardware features that we felt were missing in the original design, low power, battery operation, real 
UARTs, CAN, Arduino shield connector, UEXT connector, RTC support, Ethernet, etc.

4.3.1. SOFTWARE INSTALLATION AND UPGRADE

 

DuinoMite

 can reprogram itself with a new version of its firmware – also known as firmware 

upgrading . This is done with the help of small program called bootloader. The same firmware is loaded 
on all 

DuinoMite

 boards, there is no difference. 

To start the bootloader software press and hold the BUT button then press and relese RESET button. 
The green and yellow LEDs will start flashing. 

4.3.1.1 Bootloader.exe For Windows: 

The firmware upgrades can be downloaded from Olimex web site. On your PC run the program called 
“BootLoader.exe”,  and follow the instructions included in the upgrade package to re program the 

DuinoMite

  with the new version.

4.3.1.2 MPHIDFLASH

For Linux:

Download mphidflash from 

http://code.google.com/p/mphidflash/

Before you install it, make sure you have installed libhid-dev on your computer:

$ sudo apt-get install libhid-dev 

then go to the directory where you downloaded and unpacked mphidflash and do:

$ make

then:

$ sudo make install

now the mphidflash is installed in /usr/local/bin folder and you can access it from anywhere, to load 
new firmware put 

DuinoMite

 in bootloader mode then type:

Summary of Contents for DuinoMite

Page 1: ...User s Manual Revision 1 03 December 2011 Copyright 2011 Olimex Ltd Based on original Maximite by Geoff Graham www geoffg net Released under Creative Commons Attribution Share Alike 3 0 United States...

Page 2: ...ww olimex com web site and released under the Creative Commons Attribution Share Alike 3 0 United States License which generally means that you are free to use these files to create your own product p...

Page 3: ...the most sophisticated board from DuinoMite range of boards The schematic of the current revision of the DuinoMite Mega can be found online in the DUINO section at http www olimex com dev you will al...

Page 4: ...DuinoMite Mega is available for sale as either a pre assembled board only or alternatively in a laser cut custom made plastic enclosure...

Page 5: ...nector PS2 Keyboard connector RS232 connector VGA connector Audio RCA jack Composite Video RCA jack Headphones 3 5 mm jack RESET and USER buttons three status LEDs build in LiPo Lithium Polimer batter...

Page 6: ...d 512KB Flash Linear power regulator require EXACTLY 5V to the DC POWER JACK USB Device DuinoMite Mini can take power from USB also there is 3 way jumper which selects which source is used the DC POWE...

Page 7: ...RAM and 512KB Flash DC DC power supply 9 30V DC input USB Device USB Host OTG mini SD card socket UEXT connector EXT connector to connect DuinoMite IO with Keyboard Video Audio connectors GPIO connec...

Page 8: ...et connector and PHY controller which will add a 100Mbit Ethernet interface to DuinoMite 2MB on board Data Flash which could be used as disk for data and code storage PMP external connector with 80Mhz...

Page 9: ...t is T shaped and is intended to plug into a breadboard It incorporates a UEXT connector and USB with Device and Host OTG PIC32 T795 is the fastest way to make something with a breadboard and Jumper w...

Page 10: ...aw from the I O pins while the RTC low frequency clock is running so this allows handheld and battery powered devices to be built with the DuinoMite VIN port on the Arduino platform Connector 1 Note t...

Page 11: ...The DuinoMite Mini power supply is made with a linear voltage regulator to save cost an LM1117 is used The power source could be USB connector or POWER JACK The source is selected with a 3 way jumper...

Page 12: ...care is taken in the DuinoMite design for USB noise immunity and protection when it works in host mode When working as USB host DuinoMite may provide up to 500mA to the USB devices attached so this s...

Page 13: ...r boards there is provision for the SD card power supply to be shut down this is done with FET2 connected to STB_E on RB13 port of PIC32 SD CARD presence is sensed by the SD_ CS connected to RD5 port...

Page 14: ...face allows us to develop different modules which can be used on any board with a UEXT connector All DuinoMite boards have UEXT connectors and can interface Olimex s UEXT modules For more information...

Page 15: ...0 A1 A2 A3 A4 A5 VIN GND 5V 3 3V RST CTS RTS D0 D13 are digital I Os A0 A5 are analog I Os VIN input power which allows you to power DuinoMite or Mega by an external power supply RST reset CTS RTS han...

Page 16: ...u can do this by removing R2 and R3 As COM1 TX RX are available on same D0 D1 ports anyway R2 and R3 may be removed unless you need a fast UART there These ports share more than one function together...

Page 17: ...a http www youtube com watch v PbA_bOO2mMw Being a robust and noise immune protocol CAN is used not only in automotive but also in industrial robot applications For more information see the following...

Page 18: ...Mite and support for ARDUINO we expanded the GPIO layout as shown below MM BASIC allows the GPIO ports to be accessed with the PIN command and function and different functions to be set with SETPIN co...

Page 19: ...1 ARDUINO D0 4 DI DO PIN 12 ARDUINO D1 6 DI DO PIN 13 ARDUINO D2 8 DI DO OC PIN 14 ARDUINO D3 10 DI DO OC PIN 15 ARDUINO D4 12 DI DO OC PIN 16 ARDUINO D5 14 DI DO OC PIN 17 ARDUINO D6 16 DI DO OC PIN...

Page 20: ...BOARD PS2 keyboard CLOCK is connected to RD6 and DATA is connected to RD7 Note that the Keyboard requires 5V to work correctly so the keyboard will not work when the DuinoMite Mega is powered by 3 7V...

Page 21: ...nected together via small SMD jumpers if you selectively cut them you can make your Video output RED GREEN BLUE AMBER or YELLOW in color PIC32 RG8 RG9 generates the Video signal Composite video signal...

Page 22: ...ctors an AUDIO RCA jack connector and a 3 5mm headphone connector MM BASIC can output to these connectors with the SOUND command with frequencies up to 1Mhz and by using the duty cycle parameter PWM w...

Page 23: ...nal power supply or USB and is OFF if the power supply is the LiPo battery YELLOW is the system RUN status if this LED is ON VGA video is generated correctly and the board is ready to work GREEN this...

Page 24: ...out need of an external programmer To enter the boot loader the USER button should be pressed at power up or RESET To enter the boot loader press and hold USER button then press and release RESET butt...

Page 25: ...e power supply on BAT port RB2 The Lithium Polimer battery is connected via the R31 R29 voltage divider 0 319727891 to RB2 port as RB2 can handle a maximum voltage of 3 3V but the battery voltage can...

Page 26: ...s very useful for the boot loader to determine which firmware to download to it The signature is done by a voltage divider made from R40 R30 read on RB14 initialized as analog input For the current re...

Page 27: ...4 SOFTWARE...

Page 28: ...olimex com we assume you already have a PIC32 programmer debugger if you do not have you may need to obtain the PIC KIT3 and PIC ICSP note that you will need the PIC ICSP even if you have the Microchi...

Page 29: ...ge which is generally C libraries to allow easy programming of the hardware The DuinoMite boards are based on our PIC32 PINGUINO OTG project hardware and evolved from there so they can use the existin...

Page 30: ...so known as firmware upgrading This is done with the help of small program called bootloader The same firmware is loaded on all DuinoMite boards there is no difference To start the bootloader software...

Page 31: ...on the VGA monitor this message MaxiMite BASIC Version x xx Copyright 2011 Geoff Graham Olimex Port By kenseglerdesigns com the prompt show that DuinoMite is ready to complete your commands BASIC is...

Page 32: ...tyACM0 and you will see the greet message MaxiMite BASIC Version x xx Copyright 2011 Geoff Graham Olimex Port By kenseglerdesigns com WINDOWS If you use Windows it will try to search for drivers and w...

Reviews: