Menu

Error in libary rs232.h: Syntax

Help
freak_ts
2011-04-19
2013-05-30
  • freak_ts

    freak_ts - 2011-04-19

    Hello,
    by using the "default libarys", i have some problems to use SerSend or SerPrint.
    I also can not use the "original" examples from the Help-Files!!!??
    The Compiler-Output returns many Syntax-Errors, but only if I´m use SerSend or SerPrint.
    I´m really not able to find my problem!
    InitSer and SerRecive works fine.
    Currently I´m using PIC16F672, changing the type or pins dosen´t matter.
    I can not find any errors in this rs232-libary, or in my code.
    Please, help !!!

     
  • freak_ts

    freak_ts - 2011-04-19

    Do you use alternative libs?

     
  • freak_ts

    freak_ts - 2011-04-19

    Can somebody tell me, why the "SerSend"-Help-Example has no Output defined, and what is the sense behind this?
    SerSend-Help:

        'This program will send a byte using PORTB.2, the value of which
        'depends on whether a button is pressed.

        #define RecAHigh PORTB.2 ON   
        #define RecALow PORTB.2 OFF   'really RecXHigh/Low for transmit?

        InitSer (1, r9600, 1+WaitForStart, 8, 1, none, normal)
        Main:
         if Button pressed then Temp = 0
         if Button released then Temp = 100
         SerSend (1, Temp)
         Wait 1 s
        goto Main

    And can somebody tell me why it is really "impossible" to define the output?
    I tryed something like:
    #define SendAHigh PORTB.1 ON
    #define SendALow PORTB.1 OFF   ' I thaught that I need to use SendXLow/High for transmit !?????

    But it will allways return Syntax-Error from rs232.h Libary while compileing !!!?
    What shoud i do now? I don´t want to "leave" GCGB so soon, just because of this small "error".
    Sorry for my bad english.. I hope somebody can help me with this problem !!!

     
  • Nobody/Anonymous

    Reinstalled, updated, solved,  thanks. bye

     

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.