Menu

Question on example programs- Accurate Pulse

Help
MBB
2017-10-29
2017-10-29
  • MBB

    MBB - 2017-10-29

    I tried the example program for generating accurate pulses and it is very accurate. Geat Job!

    I do have a question.

    In the sub routine is the line :

    TMR1L = (65535 - Variable) + 4  'Timer 1 Preset Low
    

    How is the '4' derived? Is there some mathematical relationship? Or is it just a fudge factor to get the exceptional accuracy?

     
  • William Roth

    William Roth - 2017-10-29

    Which example program? There are nearly1000 in various locations and folders.

     
  • William Roth

    William Roth - 2017-10-29

    Found it. This is referring to an example program in the HELP. The program can be found by opening the Help and searcing for "Generate Accurate Pulses".

    Aparantly this is something I wrote a couple of years ago. As I recall and by looking at the code the "4" represents the overhead involved in executing the code.

     
  • MBB

    MBB - 2017-10-30

    Thanks!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.