Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 21:17 06 Jul 2025 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 : Micromite V4.5D for the MX150 and MX170

     Page 3 of 3    
Author Message
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2429
Posted: 04:10am 13 Sep 2014
Copy link to clipboard 
Print this post

another thought: in old versions of turbo pascal (from the MSDOS days of the mid 80's) there was a variable called IOresult. assuming the right compiler switch was set, many routines that could fail would set IOresult to a non-zero value upon error.

substituting IOerror as a boolean flag, then if MMbasic used a similar approach the code would read:


temperature = DS18B20( 5 )
if IOerror then print "warning, missing temperature sensor on pin 5"
RTC GETTIME
if IOerror then print "warning, RTC not present or failure to read"
ONEWIRE RESET 6
if IOerror then print "warning, failure to find 1-wire device on pin 6"



note that IOerror would allow MM.ONEWIRE to be depreciated, possibly also MM.I2C (if both 1 and 2 both interpret as a boolean 'true'). the same method of error trapping could then later be used with other operations as the need arose. one could use MM.IOresult instead, but my own person feeling is that just "IOresult" looks cleaner.

can i convince you this is a good idea, geoff?


rob :-)Edited by robert.rozee 2014-09-14
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3282
Posted: 07:06am 13 Sep 2014
Copy link to clipboard 
Print this post

Neat idea. Especially getting rid of MM.ONEWIRE.

Thanks, it is on the todo list for further investigation.

I agree that "IOresult" looks cleaner but, as I am sure that you realise, I use MM.XXX for the auto variables to avoid the chance of clashing with user variables.

Geoff
Geoff Graham - http://geoffg.net
 
samuelT
Newbie

Joined: 15/09/2014
Location: United States
Posts: 5
Posted: 06:02am 16 Sep 2014
Copy link to clipboard 
Print this post

Hello:

My first post.
I have some question with regard to the micromite.

1) Is the MMBasic code compiled with the Microchip PIC32X 'C' compiler?
That is the one that cost about $600?

2) Is it possible to compile the MMBasic without the editor and just use the
Xmodem feature to load program's?

3) Has the Micromite ever been built with an ARM chip? That is compile the
MMBasic into an ARM microcontroller?


Thank you for your time.
rich
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6269
Posted: 11:01am 16 Sep 2014
Copy link to clipboard 
Print this post

Welcome to the forums.
I will try to answer your questions.

1. I think so but you only need the free offerings to load the hex files.

2. The editor is considered an important part of MMBasic and is one of the main things that sets MMBasic apart from the rest.

3. No, I would like MMBasic on a Raspberry Pi but I don't think it would be easy to do.

Jim
VK7JH
MMedit
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4036
Posted: 01:12pm 16 Sep 2014
Copy link to clipboard 
Print this post

I think someone (in Germany) has put it on an STM32. That's an ARM.

John
 
samuelT
Newbie

Joined: 15/09/2014
Location: United States
Posts: 5
Posted: 03:19pm 18 Sep 2014
Copy link to clipboard 
Print this post

Hello:

The Micromint manual shows support for the PCF8563 I2C RTC built in.

Does it also support other I2C RTC like the DS1307?

cheers,
samT
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2949
Posted: 09:41pm 18 Sep 2014
Copy link to clipboard 
Print this post

Hi Samuel,

Welcome to TBS (The back shed forum).

No it doesn't with the built in commands but some people on this forum have written MMBasic code to use other clocks.

Do a search for DS1307 and see what poops up.

Mick
Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
viscomjim
Guru

Joined: 08/01/2014
Location: United States
Posts: 925
Posted: 10:01pm 18 Sep 2014
Copy link to clipboard 
Print this post

Or even better, search DS3231....
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9589
Posted: 10:21pm 18 Sep 2014
Copy link to clipboard 
Print this post

Back to the original topic(with no disrespect to samuelT - welcome!), I would have thought that the watchdog would take care of all these issues of the code falling over with an error.

When the uM falls over to the command-prompt, with the watchdog correctly set, the PIC32 will re-start by itself if those kinds of errors stop the MMBASIC code.

Perhaps I am missing something obvious here?
Smoke makes things work. When the smoke gets out, it stops!
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4036
Posted: 10:22pm 18 Sep 2014
Copy link to clipboard 
Print this post

  TassyJim said  I would like MMBasic on a Raspberry Pi but I don't think it would be easy to do.

Jim

I think (but not 100% sure) it would have to be put on top of an existing RPi OS (because lots of the hardware is proprietary, closed source, closed documentation via NDA if available at all, and the support code for it is binary only).

That would mean that various I/Os would be non-real-time i.e. somewhat less predictable than they are now. I've no idea how many projects would really be badly affected, though.

I suppose MMBasic could be put on RPi in the sense it's on Windows but doesn't sound exciting.

Tweaking all the I/Os to use Linux APIs would make it portable to a lot more than just RPi. Some features would have to change or be dropped.

John
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4036
Posted: 10:24pm 18 Sep 2014
Copy link to clipboard 
Print this post

  Grogster said   Back to the original topic(with no disrespect to samuelT - welcome!), I would have thought that the watchdog would take care of all these issues of the code falling over with an error.

When the uM falls over to the command-prompt, with the watchdog correctly set, the PIC32 will re-start by itself if those kinds of errors stop the MMBASIC code.

Perhaps I am missing something obvious here?

I don't think you're missing anything. It does what you describe I think.

John
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2429
Posted: 03:51am 19 Sep 2014
Copy link to clipboard 
Print this post

  TassyJim said   Welcome to the forums.
3. No, I would like MMBasic on a Raspberry Pi but I don't think it would be easy to do.
Jim


already done, kind of. have a look here:
https://projects.drogon.net/rtb/

i had it in my mind that there was a connection between MMbasic and RTB, but can not for the life of me find any evidence of it now. both were/are available on a thing called a "fuze" that is the hardware built into a keyboard with a breadboard facility.

according to the dragon.net site RTB is now only available for the RPi, and despite past references to the source code being available i can not find it online.

geoff, can you clarify?


rob :-)
 
MipsyKing
Newbie

Joined: 12/02/2015
Location: Italy
Posts: 17
Posted: 12:39am 23 Feb 2015
Copy link to clipboard 
Print this post

Hello,
I subscribed this forum only to say "thanks" to user G8JCF for telling us about PIC32PROG utility.
I got 3 PIC32MX170, just to discover my pickit 3 is simply not working at all.
On two PC I have, Pickit 3 is recognized by X-LAB (model and ID number) but it tells "comunication failed" and I'm not capable to program even a old 8 bit PIC16!
On a 3th PC I have, the PicKit-3 window simply crash at starting.
Very strange... I remember the Pickit 3 working at beginning, even if it never satisfied me (bad support, problematic and slow like hell)
But now is totally unusable on my Windows XP ... may be this incompatibility is due to automatic Windows updates?
Thanks God I had also my PicKit 2 ready, and with pic32prog I was able to load MM.hex in a while!
Edited by MipsyKing 2015-02-24
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2429
Posted: 02:47am 23 Feb 2015
Copy link to clipboard 
Print this post

the Pickit3 does seem to get roundly criticized by many people who have used it - most complaints seem to be on the official microchip forums, from people who have bought genuine ones from microchip. it is hard to say for sure if the issue is one of design or build quality.

a PicKit3 can be made to function like a PicKit2 by loading alternative firmware on to it that microchip provides. i have done this before. but, if the PicKit3 has a hardware failure, this will not necessarily provide a solution!

there are a few alternatives out there. G8JCF has written his own program that uses a MicroMite Mk2 to program a MX150 or MX170, while JohnS has some linux code to do this using a Raspberry Pi. and I've produced an (open source) modified version of pic32prog that will use any micromite to handle programming. so there are a few choices.


cheers,
rob :-)Edited by robert.rozee 2015-02-24
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 946
Posted: 04:30am 23 Feb 2015
Copy link to clipboard 
Print this post

Hi Robert,

did you have a link to the Raspberry software from John?
I have a PicKit3 but I would like to test the Raspberry software for a friend...

Thank you very much!

Frank
 
Lou

Senior Member

Joined: 01/02/2014
Location: United States
Posts: 229
Posted: 06:09am 23 Feb 2015
Copy link to clipboard 
Print this post

MipsyKing,

If you're having trouble programming with the PicKit 3 try the procedure I posted
here: http://www.thebackshed.com/forum/forum_posts.asp?TID=6457
(sorry, couldn't get the hyperlink to work)

It has helped others in the past, maybe it can help you.

Lou
Microcontrollers - the other white meat
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4036
Posted: 07:19am 23 Feb 2015
Copy link to clipboard 
Print this post

  Frank N. Furter said   Hi Robert,

did you have a link to the Raspberry software from John?
I have a PicKit3 but I would like to test the Raspberry software for a friend...

Thank you very much!

Frank


It's a few posts down on this page

Any problems - just let me know!

John
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 946
Posted: 08:17pm 23 Feb 2015
Copy link to clipboard 
Print this post

Hi John,

thank you very, very much!!!
I will try it!

Frank
 
     Page 3 of 3    
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025