Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 21:27 05 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MMBasic Quick Reference

     Page 1 of 2    
Author Message
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 05:52am 02 Jun 2017
Copy link to clipboard 
Print this post

Some time ago a TBS forum member called crackerjack produced a great quick reference for MMBasic. The last update was for MMBasic V3.2 and since then I have really missed having an up to date version - so I thought that I would have a go at creating my own.

If you are interested, this is it: 2017-06-02_153917_Micromite_Quick_Reference.pdf

At this time it just covers the standard 28 and 44-pin Micromites but in the future I might expand it to include the Micromite Plus - that however will require a much smaller font to fit everything in.

Geoff
Geoff Graham - http://geoffg.net
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 06:45am 02 Jun 2017
Copy link to clipboard 
Print this post

Nice overview. This will be very handy to use.

With this overview it shows how much the serial communication is similar.
Would this not offer an opportunity to aggregate the similar functionalities in just a few commands/functions.
Like this:
[code]
OPEN "COM1:...." AS #fnbr
OPEN "I2C1:...." AS #fnbr
OPEN "1WIRE:..." AS #fnbr
OPEN "SPI1:...." AS #fnbr

PRINT #fnbr
INPUT$(#fnbr,...)
etc...

CLOSE #fnbr
[/code]
It will free up keywords and it might be possible to share code between the different devices.
It also allows to add other devices in the future like USB, Displays, keyboards, WiFi modules etc without the need for numerous specific keywords.


Edited by MicroBlocks 2017-06-03
Microblocks. Build with logic.
 
piclover
Senior Member

Joined: 14/06/2015
Location: France
Posts: 134
Posted: 07:44am 02 Jun 2017
Copy link to clipboard 
Print this post

Most useful (it saves from opening the big PDF of the manual and browsing several pages to find the syntax of a rarely used function).

Thank you Geoff !
 
PicFan
Senior Member

Joined: 18/03/2014
Location: Austria
Posts: 133
Posted: 09:30am 02 Jun 2017
Copy link to clipboard 
Print this post

Helle Geoff !

I know that of AIM 65 (6502 CPU), very good, thank you.

Wolfgang
 
BobD

Guru

Joined: 07/12/2011
Location: Australia
Posts: 935
Posted: 10:06am 02 Jun 2017
Copy link to clipboard 
Print this post

It's very good and I like it. It can be used two ways. If you know what you're doing it's a great QR and if you don't then it can be used as a pointer to the full manual.

I found a small error. The unfortunate part about this one is I don't know which one is wrong without reading the full doc and it's too early in the morning for that.



and in the Variables there is a spelling error which wouldn't rate an effort but if you're in there correcting ..


 
GoodToGo!

Senior Member

Joined: 23/04/2017
Location: Australia
Posts: 188
Posted: 10:25am 02 Jun 2017
Copy link to clipboard 
Print this post

Now that's going to come in handy!
I hope you consider a MM+ version, maybe only do a page with the different commands?

GTG!
...... Don't worry mate, it'll be GoodToGo!
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3663
Posted: 10:28am 02 Jun 2017
Copy link to clipboard 
Print this post

x << y is shift left (obviously), aka up

(same as in C)

The lowest bit (bit 0, with value 1) is defined to be at the far right.

JohnEdited by JohnS 2017-06-03
 
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 911
Posted: 12:10pm 02 Jun 2017
Copy link to clipboard 
Print this post

Thanks Geoff, I have been missing this reference.
Graeme
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 03:50pm 02 Jun 2017
Copy link to clipboard 
Print this post

Nice one.
Smoke makes things work. When the smoke gets out, it stops!
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 10:23pm 02 Jun 2017
Copy link to clipboard 
Print this post

I have had another go at this. This version is formatted better and includes the Micromite Plus.

2017-06-03_082009_Micromite_Quick_Reference.pdf

If you print it out it is intended to be folded Z-fold fashion with the title at the top of the folded stack. This format also works well if you want to display it on your tablet/PC, etc.

Geoff
Geoff Graham - http://geoffg.net
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1328
Posted: 02:35am 03 Jun 2017
Copy link to clipboard 
Print this post

Yes, thanks from me too Geoff, this will get dog-eared pretty quickly and I've made the Z-fold already!

Greg
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2794
Posted: 03:00am 03 Jun 2017
Copy link to clipboard 
Print this post

This is BRILLIANT

Now I have an excuse to buy that colour laser printer

If you don't mind, I would like to print this out and enclose to 'newbie' customers if thats ok.

WW
For everything Micromite visit micromite.org

Direct Email: whitewizzard@micromite.o
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 03:22am 03 Jun 2017
Copy link to clipboard 
Print this post

Go for it WW.
Geoff Graham - http://geoffg.net
 
Cremo
Newbie

Joined: 21/07/2015
Location: Italy
Posts: 34
Posted: 09:05am 03 Jun 2017
Copy link to clipboard 
Print this post

Geoff thank you a lot.
Pietro
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1804
Posted: 11:41am 03 Jun 2017
Copy link to clipboard 
Print this post

Laminated and on the wall above my monitor. This is great, will save a lot of time.
Paul.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2870
Posted: 03:57pm 04 Jun 2017
Copy link to clipboard 
Print this post

@Geoff,

  WhiteWizzard said   This is BRILLIANT


I agree Whole heartedly with that sentiment.. It is really professional looking.. Thanks Geoff and of course crackerjack...


  WhiteWizzard said  Now I have an excuse to buy that colour laser printer


WW,

You don't need a colour laser..

An Ink-jet and then laminated gives a brilliant result. The laminating makes dull plain paper look like a glossy photo.

Kind Regards,

MickEdited by bigmik 2017-06-06
Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 04:08pm 04 Jun 2017
Copy link to clipboard 
Print this post

I keep finding small things to tweak but I think that I am finally there now... this is the last version (promise).

2017-06-05_074829_Micromite_Quick_Reference.pdf

There are only small changes from the previous version (mostly formatting) so, if you printed the last version you do not need to reprint this.

I am now including this in the Micromite firmware distribution zip file.

GeoffEdited by Geoffg 2017-06-06
Geoff Graham - http://geoffg.net
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 1985
Posted: 09:52am 12 Jun 2017
Copy link to clipboard 
Print this post

Sorry Geoff.

just discovered OPTION CPU [speed] is missing for MMX
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 02:39am 13 Jun 2017
Copy link to clipboard 
Print this post

OK, you have got me... what does OPTION CPU speed do?

If you mean CPU speed then that is on the first page under Program Management.

Geoff
Geoff Graham - http://geoffg.net
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2794
Posted: 02:45am 13 Jun 2017
Copy link to clipboard 
Print this post

OPTION CPU 200/252


252 sets MMBASIC up for using some additional MMX features that are available only at this higher rate. For example higher rate WAV files.
WW
For everything Micromite visit micromite.org

Direct Email: whitewizzard@micromite.o
 
     Page 1 of 2    
Print this page
© JAQ Software 2024