pic with countdown timer register?


Closed Thread
Results 1 to 12 of 12

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: pic with countdown timer register?

    Hi Wilson,
    Even at the min frequency of 30 events per second the time between events is ~33ms while you're talking about 800ms?
    Are you actually talking about 30-800 events per minute?

    /Henrik.

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,605


    Did you find this post helpful? Yes | No

    Default Re: pic with countdown timer register?

    Hi Wilson.
    Yes, you can connect an external clock source to either TMR0 or TMR1 on the 16F877A.
    If, however, you're talking about connecting a 32.768kHz crystal directly then only TMR1 has that capability (it's got an internal oscillator circuit specifically for this purpose). TMR1 is 16bits wide so you'd get 2 overflows per second. A prescaler of 2:1 will allow you to fit your 800ms in one go.

    /Henrik.

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: pic with countdown timer register?

    @Wilson

    as Henrik points out you have a problem. Even if you mean 600 times per minute thats still every 100ms. The countdown timer will barely have stated before your next event happens.

    You need to state the problem in detail. Perhaps drawing a waveform diagram might help.

    George

Similar Threads

  1. pic+shift register+lcd
    By eworld in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd October 2012, 05:11
  2. long countdown timer, how to save power?
    By Kamikaze47 in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 15th November 2008, 05:15
  3. help: countdown with timer0 interrupt
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 19th August 2008, 14:12
  4. Replacing shift register with PIC
    By TonyA in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 7th April 2008, 18:31
  5. dual 7-segment countdown timer code
    By dr.ragh in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 30th April 2007, 13:19

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