|
Forum Index : Microcontroller and PC projects : Strange PM Start up Question
| Author | Message | ||||
| Rickard5 Guru Joined: 31/03/2022 Location: United StatesPosts: 463 |
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 KingdomPosts: 8300 |
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 StatesPosts: 463 |
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 ZealandPosts: 9757 |
Deleted duplicate post. 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 |