![]() |
Forum Index : Microcontroller and PC projects : mmBasic v 4.6
Author | Message | ||||
banda Newbie ![]() Joined: 12/05/2014 Location: New ZealandPosts: 35 |
OK, I hereby declare myself the dumbest electronics tinkerer in existence. I apologise to the Initialist Language experts who are at home with SPI and MCU and PM, etc. Question 1. I have MX170 chips. I have mmEdit v 3.5.14. That should allow me to make my LEDs go blinky-blink. However, my mmBasic is only v 4.5. Where can I find what I should download to make it mmBasic v 4.6b for me to use mmEdit v 3.5.14 in DOS as well? Question 2. I have changed and translated other basics and written a bang-on MMBasic QUICKSORT program which I run in the DOS version of 4.5, with well under 200ms to sort 1000 random floating point numbers. However, I can't run it on 4.6b in DOS because I haven't got MMBasic v 4.6b. Perhaps someone great would translate it into a CFUNCTION for when I do download mmBasic v 4.6b? Question 3. Wouldn't it be nice if we all could make private libraries of CFUNCTIONS to call up directly from within the program? Perhaps we can. Can we? Thanks to anyone who might be able to help. Banda |
||||
redrok![]() Senior Member ![]() Joined: 15/09/2014 Location: United StatesPosts: 209 |
Hi Banda; As far as I know V4.5 will not run in an PIC32MX170 chip. You have to get V4.6B http://geoffg.net/micromite.html or the download. http://geoffg.net/Downloads/Micromite/Micromite_Firmware.zip You will need a PicKit 3 burner. redrok |
||||
bigmik![]() Guru ![]() Joined: 20/06/2011 Location: AustraliaPosts: 2950 |
4.5D definitely was released with a version for the 170 chip.. I am not sure of earlier ones as I had a HDD crash 5 or 6 months ago and lost any earlier files... but yes If you have a 170 you should update to Ver 4.6b Here is a thread I started on a cheap PicKit3 PicKit 3 thread Regards, Mick Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
MMEdit doesn't care what versions of MMBasic you are using. It is happy with 4.5 on the maximite as well as 4.6 on the micromite Mk2. There is no V4.6 for DOS. If you want to write a program that can run on multiple versions/platforms, it can be done but some care is needed. I often have multiply devices connected at once, switching between Micromite Mk2(V4.6b), Maximite (V4.5)and DOS(V4.5) when I want to check that routines will work on all devices. Jim VK7JH MMedit |
||||
WhiteWizzard Guru ![]() Joined: 05/04/2013 Location: United KingdomPosts: 2944 |
Hi Barry, Hope you are well; good to see you on here. To try and summarise answers for you: Q1> If you have 'blank' MX170s (or v4.5x on MX170's which is possible) then I would definitely upgrade to the latest MMBasic firmware (currently v4.6B for 'public' use). To do this there are several methods but the simplest for you will be with a PicKit3. See bigmik's post above regarding a cheap PicKit3 clone. See TassyJim's post regarding mmEdit v4.6 for DOS. Q2> I recommend you time your 'sort' code on the v4.6B MX170 as it will definitely be quicker than 200mS. Try this before delving into CFunctions conversion. There are members here that hopefully will offer their help if you still wish to translate it into CFunction (matherp is one resident expert - but do time 4.6B MMBasic first!) Q3>) I agree with you, it would be nice to call library functions from within MMBasic (rather than embed lots of meaningless lines of numbers). It has been discussed on this forum before but not sure how it ended. Perhaps a CFunction 'expert' can let Barry know about this. Good luck in your ventures. Do post again if you need any assistance in progressing the above . . . . Phil |
||||
twofingers![]() Guru ![]() Joined: 02/06/2014 Location: GermanyPosts: 1593 |
Hi Barry, A1: A PicKit3 (or a cheap china clone) is not essential. JohnS und Peter(G8JCF) made great alternatives. But they are not easy to find there. ![]() A2: There is already a Cfunction for shell sort. Michael causality ≠ correlation ≠ coincidence |
||||
G8JCF![]() Guru ![]() Joined: 15/05/2014 Location: United KingdomPosts: 676 |
MMBasic is an interpreter, the point of CFunctions is to provide the power/speed of fully compiled code. Unless MMBasic was to include a C Compiler I can't see how you could include C source into MMBasic programs and expect that source to be compiled and run - perhaps I'm missing the point of Question 3. Anybody can make CFunction libraries - download the tutorial and CFuncGen utility from http://www.g8jcf.dyndns.org/mmbasicmkii/index.html. Hopefully these will get you started. Peter The only Konstant is Change |
||||
banda Newbie ![]() Joined: 12/05/2014 Location: New ZealandPosts: 35 |
Thanks all for your help. TassyJim says that there's no v 4.6b mmBasic for DOS, so now I can concentrate on learning how to cope without it. Thanks TassyJim. I do have v 4.6b on my MX170. A magician called Grogster, in my own country, made things much simpler than dealing overseas. I had bought an MX150 module and he gave it a heart tranplant! He magically (to me) unsoldered all the 44 minute MX150 connections that existed and then magically replaced them with 44 tiny, tiny MX170 connections! He told me there was apparatus and knowledge that made it possible, but I know in my heart he must have gone over to the Dark Side to gain the Power. I am in awe! So I'm using a v 4.6b, MX170 micromite. I prefer to use mmEdit, but where do I find out how to read non-micromite-centred activities like sorting. Is there some way I can see the values I'm dealing with, or can I only use the mmite's TIMER to measure the time a search takes? One last bleat: Why does the big X icon stay at the end of the icon line saying it's doing MAXIMITE things when I'm only using MICROMITE? As far as I can see I haven't called it up and it wastes time writing in its window. I can make it disappear but it soon pops back again. Is it me or mmedit? Perhaps there's a dummy's mmEdit HOWTO for v 4.6b? Thanks all, Banda |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
There is a manual for MMEdit. It's not very good but it is there. There are much better manuals for the various versions of MM Basic. MMEdit was started when there was only the Maximite and most of the references to "Maximite" are a generic term to refer to "what ever version you have connected at the time" The red X indicates that a devices is currently connected and allows you to force a disconnection. Normally it disconnects automatically. If MMEdit spent time trying to work out what you have connected, it would be wasting time. Usually, the only time you have to worry about what devices you have connected is to set the syntax help. You don't even have to do that if you don't rely on the syntax colouring. The syntax colouring has no effect on the code you send to the 'mite. MMEdit is just a text editor, there is no emulator available if that is what you are looking for. If you want to watch values as your code runs, try lots of PRINT statements. Jim VK7JH MMedit |
||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9610 |
Awwwww, shucks. ![]() This is one of the myths about SMD - that it is impossible to remove and replace them once they are in place. It is actually really easy, but you DO have to have the right tools and equipment. Trying to remove a SMD chip just by unsoldering it(with wick, then trying to lift it off with a screwdriver and leverage) will likely result in lifted PCB pads and a wrecked board. It was not a difficult job, I am pleased to help if I can, and thank you for the kind words. ![]() ![]() Smoke makes things work. When the smoke gets out, it stops! |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |