Hi,
How fast does the LED blink? You're only counting for 60ms so you need to insert the coin at exactly the right time - every time - for it be consistent.
I'd probably do this by setting up one of the PICs timers as a counter and wire the pulse signal to its input.
EDIT: Or something like:Code:Init: While PortB.1 = 0 : WEND Count PortB.1, 60, W1 Count = Count + 1 'LCDOUT...... '..... Goto Init
/Henrik.




Bookmarks