ExtremeElectronics / RC2040

Z80 CP/M80 emulation of an RC2014 using the RP2040 (PI PICO) processor
GNU General Public License v3.0
41 stars 7 forks source link

[add .BAS] Switching GPIOs ON/OFF under RunCPM/MBASIC #24

Closed guidol70 closed 2 years ago

guidol70 commented 2 years ago

here a blink sample between the RC2040-RED-LED (GPIO6) and the Pico-Onboard-GREEN-LED (GPIO25)

This Code is an adapted example from a code in the ArduinoInterface-folder ( created by Krzysztof Klis) of the original RUNCPM project

PICBLINK.zip

ExtremeElectronics commented 2 years ago

This won't run on a 2040, and I'm not going to implement it. It would crash into other peripherals. and using POKE to address IO space is just wrong, this is a Z80 it has IO space :)

guidol70 commented 2 years ago

This won't run on a 2040, and I'm not going to implement it.

Hmm - it does run on my RC2040 (built from the RC2010 v1 kit you sent me) The LEDs are blinking in front of me :)

ExtremeElectronics commented 2 years ago

It will run using RunCPM of course, but I can't see how it would run using the RC2040 software here?

guidol70 commented 2 years ago

Thats right, it wont run on the RC2040 !Software! :) I only would show you (and maybe RC2040 RunCPM Users in the future) show the possibility to use GPIO with the RC2040 hardware and RunCPM - only because you also announced the RunCPM support in your Twitter feed. Its only for "think outside the box" or like I as german would say "ueber den Tellerrand schauen" :) But for me its no problem, if you want to keep the focus to the RC2040 Hardware/Software combination :)

ExtremeElectronics commented 2 years ago

Guidol, I'm very happy what you have done in porting RunCPM to the RC2040 hardware, and when I have time I will update the ExtKits/Extremeelectronics pages to include links back to the RunCPM git and to your git. I may even do a quick get you started page.

But, if I start including software here for RunCPM, it will become difficult to know if the software is for the RC2040 emulation or RunCPM emulation. So I'd rather not.

If you find a place to host the RunCPM programs running on RC2040 hardware, please send me a link, I'm happy to share and advertise on my pages and twitter.

guidol70 commented 2 years ago

If you find a place to host the RunCPM programs running on RC2040 hardware, please send me a link, I'm happy to share and advertise on my pages and twitter.

I did put the PICBLINK.BAS at https://github.com/guidol70/RunCPM_RPi_Pico/tree/main/software/pico_rc2040

Under software I will in future maybe create a pico_normal folder :)

Iam glad that you like the port of RunCPm to the RC2040