Posts: 20
Threads: 2
Joined: Apr 2022
Reputation:
3
I use microchips (extensive) range of microprocessors. The basic ones are 8-bit (who needs more than 8-bits?) and GCBasic only supports the 8-bit offerings anyway.
For the temperature clock project I used a PIC 16F18326 it has 2k of RAM and 16k for programs (ASM instruction). It can run at up to 32MHz clock, but on battery operation I like to keep it 1-8 MHz to conserve power. I was going to say they are cheap, but it appears that the price is now about £1:80* (that's inflation for you).
It also has ADC,PWM, I2C,SPI and EUSART (which is a fancy new name for serial).
It's a bit of a learning curve to get things to work, but it's well worth the effort.
*RS components - so you may get them cheaper elsewhere.
Posts: 20
Threads: 2
Joined: Apr 2022
Reputation:
3
Yes you need something to flash the program to the chip. I use one of the PICKIT devices genuine ones are getting a bit pricey, but you can get a Chinese knock-off which will probably work just as well.
The help and demonstration files that come with GCBasic are much better than they once were and are probably sufficient.
Often text books go into much more detail than is necessary - there are some things that you really don't need to know to program a microprocessor successfully. You just type in BASIC code and GCBasic will convert it to ASM then to HEX instructions and flash it on the chip.
Posts: 70
Threads: 7
Joined: Apr 2022
Reputation:
10
Very interesting!
I'm in PIC/MC programming also and love to do it in BASIC sometime!
THANKS
45y and 2M lines of MBASIC>BASICA>QBASIC>QBX>QB64 experience