One 'speed up' we used to use was a pre-calculated ookup table instead of doing the math. As a memory lookup was faster. But in some cases you do not have he memory for it.
Back in the day I mainly used tables but with the current speed of microcontrollers ( STM32H7 @ 550 mHz ) its not a problem anymore. Even on the PIC everything was done on the stack, so it was at assembler speed.
I must admit this is one of the protocols I've not looked into in any depth but is very interesting none the less. Out of interest Ken, of all the various "Flavours" of embedded Forth you have tried, which one would you consider to be the most robust ?
The most robust Forth I have used would have to be F-PC by Tom Zimmer. It is now obsolete as it ran on a PC under DOS. I sometimes get it running using DOSbox. I ported it to a DOS SBC for many products that still run today. www.jkmicro.com/Flashlite186.html A windows version of F-PC called Win32Forth is a free download online.
this guy built his house using 1-wire sensors, maybe you could do more on this? I think 1-wire is highly underrated: ua-cam.com/video/VwH6B7aJYDU/v-deo.htmlsi=y7K_fuTIZV5XcHU7&t=562
Great explanation, Ken. Well done.
Thanks John
One 'speed up' we used to use was a pre-calculated ookup table instead of doing the math. As a memory lookup was faster. But in some cases you do not have he memory for it.
Back in the day I mainly used tables but with the current speed of microcontrollers ( STM32H7 @ 550 mHz ) its not a problem anymore. Even on the PIC everything was done on the stack, so it was at assembler speed.
I must admit this is one of the protocols I've not looked into in any depth but is very interesting none the less.
Out of interest Ken, of all the various "Flavours" of embedded Forth you have tried, which one would you consider to be the most robust ?
The most robust Forth I have used would have to be F-PC by Tom Zimmer. It is now obsolete as it ran on a PC under DOS. I sometimes get it running using DOSbox. I ported it to a DOS SBC for many products that still run today. www.jkmicro.com/Flashlite186.html
A windows version of F-PC called Win32Forth is a free download online.
@@0033mer Thanks Ken.It's much appreciated.
this guy built his house using 1-wire sensors, maybe you could do more on this? I think 1-wire is highly underrated: ua-cam.com/video/VwH6B7aJYDU/v-deo.htmlsi=y7K_fuTIZV5XcHU7&t=562
I have made a few videos on the Dallas 1 wire protocol. Here is one of them: ua-cam.com/video/yHTt9ZzBpEg/v-deo.html
🤍