Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:37 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 : Pins reserved

Author Message
Herry

Senior Member

Joined: 31/05/2014
Location: Australia
Posts: 261
Posted: 10:23am 25 Oct 2016
Copy link to clipboard 
Print this post

Odd problem

I am using the 28 pin MM with 4.6. I am trying to get a program to work that uses 8 digital inputs (switches) and four digital outputs. Although they are apparently available, at the DIN lines pins 2 and 5 give the error 'Pins reserved at startup'. How can I resolve this? the pins appear in the pinout diagram to be available for digital use. Those DIN lines are near the start of my program. The program does not use those pins for anything else.
Senior?!  Whatever it says, I'm a complete and utter beginner...
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1982
Posted: 10:48am 25 Oct 2016
Copy link to clipboard 
Print this post

I think that happened to me once and found it was that I had previously used a TFT with the chip and had not disabled it.
Paul.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
Herry

Senior Member

Joined: 31/05/2014
Location: Australia
Posts: 261
Posted: 11:02am 25 Oct 2016
Copy link to clipboard 
Print this post

Exactly how do I clear out anything like that?
Senior?!  Whatever it says, I'm a complete and utter beginner...
 
Zonker

Guru

Joined: 18/08/2012
Location: United States
Posts: 767
Posted: 01:26pm 25 Oct 2016
Copy link to clipboard 
Print this post

Humm...

I was looking at v4.6 B26 PDF manual and I don't see any support for TFT displays.

There is the character LCD units supported...

Maybe a good time to update to the latest firmware, if possible...

If so, you could just type: option list at the command prompt..

I didn't see any Library functions either...

What does the printout say when you enter: Memory at the command prompt..?

Typing: NEW should clear everything... (i think)
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6269
Posted: 04:17pm 25 Oct 2016
Copy link to clipboard 
Print this post

I do remember some issues with PINs showing as reserved but I forget which versions of MMBasic were involved.

From the V4.6 manual:
  Quote  MMBasic can be reset to its original configuration using either one of two methods:

1. The chip can be reprogrammed with the Micromite firmware using a PIC32 programmer.

2. It can be reset by joining the console Tx and Rx pins together and then applying power. Following this,
wait a couple of seconds then remove the power followed by the link joining the two pins.

Either method will result in the program memory and saved variables being completely erased and all options
(security PIN, console baud rate, etc) will be reset to their initial defaults.

Method 2 is worth a try but flashing the latest version of MMBasic is a good idea.

Jim
VK7JH
MMedit
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3282
Posted: 06:15pm 25 Oct 2016
Copy link to clipboard 
Print this post

As far as I remember there was no error saying "Pins reserved at startup" in V4.6.

Geoff
Geoff Graham - http://geoffg.net
 
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