I have found chatgpt useful to write segments of code but it uses registers and binary to set port direction and function etc.
As far as I can tell chatGPT hasn't been extensively trained on the high level gcbasic commands we are so familiar with.
So I made a single 4MB html file by merging all the command syntax html entries (complete with examples) in the gcbasic CHM file which is attached to this post.
The single html file was uploaded to chatgpt and I asked it to parse the file and commit all the syntax commands to memory.
Then I uploaded the chipdata file for the chip I am currently working with, 16f1705, and got it committed to chatgpt's memory.
I prompted chatgpt to write a simple program that reads an LM35 output voltage and converts it to a temperature reading scaled 0 to 100C
It correctly selected an appropriate fixed voltage reference and after tweaking the readad10 command it produced useable code.
Hopefully this can be of help to anyone tasked with writing sections of code quickly
one of the many things i tried with gcbasic was a thermometer using an LM35;i never managed to figure out the maths involved,and i seem to have lost my code which i was playing with.for the life of me i can't find an example gcb routine using the LM35 pleeeese can you post the code you got to work? i've read through all the 4meg html with no luck
many thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have found chatgpt useful to write segments of code but it uses registers and binary to set port direction and function etc.
As far as I can tell chatGPT hasn't been extensively trained on the high level gcbasic commands we are so familiar with.
So I made a single 4MB html file by merging all the command syntax html entries (complete with examples) in the gcbasic CHM file which is attached to this post.
The single html file was uploaded to chatgpt and I asked it to parse the file and commit all the syntax commands to memory.
Then I uploaded the chipdata file for the chip I am currently working with, 16f1705, and got it committed to chatgpt's memory.
I prompted chatgpt to write a simple program that reads an LM35 output voltage and converts it to a temperature reading scaled 0 to 100C
It correctly selected an appropriate fixed voltage reference and after tweaking the readad10 command it produced useable code.
Hopefully this can be of help to anyone tasked with writing sections of code quickly
one of the many things i tried with gcbasic was a thermometer using an LM35;i never managed to figure out the maths involved,and i seem to have lost my code which i was playing with.for the life of me i can't find an example gcb routine using the LM35 pleeeese can you post the code you got to work? i've read through all the 4meg html with no luck
many thanks
Can you try one of the many Help formatted output formats. These are published and mantained.