Timer PIC16F57


Results 1 to 26 of 26

Thread: Timer PIC16F57

Threaded View

  1. #2
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    Hello Leonel,

    Iīm trying to write a simple example that will make my ledīs flash every 20s.
    I understand timerīs in PIC16F872 because they have interrupts associated (TMR1), but iīm using PIC16F57 which only has one timer, TMR0, and no interrupts...
    I don't know what you want to do... but how complicated do you want to get????

    psuedo code..(that just may work, but haven't tested it).

    TRISB=%00000000
    Loop:
    Portb.0 = High
    Pause 500
    Portb.0=Low
    Pause 20000 'pause 20 seconds.
    goto loop
    end

    Dwayne
    Last edited by Dwayne; - 29th June 2005 at 17:53.
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

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