How to use TMR command?


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2006
    Location
    Slovenia EU
    Posts
    32

    Default How to use TMR command?

    Hello everybody!

    Can somebody help me to write a part of program, which could use TMR. I would like to control LED diode, which would blink in half a second (0,5 s) iterval. Between, the rest of a program should work undisturbed (it should not work with pauses or wait 0,5 s between commands). I use PIC18F452.

    START
    _
    -
    -
    -
    -
    -----> blink on
    -
    -
    -

    <------blink off
    -
    -

    END




    Thank you for your help.

    Samo

  2. #2
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Do a search for "instant Interrupts"

    There is an example in there that does exactly what you want.
    Keith

    www.diyha.co.uk
    www.kat5.tv

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Wink Simple, you said simple ???

    Hi,

    The simplest choice is to buy a blinking Led ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4
    Join Date
    Jan 2006
    Location
    Slovenia EU
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    hello,

    Blink led is not prper in my case. My LED has to work all the time in some cases.

    could you please paste a link with the same solution? (instant interrupt)

    regards
    Samo

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Samoele View Post
    could you please paste a link with the same solution? (instant interrupt)

    regards
    Samo
    Could you please type the words instant interrupt into the search box?

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


    Did you find this post helpful? Yes | No

    Default

    Steve

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

Similar Threads

  1. My code for TV remote and MIBAM for RGB control
    By idtat in forum Code Examples
    Replies: 4
    Last Post: - 12th January 2013, 20:52
  2. Easy HID Command -Response application
    By ptig185 in forum USB
    Replies: 25
    Last Post: - 22nd September 2010, 19:56
  3. Active low input?
    By CosMecc in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 8th August 2010, 20:31
  4. Can I do this???
    By noobie in forum mel PIC BASIC
    Replies: 2
    Last Post: - 10th June 2006, 18:57
  5. Interupts and Command string
    By Tissy in forum Serial
    Replies: 13
    Last Post: - 17th March 2006, 23:59

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