Good tip thanks. This command was pasted into chatgpt: https://gcbasic.sourceforge.io/help/index.html scrape this link for all gcbasic syntax and examples and update memory for all syntax as necessary Also when chatgpt is issuing code ask it to add verbose comments
'---------------------------------------- ' PIC16F1705 - LM35 Temperature Reader ' Clock: 16 MHz ' FVR = 2.048V '---------------------------------------- #chip 16F1705, 16 '---------------------------------------- ' Variables '---------------------------------------- Dim adcVal As Word Dim tempCx10 As Word Dim tempC As Word '---------------------------------------- ' Pin setup '---------------------------------------- Dir PORTA.0 In ' AN0 input (LM35) '---------------------------------------- ' FVR...
~~~'---------------------------------------- ' PIC16F1705 - LM35 Temperature Reader ' Clock: 16 MHz ' FVR = 2.048V '---------------------------------------- #chip 16F1705, 16 '---------------------------------------- ' Variables '---------------------------------------- Dim adcVal As Word Dim tempCx10 As Word Dim tempC As Word '---------------------------------------- ' Pin setup '---------------------------------------- Dir PORTA.0 In ' AN0 input (LM35) '----------------------------------------...
~~~ ~~~'---------------------------------------- ' PIC16F1705 - LM35 Temperature Reader ' Clock: 16 MHz ' FVR = 2.048V '---------------------------------------- chip 16F1705, 16 '---------------------------------------- ' Variables '---------------------------------------- Dim adcVal As Word Dim tempCx10 As Word Dim tempC As Word '---------------------------------------- ' Pin setup '---------------------------------------- Dir PORTA.0 In ' AN0 input (LM35) '----------------------------------------...
~~~ ~~~'---------------------------------------- ' PIC16F1705 - LM35 Temperature Reader ' Clock: 16 MHz ' FVR = 2.048V '---------------------------------------- chip 16F1705, 16 '---------------------------------------- ' Variables '---------------------------------------- Dim adcVal As Word Dim tempCx10 As Word Dim tempC As Word '---------------------------------------- ' Pin setup '---------------------------------------- Dir PORTA.0 In ' AN0 input (LM35) '----------------------------------------...
'---------------------------------------- ' PIC16F1705 - LM35 Temperature Reader ' Clock: 16 MHz ' FVR = 2.048V '---------------------------------------- chip 16F1705, 16 '---------------------------------------- ' Variables '---------------------------------------- Dim adcVal As Word Dim tempCx10 As Word Dim tempC As Word '---------------------------------------- ' Pin setup '---------------------------------------- Dir PORTA.0 In ' AN0 input (LM35) '---------------------------------------- ' FVR...
Good tip thanks. This command was pasted into chatgpt: https://gcbasic.sourceforge.io/help/index.html scrape this link for all gcbasic syntax and examples and update memory for all syntax as necessary
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...