Thanks Mat and Ioannis,
The HSERIN command now reads:
HSERIN [char var byte]
I still get the same error
ERROR Line 38: Expected '['.
Anything else I should try? Thanks everyone.
Thanks Mat and Ioannis,
The HSERIN command now reads:
HSERIN [char var byte]
I still get the same error
ERROR Line 38: Expected '['.
Anything else I should try? Thanks everyone.
There is al small misunderstanding.
You should do this !
DEFINE ADC_BITS 10
DEFINE ADC_CLOCK 3
DEFINE ADC_SAMPLEUS 10
adcVar VAR WORD
char VAR BYTE
TRISA = %11111111
ADCON1 = %10000010
DEFINE HSER_RCSTA 90h
DEFINE HSER_TXSTA 24h
DEFINE HSER_BAUD 9600
DEFINE HSER_CLOERR 1
PAUSE 005
main:
If PIR1.5 = 1 THEN
HSERIN [char] 'and than this
HSEROUT [DEC adcvar, 10, 13]
ENDIF
ADCIN 0, adcVar
PAUSE 50
GOTO main
Mat,
Thanks a million. The program now compiles ok, but it seems to hang during execution of the program. I have tried re-arranging the order of the instructions, but so far no luck. I will appreciate more suggestions
I'm going to tell you to READ THE PBP MANUAL now.
Charles Linquist
a little typo error...
should beCode:DEFINE HSER_CLOERR 1
Code:DEFINE HSER_CLROERR 1
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Thanks to everyone, and a second time to Mister E for finding my typo. It now works like a charm! Have a great day!
Bookmarks