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...
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.
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.
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...
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.
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.
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...
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.
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.
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...
/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, …...
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...
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...
Need help?
Do you have a question about the eXtreme and is the answer not in the manual?
Questions and answers