Timer on 16F84


Closed Thread
Results 1 to 5 of 5

Thread: Timer on 16F84

  1. #1
    matth's Avatar
    matth Guest

    Default Timer on 16F84

    Is it possible to use the Timer0 module on the 16F84 with Picbasic or is that only an assembler thing?

    Matt

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    everything is possible. If you tell us what you want to do with, we can give you some idea.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    matth's Avatar
    matth Guest


    Did you find this post helpful? Yes | No

    Default

    I want the timer to keep track of my 1 second interval. I want to generate a ~120 microsecond pulse precisely every second or pretty close. The 1 second is pretty critical while the 120 microsecond is not that critical. I am thinking using the built in timer would keep it accurate despite any other minor overhead I have. I would like to use the 16F84 since I have a handful of them anyway. Perhaps its timers are not up to this task. I do not see much reference to using the timers in the Picbasic manual. I only have Picbasic standard. Perhaps I need Pro.

    Matt

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    hi matt, wwhat else the PIC will do. By using Timer and/or Timer interrupts you'll have to ensure that other statement will not take to much time to be executed to be sure to get every timer interupts.

    Is the project is battery powered or you can acces to an AC signal line?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    matth's Avatar
    matth Guest


    Did you find this post helpful? Yes | No

    Default

    It will need to be battery backed so no AC. It will not likely be working very hard. I almost think if the timer could free run in background and I just looked at it every so often that would likely work. My thinking is the timer is setup to roll over at 1 second and start over and I just watch it from my code. Just keep reading and recording its value and when I notice it rolled back to zero or past I need to do my pulse thing. I just have no idea how to work with the timers.

    Matt

Similar Threads

  1. Elapsed Timer Demo
    By Darrel Taylor in forum Code Examples
    Replies: 111
    Last Post: - 29th October 2012, 17:39
  2. High Resolution Timer & Speed Calculator
    By WOZZY-2010 in forum Code Examples
    Replies: 4
    Last Post: - 7th February 2010, 16:45
  3. Timer + rc5
    By naga in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 19th November 2009, 07:56
  4. Timer interrupt frequency
    By Samoele in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th January 2009, 23:49
  5. timer interupt help 16f73
    By EDWARD in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd July 2005, 08:41

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