I have used GCB on and off for a few years and generally it seems to work well. I would class myself a beginner.
I seem to have hit a problem that has got me well and truly stuck and I think it may be a complier problem. I striped out of the code to the bare minimum and still cannot get the A To D to compile on the 16F1823/12F1822. The bare min code does compile on all my other pics of which the closest is 16F688. I have try downloading the latest version of GCB and it made no difference.
When I try to compile I get the following error message
'Error in Library-a-d h: Incorrect Parameter in Set, expected: set variable.bit. status' this message is repeated 6 Times.
The cut down code is
Dim FRED As byte
Dir PORTC.2 In
If READad(AN2) > 2 Then
FRED = 1
The code complies fine on a 16F688.
I have tried chaging ports/AD Numbers but always get the same problem ?
Have you seen the problem before and please could you surgest a solution.
I think chip data is wrong.
I tried to modify it, but same error here.
Someone needs to upload chip data for 16F628 and 16F628a
Recommend you try re-installing GCB using the link in this posting https://sourceforge.net/p/gcbasic/discussion/629990/thread/02712ddc/?limit=25&page=3#c9f4
Please ensure you backup your work prior to updating.