12F683 trailing and rising edges in option_reg


+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2010
    Location
    Las Vegas, NV
    Posts
    303

    Default 12F683 trailing and rising edges in option_reg

    What advantage is there to using trailing vs. rising edge interrupts?

    in the option_reg line you can

    bit 6 INTEDG: Interrupt Edge Select bit
    1 = Interrupt on rising edge of INT pin
    0 = Interrupt on falling edge of INT pin

    bit 4 T0SE: Timer0 Source Edge Select bit
    1 = Increment on high-to-low transition on T0CKI pin
    0 = Increment on low-to-high transition on T0CKI pin

    So why would you use one over the other?

    If there is something I should have read please send a link but nothing I've seen gives a reason for either.

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default Re: 12F683 trailing and rising edges in option_reg

    Here are some interactive examples of Rising/Falling edge differences.

    http://www.darreltaylor.com/DT_INTS-14/hello.html
    DT

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,817

    Default Re: 12F683 trailing and rising edges in option_reg

    As Usual, Very good (Great?) treatise on the subject. And Thank You !
    Have you ever thought about assembling these little training aids into a course
    in programming ? I think 1000 words would not explain rising and falling edge so eloquently. You have put a lot of work into these, I hope everyone is grateful for them, I am.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default Re: 12F683 trailing and rising edges in option_reg

    Thanks Joe,

    Yes I've thought about it. Started it. Then never finished it.
    There's always the NEXT problem to solve, and that's what I like doing.

    Putting hundreds of hours into something I've already figured out, doesn't stand much of a chance.

    Now that I get new problems every day ... even less of a chance.
    DT

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

    Default Re: 12F683 trailing and rising edges in option_reg

    Old saying: There's no problems... only learning opportunities...
    Steve

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

  6. #6
    Join Date
    Sep 2010
    Location
    Las Vegas, NV
    Posts
    303

    Default Re: 12F683 trailing and rising edges in option_reg

    Thanks. Nicely done and illustrated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts