Any PICBASIC codes that demonstrate the use of multiple timers for 16F628A ?


Closed Thread
Results 1 to 2 of 2
  1. #1

    Default Any PICBASIC codes that demonstrate the use of multiple timers for 16F628A ?

    16F628A Datasheet:
    Timers 2 x 8-bit, 1 x 16-bit

    How do you use those multiple timers in PICBasic ?

    I would like to run two LED chaser sequence [5 LEDs each] but they are to be played out in different speeds.

    I think using the 2 eight bit timers would be nice [I am assuming here that they are completely independent of each other.]

    Actually I don't even mind using the 16 bit timer too if it is necessary, I just need it to work.*

    The longer LED chaser sequence of the two will have a pause of say 100 [PICBASIC: Pause 100] before the next LED lights up.

    Is there any PICBASIC codes that demonstrate the use of multiple timers ?

    Hopefully not too overly complicated as I am just trying to flash some LEDs here.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Any PICBASIC codes that demonstrate the use of multiple timers for 16F628A ?

    This might be the easiest way to get started.
    http://www.picbasic.co.uk/forum/showthread.php?t=3251
    Dave
    Always wear safety glasses while programming.

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