Menu

problem HSerPrint

Help
2010-08-18
2013-05-30
  • alejandro1957

    alejandro1957 - 2010-08-18

    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

     
  • Mauried

    Mauried - 2010-08-18

    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

     
  • alejandro1957

    alejandro1957 - 2010-08-19

    dim Prueva as word

    Prueva=ReadAD10(AN0)
        
    HSerPrint BatMot_ADC

    Error: GCASM: Symbol SYSCOMPLESSOREQUAL16 has not been defined

    ?????

     
  • alejandro1957

    alejandro1957 - 2010-08-19

    sorry

    dim Prueva as word

    Prueva=ReadAD10(AN0)
    HSerPrint Prueva

    Error: GCASM: Symbol SYSCOMPLESSOREQUAL16 has not been defined ?????

     
  • Mauried

    Mauried - 2010-08-19

    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

     
  • alejandro1957

    alejandro1957 - 2010-08-23

    no.fill well, without errors

     
  • Mauried

    Mauried - 2010-08-23

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.