Can some kind soul explain this


+ Reply to Thread
Results 1 to 6 of 6

Thread: Can some kind soul explain this292 days old

  1. #1
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    2,216
    Thumbs Up
    Received: 74
    Given: 180
    Total Downloaded
    5.15 GB

    0 Not allowed!

    Default Can some kind soul explain this

    In this example here Les uses the CCP, can anyone explain why he doesn't just use a countdown timer to generate an interupt? I assume this way is more accurate but why? As Jeromy Iron said in the movie Margin Call, "speak as you might to a young child or a golden retriever", he also said "that is spilt milk under the bridge" but thats ....
    Last edited by towlerg; 3rd February 2019 at 13:22.
    George.

Attention

This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

The advertisements we display are relevant to this web site and your browsing history

Please consider supporting us by disabling your ad blocker.


Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

If you can, please report issues in the forum area WebSite / Forum Issues


Thank you for your attention.

  • #2
    Senior Member tumbleweed's Avatar
    Join Date
    May 2011
    Posts
    485
    Thumbs Up
    Received: 59
    Given: 0
    Total Downloaded
    330.54 MB

    1 Not allowed!

    Default Re: Can some kind soul explain this

    The CCP module uses one of the timers as its counting resource.

    In Special Event Compare mode, the CCP will automatically reset the timer for you when the timer count matches the value set in the CCP period register.

    That way, the timer continues to count automatically without you having to reload it in the ISR, so you don't have to worry about adjusting the count value for the interrupt overhead/latency.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #3
    Member Dompie's Avatar
    Join Date
    Apr 2012
    Posts
    121
    Thumbs Up
    Received: 14
    Given: 12
    Total Downloaded
    5.03 GB

    0 Not allowed!

    Default Re: Can some kind soul explain this

    Ohhh yes that make sense. I hadn't thought of the reloading issue.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #4
    Prolific Poster charliecoultas's Avatar
    Join Date
    Sep 2010
    Posts
    1,347
    Thumbs Up
    Received: 42
    Given: 39
    Total Downloaded
    3.36 GB

    0 Not allowed!

    Default Re: Can some kind soul explain this

    Neat, very neat!

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #5
    Fanatical Contributor top204's Avatar
    Join Date
    Feb 2002
    Posts
    3,406
    Thumbs Up
    Received: 291
    Given: 141
    Total Downloaded
    1.68 GB

    0 Not allowed!

    Default Re: Can some kind soul explain this

    Using a special even interrupt, you can get very accurate interrupt times, and the calculation I do to time it makes it a lot easier to use. It does have the problem with some devices in that is uses one of the CCP peripherals, but most devices have more than 1 CCP, so any of the others can be used.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #6
    Senior Member barak's Avatar
    Join Date
    Apr 2008
    Posts
    724
    Thumbs Up
    Received: 30
    Given: 11
    Total Downloaded
    1.45 GB

    1 Not allowed!

    Default Re: Can some kind soul explain this

    Here is an example from some time ago:
    http://www.protonbasic.co.uk/content...-Event-Trigger

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

    Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

       

    Similar Threads

    1. Capture Compare ? can some kind soul explain please
      By Kapitan in forum Proton Plus Compiler v3
      Replies: 5
      Last Post: 10th February 2009, 11:57
    2. can some kind person explain serout claculation ?
      By Kapitan in forum Proton Plus Compiler v3
      Replies: 10
      Last Post: 23rd January 2009, 15:17
    3. Can you please explain why ?
      By TEEGEE in forum Proton Plus Compiler v3
      Replies: 4
      Last Post: 14th November 2008, 16:22
    4. what kind of 7-segment led display?
      By Hans Chr in forum The Lounge
      Replies: 1
      Last Post: 4th January 2006, 19:17
    5. Stripping (Not that kind!!!) decimal numbers.
      By C H Whitehead in forum Proton Plus Compiler v3
      Replies: 2
      Last Post: 20th January 2005, 20:10

    Members who have read this thread since 6th November 2019, 02:26 : 0

    Actions :  (Set Date)  (Clear Date)

    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