I have a problem with HSerPrint.
if I send HSerPrint ReadAD10 (AN4) as an example in HELP me error:
Error: GCASM: Symbol SYSCOMPLESSOREQUAL16 has not been defined
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, try 8 bit mode and see if that works.
Dim A4 as byte
A4=ReadAD(AN4)
HserPrint A4
This will use the byte mode of Hserprint .
If this works then something is corrupted in /include/lowlevel/usart.h and you will have to re install GCbasic.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a problem with HSerPrint.
if I send HSerPrint ReadAD10 (AN4) as an example in HELP me error:
Error: GCASM: Symbol SYSCOMPLESSOREQUAL16 has not been defined
At a guess its because ReadAD10(AN4) returns a word , but no variables have been defined as word.
Try this.
Dim A4 as word
A4=ReadAD10(AN4)
Hserprint A4
dim Prueva as word
Prueva=ReadAD10(AN0)
HSerPrint BatMot_ADC
Error: GCASM: Symbol SYSCOMPLESSOREQUAL16 has not been defined
?????
sorry
dim Prueva as word
Prueva=ReadAD10(AN0)
HSerPrint Prueva
Error: GCASM: Symbol SYSCOMPLESSOREQUAL16 has not been defined ?????
Looks like there is something corrupted in your Gcbasic install.
Does any 16 bit math work.
16 bit comparisons seem to be missing.
See if this works.
Dim A1 as word
Dim A2 as word
A1=10000
A2=10001
if A1 < A2 then A3=0
no.fill well, without errors
OK, try 8 bit mode and see if that works.
Dim A4 as byte
A4=ReadAD(AN4)
HserPrint A4
This will use the byte mode of Hserprint .
If this works then something is corrupted in /include/lowlevel/usart.h and you will have to re install GCbasic.