Hi, I'm having trouble programming Pics with analogue inputs, specifically the PIC16F627 and the PIC16F628
I built a flowchart to read and compare two analogue signals in Crocodile Tech and it simulates fine, however when I try to transfer it to any of the chips mentioned an ''Readadc' command not supported in this mode' error appears.
My flowchart in basic is:
symbol x = b0
symbol y = b1
main:
label0:
readADC 0,x
readADC 1,y
if x >= y then label1
gosub CCW
label2:
low 5
low 4
low 3
low 2
goto label0
label1:
if x = y then label2
gosub CW
goto label2
Both of the PICs are definitely supported by crocodile tech, but it just wouldn't allow me to have 'ReadADC' in my program. I'm probably missing something quite obvious here, but I'm really stumped.
Any help is appreciated.
I built a flowchart to read and compare two analogue signals in Crocodile Tech and it simulates fine, however when I try to transfer it to any of the chips mentioned an ''Readadc' command not supported in this mode' error appears.
My flowchart in basic is:
symbol x = b0
symbol y = b1
main:
label0:
readADC 0,x
readADC 1,y
if x >= y then label1
gosub CCW
label2:
low 5
low 4
low 3
low 2
goto label0
label1:
if x = y then label2
gosub CW
goto label2
Both of the PICs are definitely supported by crocodile tech, but it just wouldn't allow me to have 'ReadADC' in my program. I'm probably missing something quite obvious here, but I'm really stumped.
Any help is appreciated.