PDA

View Full Version : Error: macro COUNT?TCT nor found in macro file.



AMMOTT
- 29th November 2007, 03:55
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 ?

Darrel Taylor
- 29th November 2007, 04:45
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.

AMMOTT
- 29th November 2007, 05:05
Thanks for your lead - the variable nominated in the COUNT function was not appropriate.
Thanks again for your help.