Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 02:29 21 Nov 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 : Strange PM Start up Question

Author Message
Rickard5

Guru

Joined: 31/03/2022
Location: United States
Posts: 463
Posted: 04:59pm 19 May 2022
Copy link to clipboard 
Print this post

Ok this is going to sound strange but here goes I have 2 projects where I'm using the PM as an embedded controller, but I have one screen so what I'm having to do is go in to a terminal session and load and run which ever program I'm going to run, but ideally I would like to be able to put a physical switch so at boot up it it will autostart which ever program I want to run, is this possible ?

Thanks in advance
I may be Vulgar, but , while I'm poor, I'm Industrious, Honest,  and trustworthy! I Know my Place
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8300
Posted: 05:22pm 19 May 2022
Copy link to clipboard 
Print this post

The PicoMite can run and chain programs stored in flash memory slots. It might be worth trying something like this:

Flash slot 1: autorun program
Flash slot 2 : program 1
Flash slot 3 : program 2

The autorun program is set with
OPTION AUTORUN 1
so it starts automatically. It contains something like:
If input is high then FLASH RUN 2 else FLASH RUN 3

If program 1 and program 2 terminate with FLASH RUN 1 they will go back to the start. If they terminate with FLASH CHAIN 1 then any variables they have set will remain and the autorun program can get the results. Be careful if you do either of these as the autorun program will make an immediate choice and run one of the programs.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Rickard5

Guru

Joined: 31/03/2022
Location: United States
Posts: 463
Posted: 03:10am 24 May 2022
Copy link to clipboard 
Print this post

Thanks Mick
I'll try that ;0
RICK
I may be Vulgar, but , while I'm poor, I'm Industrious, Honest,  and trustworthy! I Know my Place
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9757
Posted: 05:55am 24 May 2022
Copy link to clipboard 
Print this post

Deleted duplicate post.
Smoke makes things work. When the smoke gets out, it stops!
 
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