Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 10:15 02 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 : New Version of MMBasic. Version 3.2C

Author Message
Geoffg

Guru

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

A new version of MMBasic (ver 3.2C) is available for download from http://geoffg.net/maximite.html#Downloads

This is a minor update that fixes a few bugs and adds two small features:
- Added support for control keys in the EDIT command and the command line editor.
- Added support for I/O pin 7 on the DuinoMite.

The Change Log (included in the update download) details the changes.

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

Guru

Joined: 23/11/2011
Location: Australia
Posts: 447
Posted: 05:59pm 09 Jun 2012
Copy link to clipboard 
Print this post

Thanks .
MMbasic Just keeps getting BETTER.

VK4MU MicroController Units

 
donmck

Guru

Joined: 09/06/2011
Location: Australia
Posts: 1310
Posted: 06:51pm 09 Jun 2012
Copy link to clipboard 
Print this post

  Geoffg said   A new version of MMBasic (ver 3.2C) is available for download from http://geoffg.net/maximite.html#Downloads

This is a minor update that fixes a few bugs and adds two small features:
- Added support for control keys in the EDIT command and the command line editor.
- Added support for I/O pin 7 on the DuinoMite.

The Change Log (included in the update download) details the changes.

Geoff


Geoff just told me that the latest version (3.2C) MMBasic now supports 15 pins on the DuinoMite, and not the 12 that I had advertised, so I have updated all of my product pages to suit.

Don...
https://www.32v8.com/1
 
DuinoMiteMegaAn
Senior Member

Joined: 17/11/2011
Location: Australia
Posts: 231
Posted: 04:54am 10 Jun 2012
Copy link to clipboard 
Print this post

GeoffG - I made an easy to use Open Office (Free) spreadsheet for the MMBasic DuinoMiteMega GPIO for MMBasic 3.2C If you see any obvious mistakes - let me know.

2012-06-10_145401_MaxiMite_DuinoMiteMega_Input_Output_v3_2_C _R1.zip

BTW ... Can the comports (1-4) be used for other GPIO functions? eg input/output/interrupts
Edited by DuinoMiteMegaAn 2012-06-11
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 11:49am 10 Jun 2012
Copy link to clipboard 
Print this post

  DuinoMiteMegaAn said  I made an easy to use Open Office (Free) spreadsheet for the MMBasic DuinoMiteMega GPIO for MMBasic 3.2C If you see any obvious mistakes - let me know.

2012-06-10_145401_MaxiMite_DuinoMiteMega_Input_Output_v3_2_C _R1.zip

Unfortunatly I cannot open this file. Can you save it as a Microsoft Excel (.xls) file?

  DuinoMiteMegaAn said  Can the comports (1-4) be used for other GPIO functions? eg input/output/interrupts

Yes, except for COM3:, details are in the DuinoMite ReadMe file included in the update.

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

Guru

Joined: 07/12/2011
Location: Australia
Posts: 935
Posted: 12:15pm 10 Jun 2012
Copy link to clipboard 
Print this post

  Geoffg said  
Unfortunatly I cannot open this file. Can you save it as a Microsoft Excel (.xls) file?

Geoff

MS Orifice 2010 handles it OK. I'll see if I can save it as an .xls and put it up here. If not I'll post it as an image.
 
BobD

Guru

Joined: 07/12/2011
Location: Australia
Posts: 935
Posted: 12:27pm 10 Jun 2012
Copy link to clipboard 
Print this post

Here is the image file 2012-06-10_222702_MaxiMite_DuinoMiteMega_Input_Output_v3_2_C _R1.pdf and here is the .xls 2012-06-10_222733_MaxiMite_DuinoMiteMega_Input_Output_v3_2_C _R1.zip
There was a complaint from excel about loss of features when saved to a compatibility format but I couldn't see the difference.Edited by BobD 2012-06-11
 
ajkw
Senior Member

Joined: 29/06/2011
Location: Australia
Posts: 290
Posted: 04:24pm 10 Jun 2012
Copy link to clipboard 
Print this post

Hi,

Can somebody else with version 3.2C please test the following

print val("&B101")

or

print val("&HFF")

My MM with 3.2C throws an exception with these and reboots with the "An internal error.. " message.

Thanks
Anthony.
 
BobDevries

Senior Member

Joined: 08/06/2011
Location: Australia
Posts: 266
Posted: 04:46pm 10 Jun 2012
Copy link to clipboard 
Print this post

Umm, without trying to be smart....

Why would you use that?

A simple:

PRINT &HFF
PRINT &B101

would suffice.

Regards,
Edited by BobDevries 2012-06-12
Bob Devries
Dalby, QLD, Australia
 
ajkw
Senior Member

Joined: 29/06/2011
Location: Australia
Posts: 290
Posted: 04:59pm 10 Jun 2012
Copy link to clipboard 
Print this post

Bob,

Because I use the VAL function in a line of code which is too involved to use for practical debug purposes. This particular line of code worked fine in all previous versions but is now throwing the error in 3.2C

I posted PRINT VAL("&HFF") as quick way of checking for the error that can be done from the command line.

So, did you humour the seemingly strange ways of another user and try it??

Rgd's
Anthony.

 
Geoffg

Guru

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

  DuinoMiteMegaAn said  I made an easy to use Open Office (Free) spreadsheet for the MMBasic DuinoMiteMega GPIO for MMBasic 3.2C If you see any obvious mistakes - let me know

That is a neat spreadsheet (and colourful).

The only changes that I would suggest are:
- pin 7 supports counting, frequency, period, etc.
- pins 11 & 12 support digital out on the Mini
- pins 7 & 11 to 18 support interrupts

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

Admin Group

Joined: 05/06/2004
Location: Australia
Posts: 5019
Posted: 05:14pm 10 Jun 2012
Copy link to clipboard 
Print this post

I can confirm that bug Anthony.

Print val("&HFF") crashes the system.
Print val("1234") works fine.
Print &HFF works fine.

Glenn
The best time to plant a tree was twenty years ago, the second best time is right now.
JAQ
 
ajkw
Senior Member

Joined: 29/06/2011
Location: Australia
Posts: 290
Posted: 05:23pm 10 Jun 2012
Copy link to clipboard 
Print this post

Glenn,

Thanks for that, I guess it is over to Geoff to have a look.

Rgd's,
Anthony.
 
Geoffg

Guru

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

  ajkw said  print val("&HFF")

My MM with 3.2C throws an exception with these and reboots with the "An internal error.. " message.

This is getting to be a bad habit... every time I make a new release a small bug appears. At least this one was not my fault. Microchip have managed to break the strtol() function in C32 V2.1a (which I recently upgraded to) and that caused the bug.

I have fixed it and loaded the new version up onto my site. It has the same version number (3.2C) but the date of the hex file is 11th June. So, if you have already downloaded 3.2C could you please re download and re flash.

Sorry for the inconvenience.

Geoff
Geoff Graham - http://geoffg.net
 
DuinoMiteMegaAn
Senior Member

Joined: 17/11/2011
Location: Australia
Posts: 231
Posted: 01:11am 11 Jun 2012
Copy link to clipboard 
Print this post

The only changes that I would suggest are:
- pin 7 supports counting, frequency, period, etc.
- pins 11 & 12 support digital out on the Mini
- pins 7 & 11 to 18 support interrupts

Geoff


By inspecting the GPIO spreadsheet again ... if a user is using I2C, then the only GPIO pin that could be used for counting, frequency and period would ONLY be pin 7 (software#) on the DuinoMiteMega?

GeoffG .... Is counting, frequency and period a function of hardware or software ?
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 02:41am 11 Jun 2012
Copy link to clipboard 
Print this post

It is hardware dependent. The PIC32 i/o pin must support an external interrupt.
Geoff Graham - http://geoffg.net
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024