Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:12 01 Aug 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 : MM update to 4.5, now output error

     Page 1 of 2    
Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 04:47pm 24 Jul 2014
Copy link to clipboard 
Print this post

Hi folks.


I downloaded an updated a CMM to version 4.5, now a program that was running fine in 4.4 throws this error when I try to run it:

[24] SetPin D11,9:SetPin D12,2:SetPin D13,2:Port(D2,8)=1
Error: Invalid output pin


I will check the update text file, but I don't immediately see why MMBASIC is upset when this line of code was fine in 4.4.......

EDIT: Tried changing the line so that the output pin is OOUT instead of 9, but got the same error.

Downgraded the firmware to version 4.4, and the error is gone, and the code runs as expected.

Curious....Edited by Grogster 2014-07-26
Smoke makes things work. When the smoke gets out, it stops!
 
BobD

Guru

Joined: 07/12/2011
Location: Australia
Posts: 935
Posted: 04:53pm 24 Jul 2014
Copy link to clipboard 
Print this post

Hi Grogs
separate your code and find out which pin it is. You can then submit a bug report.
BobEdited by BobD 2014-07-26
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 04:54pm 24 Jul 2014
Copy link to clipboard 
Print this post

Error gone when I downgrade to 4.4 - see my edit above....
Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 05:28pm 24 Jul 2014
Copy link to clipboard 
Print this post

It might be related t this problem:
http://www.thebackshed.com/forum/forum_posts.asp?TID=6710&PN =3&get=last#70366

It is the PORT command having problems there but the error looks the same.

Jim
VK7JH
MMedit
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3292
Posted: 12:19am 25 Jul 2014
Copy link to clipboard 
Print this post

This does seem like a bug.

I will add it to the todo list for the next version.

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

Joined: 14/12/2017
Location: Australia
Posts: 6
Posted: 11:47pm 13 Dec 2017
Copy link to clipboard 
Print this post

I know that things have moved on quite a bit, and this is revisiting very old ground...

Is there any plan (Geoff?) to issue a V4.5.X of the Maximite firmware that has this PORT bug fixed?
I use V4.4B as I use the PORT command to drive stepper motors (monochrome MM). It does not work with V4.5. But I then miss the nice enhancements that V4.5 contains.

I've searched the forum but cannot find any reference following this post (and the one linked below). If anyone has any updated info, I'd appreciate the help.

https://www.thebackshed.com/forum/forum_posts.asp?TID=6875&KW=port+bug

Thanks.
Rod.
 
MauroXavier
Guru

Joined: 06/03/2016
Location: Brazil
Posts: 303
Posted: 12:09pm 20 Feb 2018
Copy link to clipboard 
Print this post

I'm waiting for this fix for a while too.

I need to use port command to control a SN76489 PSG, but in 4.4b firmware I loose peek and poke commands.
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3292
Posted: 12:53pm 20 Feb 2018
Copy link to clipboard 
Print this post

This one must have got lost between the cracks. I have added it to the current bug list but I need to setup the test environment so it may be a little while .
Geoff Graham - http://geoffg.net
 
MauroXavier
Guru

Joined: 06/03/2016
Location: Brazil
Posts: 303
Posted: 01:59pm 20 Feb 2018
Copy link to clipboard 
Print this post

Thank vou very much, Geoffg.

With this fix I can optimize the sound library.

I'm finishing the media editor to CMM and the port, peek and poke commands are very important. With this media editor anyone will can read and create sprites, fonts, screens, maps and musics entirely in CMM hardware, without a PC, like the good old times.
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3292
Posted: 05:36am 03 Mar 2018
Copy link to clipboard 
Print this post

Could you please try this version (V4.5B): 2018-03-03_152807_ColourMM_MMBasic_V4.5b.zip

I'm sorry to use you as an unpaid tester but after all this time it was amazingly difficult setting up the old compiler chain, etc and then both of my Colour Maximites chose this time to develop some sort of mysterious fault which cut short my testing.

I am reasonably sure that I have nailed the bug but I need a third person to verify this.

Thanks
Geoff


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

Joined: 14/12/2017
Location: Australia
Posts: 6
Posted: 01:21pm 10 Mar 2018
Copy link to clipboard 
Print this post

Thanks for addressing this Geoff. I did not notice your post until a couple of days ago and hence the delayed reply.

I have loaded version V4.5B onto my Monochrome MM. At the end of the usual process, with the green 'power' LED flashing slowly, power removed and re-applied,
it appears to not boot. No green LED nor any output to screen.

I tried several cycles of loading V4.5B and then V4.4B.
V4.4B loads and boots fine.
V4.5B - as above, not booting.

Thanks,
Rod.

 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2944
Posted: 02:31pm 10 Mar 2018
Copy link to clipboard 
Print this post

  Tendor said   I have loaded version V4.5B onto my Monochrome MM. At the end of the usual process, with the green 'power' LED flashing slowly, power removed and re-applied,
it appears to not boot. No green LED nor any output to screen.

I tried several cycles of loading V4.5B and then V4.4B.
V4.4B loads and boots fine.
V4.5B - as above, not booting.



Is the Colour version not different from the Monochrome version?
 
Tendor
Newbie

Joined: 14/12/2017
Location: Australia
Posts: 6
Posted: 03:10pm 10 Mar 2018
Copy link to clipboard 
Print this post

Thanks WW. Yes, of course. I had forgotten that they were different firmware hex files.
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3292
Posted: 03:23pm 10 Mar 2018
Copy link to clipboard 
Print this post

My fault, I thought that only the CMM version was needed. I will generate a monochrome Maximite version and post it tomorrow.

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

Joined: 14/12/2017
Location: Australia
Posts: 6
Posted: 03:26pm 10 Mar 2018
Copy link to clipboard 
Print this post

That would be great thanks Geoff.
Regards, Rod.
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2944
Posted: 03:32pm 10 Mar 2018
Copy link to clipboard 
Print this post

@Geoff

I just tried the above CMM 'test' version (on your original CMM) and it still gives the same error.

Have re-flashed (and re-downloaded) three times now just to be sure I have the intended test firmware you posted.

 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2944
Posted: 03:35pm 10 Mar 2018
Copy link to clipboard 
Print this post

Can the PORT command use a 'D2' reference (as in Grogster's example)?
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2944
Posted: 03:42pm 10 Mar 2018
Copy link to clipboard 
Print this post

Whatever I try, even with:
PORT(x,1)=1
I get an Error : Invalid output pin
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3292
Posted: 02:21am 11 Mar 2018
Copy link to clipboard 
Print this post

OK, please try this: 2018-03-11_121510_Maximite_V4.5C.zip

This contains version V4.5C for both the colour and monochrome Maximites. I have tested it and the PORT command/function works (for me). Note that this is an update so you do need to load it via the bootloader (not a PICkit3).

Anyone who does test it, could you please report back on how it worked for you. Thanks.

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

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 03:44am 11 Mar 2018
Copy link to clipboard 
Print this post

This program runs without error on a mono Maximite:
  Quote   ' mono maximite tester
SETPIN 15,DOUT
SETPIN 16,DOUT
SETPIN 17,DOUT
SETPIN 18,DOUT

FOR n = 1 TO 16
PORT(15,4)=n
PAUSE 20
PRINT n
NEXT n


It's one that failed earlier

Jim
VK7JH
MMedit
 
     Page 1 of 2    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025