Hi all, newbie here, gave up on the LCD for now. I basically copied this out of the help files. It tells me that there is a syntax error in: InitTimer Osc, PS1_1/8, What is going wrong?
#chip 16F88, 8
#config INTRC_IO
#define Switch PORTA.0
dir Switch In
DataCount = 0
InitTimer Osc, PS1_1/2
Start:
ClearTimer 1
Wait until Switch On
StartTimer 1
Wait until Switch Off
StopTimer 1
Hi all, newbie here, gave up on the LCD for now. I basically copied this out of the help files. It tells me that there is a syntax error in: InitTimer Osc, PS1_1/8, What is going wrong?
#chip 16F88, 8
#config INTRC_IO
#define Switch PORTA.0
dir Switch In
DataCount = 0
InitTimer Osc, PS1_1/2
Start:
ClearTimer 1
Wait until Switch On
StartTimer 1
Wait until Switch Off
StopTimer 1
EPWrite(DataCount, TMR1H)
EPWrite(DataCount + 1, TMR1L)
Goto Start
Try this (for timer1):
InitTimer1 Osc, PS1_1/2
Santiago, thank You!, You are so smart. That works.
Keep looking at my posts, I need the help. Please note the code was right out of the help file.
Kent can you get this error fixed, to save others the hair pulling I went through (I don't have enough left to afford much more)?
Regards, Ed.