RP2040 Multitasking / Mecrisp Forth / Tiny2040
Вставка
- Опубліковано 12 вер 2024
- This video will describe how to run a multitasker on the RP2040 microcontroller. The multitasker is co-operative in a round robin scheme where each task yields to the next task. The multitasker runs under the Forth operating system where it is interactive for easy development.
Mecrisp Forth:
sourceforge.ne...
Thanks for continuing to provide tutorials on implementing Forth on different microcontrollers.
You are welcome! Thanks for the feedback.
Again, 0033mer & mecrispForth, great demonstration. Wonderful resource for those wanting to get into Forth on microcontrollers. Thank you, and keep up the good work!
Glad it was helpful!
@@0033mer is there any way I can hire you for a hall effect clutch paddle?
Remarkable approach for programming a Tiny2040. Great ingenuity, interesting as usual.
Back in the 80's I replaced my ZX81 Basic Rom with a Skywave Forth Rom. This gave to ability to divide the screen (TV!) into separate user defined fixed windows and have a different task running in each. Wish it was still around, it transformed that machine into something useful. Loved Forth so much I bought a Jupiter Ace as well. I'm looking to develop some automation for my telescope and quite fancy Forth on a microcontroller if only out of nostalgia!
Thanks for sharing.
Telescope automation ?? Mr. Moore would be proud.
Fantastic.! Had to watch carefully to catch the "pause" invocation. Thanks!
You're welcome!
good video!
Glad you enjoyed it
Please provide a link to the code used. I am a long-time follower of Forth. Can not wait to write code for my board in Forth.
sourceforge.net/projects/mecrisp/files/
Do you have a recommended resource for learning Forth on a micro? I actually have a copy of Starting Forth by Leo Brodie that I bought in the 80s. I've long been fascinated by Forth, but have never gone beyond very simple stuff. My specialty is the Propeller family, but I'm comfortable with Assembly on that platform. Forth seems like a good way to get performance out of platforms I'm not as intimate with.
Hi Jon.. Starting Forth is a good introduction but is a bit outdated when it comes to microcontrollers. I would first learn Flashforth on the Scamp3 board which you can get here: www.tindie.com/products/johncatsoulis/scamp/
It is running on a PIC microcontroller and has support for I2C SPI UART GPIO and ADC onboard so it simplifies coding when building a project. There are getting started tutorials on the udamonic web site here: udamonic.com/what-is-a-scamp.html
Check out some videos I has posted on You Tube:
udamonic.com/scamp-projects-on-youtube.html
There are also tutorials on the Flashforth website:
flashforth.com/tutorials.html
There is also support by the designer of the Scamp3 board.
Email is on his website: Udamonic.com
Have Fun!
From the readme file "No support for second CPU core or USB terminal included yet" It seems that all the tasks can only be running on one core.
Yes, it is a round robin multi-tasking scheme on one core as indicated in the video. For multi-tasking using 8 cores check our the Parallax Propeller:
ua-cam.com/video/KJoS9O5DYzM/v-deo.html
Nice video, what are practical application for this board?
The RP2040 is a new micro-controller that has just been released and can be added to the large list of available micro-controllers that you can choose from for your projects.
Check out the last 10 videos on my channel for application examples. Here is one of them: ua-cam.com/video/CULas2y_sXI/v-deo.html
@@0033mer Thank you so much for your reply.
Sir , please give hindi substile