Advertisement

Quick Links

Micromite eXtreme
Micromite eXtreme64
Manual
MMBasic Ver 5.3.08
For updates to this manual and more details on MMBasic
go to
http://geoffg.net/micromite.html
or
http://mmbasic.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the eXtreme and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Micromite eXtreme

  • Page 1 Micromite eXtreme Micromite eXtreme64 Manual MMBasic Ver 5.3.08 For updates to this manual and more details on MMBasic go to http://geoffg.net/micromite.html http://mmbasic.com...
  • Page 2 This manual is distributed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Australia license (CC BY-NC-SA 3.0) Micromite eXtreme Manual Page 2...
  • Page 3: Table Of Contents

    The focus of this manual is to describe just the features that are unique to the Micromite eXtreme. For general Micromite programming you should refer to the Micromite User Manual and the Micromite Plus Manual in addition to this manual.
  • Page 4: Introduction

    VGA Output The Micromite eXtreme can drive a VGA display in 640 x 480 pixels or 640 x 400 (widescreen) with eight colours. All the graphics commands and GUI controls available in the Micromite Plus will also work on the VGA output.
  • Page 5: Micromite Family Summary

    The Micromite Family consists of three major types, the standard Micromite, the Micromite Plus and the Micromite eXtreme. All use the same BASIC interpreter and have the same basic capabilities however they differ in the number of I/O pins, the amount of memory, the displays that they support and their intended use.
  • Page 6 Supports PS2 Mouse Input    Floating Point Precision Single Single Single Single Double Double Double 3.3V 3.3V 3.3V 3.3V 3.3V 3.3V 3.3V Power Requirements 30 mA 80 mA 80 mA 160 mA 160 mA 160 mA Micromite eXtreme Manual Page 6...
  • Page 7: Suitable Microcontrollers

    There are two chip sizes (100-pin and 144-pin) with two frequency specifications (200 MHz and 252 MHz). The default clock speed of the Micromite eXtreme is 200 MHz however this can be changed with a configura- tion option to 252 MHz if required. The firmware will automatically adjust for either the 100 or 144 pin version.
  • Page 8: Typical Circuit

    Typical Circuit An example of the required circuit for a Micromite eXtreme is given below: Notes: 1. If the USB module is not used, this pin may be connected to VSS. 2. As an option, instead of a hard-wired connection, an inductor (L1) can be substituted between VDD and AVDD to improve ADC noise rejection.
  • Page 9: Programming The Firmware

    Programming the Firmware Programming the 64, 100 and 144-pin Micromite eXtreme is similar to programming the 28-pin standard Micromite described in the Micromite User Manual. Refer to the following table for the pin connections to a PICkit 3 programmer: 64-pin Micromite...
  • Page 10: 64-Pin Micromite Extreme Pinouts

    64-pin Micromite eXtreme Pinouts Features ANALOG_IN DIGITAL_IN DIGITAL_OUT SSD1963-D5 OV7670-D5 ANALOG_IN DIGITAL_IN DIGITAL_OUT SSD1963-D6 OV7670-D6 ANALOG_IN DIGITAL_IN DIGITAL_OUT SSD1963-D7 OV7670-D7 ANALOG_IN DIGITAL_IN DIGITAL_OUT SPI2-CLK ANALOG_IN DIGITAL_IN DIGITAL_OUT I2C-SDA ANALOG_IN DIGITAL_IN DIGITAL_OUT I2C-CLK MCLR ANALOG_IN DIGITAL_IN DIGITAL_OUT PWM-1C ANALOG_IN DIGITAL_IN DIGITAL_OUT...
  • Page 11 DIGITAL_IN DIGITAL_OUT MOUSE-DAT DIGITAL_IN DIGITAL_OUT SOUND-RIGHT DIGITAL_IN DIGITAL_OUT COM4-TX CONSOLE-TX DIGITAL_IN DIGITAL_OUT COM4-RX CONSOLE-RX DIGITAL_IN DIGITAL_OUT SSD1963-D0 OV7670-D0 DIGITAL_IN DIGITAL_OUT SSD1963-D1 OV7670-D1 DIGITAL_IN DIGITAL_OUT SSD1963-D2 OV7670-D2 DIGITAL_IN DIGITAL_OUT SSD1963-D3 OV7670-D3 ANALOG_IN DIGITAL_IN DIGITAL_OUT SSD1963-D4 OV7670-D4 Micromite eXtreme Manual Page 11...
  • Page 12: 100-Pin Micromite Extreme Pinouts

    100-pin Micromite eXtreme Pinouts Features ANALOG_IN DIGITAL_IN DIGITAL_OUT ANALOG_IN DIGITAL_IN DIGITAL_OUT ANALOG_IN DIGITAL_IN DIGITAL_OUT PWM-2C SOUND-LEFT ANALOG_IN DIGITAL_IN DIGITAL_OUT ANALOG_IN DIGITAL_IN DIGITAL_OUT ANALOG_IN DIGITAL_IN DIGITAL_OUT COUNT PWM-2A ANALOG_IN DIGITAL_IN DIGITAL_OUT COUNT ANALOG_IN DIGITAL_IN DIGITAL_OUT COUNT ANALOG_IN DIGITAL_IN DIGITAL_OUT COUNT ANALOG_IN...
  • Page 13 DIGITAL_IN DIGITAL_OUT COM1-TX DIGITAL_IN DIGITAL_OUT SPI2-OUT DIGITAL_IN DIGITAL_OUT SPI3-OUT I2S-DATA DIGITAL_IN DIGITAL_OUT I2S-WORDCLK DIGITAL_IN DIGITAL_OUT SPI3-CLK I2S-BITCLK DIGITAL_IN DIGITAL_OUT SPI3-IN DIGITAL_IN DIGITAL_OUT PWM-1B DIGITAL_IN DIGITAL_OUT SPI2-IN DIGITAL_IN DIGITAL_OUT PWM-1A DIGITAL_IN DIGITAL_OUT SPI-CLK DIGITAL_IN DIGITAL_OUT SPI-IN Micromite eXtreme Manual Page 13...
  • Page 14 DIGITAL_IN DIGITAL_OUT COM2-TX DIGITAL_IN DIGITAL_OUT COM2-RX DIGITAL_IN DIGITAL_OUT KBD-CLK DIGITAL_IN DIGITAL_OUT KBD-DAT DIGITAL_IN DIGITAL_OUT MOUSE-CLK DIGITAL_IN DIGITAL_OUT MOUSE-DAT DIGITAL_IN DIGITAL_OUT SSD1963-RESET DIGITAL_IN DIGITAL_OUT SSD1963-RS DIGITAL_IN DIGITAL_OUT SSD1963-WR DIGITAL_IN DIGITAL_OUT DIGITAL_IN DIGITAL_OUT HEARTBEAT ANALOG_IN DIGITAL_IN DIGITAL_OUT Micromite eXtreme Manual Page 14...
  • Page 15: 144-Pin Micromite Extreme Pinouts

    144-pin Micromite eXtreme Pinouts Features ANALOG_IN DIGITAL_IN DIGITAL_OUT ANALOG_IN DIGITAL_IN DIGITAL_OUT ANALOG_IN DIGITAL_IN DIGITAL_OUT PWM-2C ANALOG_IN DIGITAL_IN DIGITAL_OUT ANALOG_IN DIGITAL_IN DIGITAL_OUT ANALOG_IN DIGITAL_IN DIGITAL_OUT COUNT3 ANALOG_IN DIGITAL_IN DIGITAL_OUT SSD1963-DB8 ANALOG_IN DIGITAL_IN DIGITAL_OUT SSD1963-DB9 DIGITAL_IN DIGITAL_OUT SSD1963-DB12 DIGITAL_IN DIGITAL_OUT SSD1963-DB10 ANALOG_IN...
  • Page 16 VGA-CLK ANALOG_IN DIGITAL_IN DIGITAL_OUT VGA-HSYNC ANALOG_IN DIGITAL_IN DIGITAL_OUT CAMERA-D4 ANALOG_IN DIGITAL_IN DIGITAL_OUT CAMERA-D5 ANALOG_IN DIGITAL_IN DIGITAL_OUT CAMERA-D6 DIGITAL_IN DIGITAL_OUT CAMERA-D7 ANALOG_IN DIGITAL_IN DIGITAL_OUT COM1-RX ANALOG_IN DIGITAL_IN DIGITAL_OUT VGA-CLK OSC1 OSC2 - unused VBUS USBD- USBD+ Micromite eXtreme Manual Page 16...
  • Page 17 DIGITAL_IN DIGITAL_OUT PWM-1B DIGITAL_IN DIGITAL_OUT SPI2-IN DIGITAL_IN DIGITAL_OUT PWM-1A DIGITAL_IN DIGITAL_OUT SPI-CLK DIGITAL_IN DIGITAL_OUT SPI-IN DIGITAL_IN DIGITAL_OUT SPI-OUT DIGITAL_IN DIGITAL_OUT VGA-HSYNC DIGITAL_IN DIGITAL_OUT DIGITAL_IN DIGITAL_OUT SSD1963-DB0 DIGITAL_IN DIGITAL_OUT SSD1963-DB1 DIGITAL_IN DIGITAL_OUT SSD1963-DB2 DIGITAL_IN DIGITAL_OUT SSD1963-DB3 Micromite eXtreme Manual Page 17...
  • Page 18 KB-CLK DIGITAL_IN DIGITAL_OUT KB-DAT DIGITAL_IN DIGITAL_OUT SSD1963-DB4 DIGITAL_IN DIGITAL_OUT SSD1963-DB5 DIGITAL_IN DIGITAL_OUT SSD1963-DB6 DIGITAL_IN DIGITAL_OUT SSD1963-DB7 DIGITAL_IN DIGITAL_OUT MOUSE-CLK DIGITAL_IN DIGITAL_OUT MOUSE-DAT DIGITAL_IN DIGITAL_OUT DIGITAL_IN DIGITAL_OUT DIGITAL_IN DIGITAL_OUT DIGITAL_IN DIGITAL_OUT DIGITAL_IN DIGITAL_OUT ANALOG_IN DIGITAL_IN DIGITAL_OUT Micromite eXtreme Manual Page 18...
  • Page 19: Vga Driver

    These commands only need to be run once as the parameters are stored in non volatile memory. Every time the Micromite is restarted MMBasic will automatically initialise the display ready for use. If the VGA output is no longer required the command OPTION LCDPANEL DISABLE can be used which will disable the VGA feature and return the I/O pins for general use.
  • Page 20: Mouse Support

    Mouse Support The Micromite eXtreme supports a PS2 mouse which will act like a touch input on an LCD screen (it also works with the VGA output). MMBasic will automatically display a mouse pointer on the display which is moved by the mouse. When the left button the mouse is clicked it will act like a touch at the location pointed to by the cursor.
  • Page 21: Unique Micromite Extreme Features

    Unique Micromite eXtreme Features Double Precision Floating Point The Micromite eXtreme uses the hardware floating point capability of the MZ series of chips and can therefore process floating point calculations faster than the Micromite and Micromite Plus. All floating point uses double precision calculations.
  • Page 22 Note that by default, if the Micromite eXtreme is configured for a SPI based LCD panel, touch or an SD card then SPI2 will be unavailable to BASIC programs as these functions will use that channel. Alternate SPI Channel for the SD Card...
  • Page 23: Commands (Micromite Extreme Only)

    /constants otherwise an error will be generated. lw, c, and fill can be either arrays or single variables/constants. See the Micromite User manual for full details of parameter usage.
  • Page 24 I2C2 OPEN speed, timeout See Appendix B of the Micromite User Manual. Not available on the [, PU Micromite eXtreme64 I2C2 WRITE addr, option, sendlen, senddata [,sendata ..] I2C2 READ addr, option, rcvlen, rcvbuf I2C2 CLOSE I2C2 SLAVE OPEN addr,...
  • Page 25 [,16] (widescreen) with eight colours. All the graphics commands and GUI controls available in the Micromite Plus will also work on the VGA output. This command only needs to be run once as the parameters are stored in non volatile memory. When the Micromite is restarted the display will be automatically initialise ready for use.
  • Page 26 Valid fusion types are MAHONY and MADGWICK. Usage is pitch, roll, yaw [,p1] [,p2] described in Appendix A SPI3 OPEN speed, mode, bits See Appendix D of the Micromite User Manual. Not available on the Micromite eXtreme64 SPI READ nbr, array() SPI WRITE nbr, data1, data2, data3, …...
  • Page 27: Functions (Micromite Extreme Only)

    Functions (Micromite eXtreme Only) Detailed Listing BAUDRATE( comm [, Returns the baudrate of any data received on one of the communications timeout]) ports (1-4). Samples the port over the period in seconds specified by the timeout. The timeout defaults to one second if not specified. Returns zero if no activity on the port within the timeout period.
  • Page 28 MM.DEVICE$ Returns “Micromite eXtreme” SPI3(n) See Appendix D of the Micromite User Manual Micromite eXtreme Manual Page 28...
  • Page 29: Appendix A - Sensor Fusion

    Appendix A – 1-Wire Communications Sensor Fusion The Micromite eXtreme supports the calculation of pitch, roll and yaw angles from accelerometer and magnetometer inputs. For information on this technology see https://github.com/kriswiner/MPU-6050/wiki/Affordable-9-DoF- Sensor-Fusion The SENSORFUSION command supports both the MADGWICK and MAHONY fusion algorithms. The...

This manual is also suitable for:

Extreme64

Table of Contents