When I compile my programme that uses the COUNT function, the above error message comes up.
I am using Pic Basic Pro v2.46 and Micro Code Studio to write and compile into a PIC 16F877 chip.
Any ideas as to how I can overcome this problem ?
When I compile my programme that uses the COUNT function, the above error message comes up.
I am using Pic Basic Pro v2.46 and Micro Code Studio to write and compile into a PIC 16F877 chip.
Any ideas as to how I can overcome this problem ?
COUNT?TCT would mean you are counting the number of pulses on a pin (the first T), for a period specified by a (C)onstant, and placing the result in a BIT variable or Pin (the second T).
Check the variable type in the Count statement.
The result should go to a Word variable.
DT
Thanks for your lead - the variable nominated in the COUNT function was not appropriate.
Thanks again for your help.
Bookmarks