Counting led blinks..


Results 1 to 40 of 93

Threaded View

  1. #11
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default Re: Counting led blinks..

    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:
    Code:
    This is a test, percent char %00110011
    This is a test, no percent char 00110011
    And here's how my post looks in preview:

    Name:  Preview.jpg
Views: 2103
Size:  28.2 KB
    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?
    Code:
    OPTION_REG = %00110011
    Again, looks fine in the preview.
    EDIT: And in the final post.

    /Henrik.
    Last edited by HenrikOlsson; - 1st October 2011 at 08:13.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts