Hi,
Yes, that would work. I'd probably add a little pause directly after the WHILE-WEND loop to allow the coin acceptor to push out all the pulses before the code reads the timer.
As for the prescaler, yes, the bits indicate a a 1:2 ratio but since bit 3 is set the prescaler isn't assigned to TMR0 but to the WDT so you get a 1:1 ratio which is what you want in this case.
Steve,
Thanks for the heads-up on the % character, great feature... Must try/verify:And here's how my post looks in preview:Code:This is a test, percent char %00110011 This is a test, no percent char 00110011
Looks fine in the preview. (Appologies to tachbanon for trying this here).
EDIT: And in the final post, I don't see a problem... Is it when there's a = infront?Again, looks fine in the preview.Code:OPTION_REG = %00110011
EDIT: And in the final post.
/Henrik.




Bookmarks