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 !!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 !!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 !!!
Do you use alternative libs?
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 !!!
Reinstalled, updated, solved, thanks. bye