1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

How to create a efficient array of bytes

Discussion in 'Oshonsoft' started by Rubens, Sep 1, 2014.

  1. NorthGuy

    NorthGuy Well-Known Member

    Joined:
    Sep 8, 2013
    Messages:
    1,218
    Likes:
    206
    Location:
    Northern Canada
    Not necessarily. If you change ports from the interrupt, and start your interrupt routine from setting values to the port, then (in most cases) there will be no jitter.

    Without interrupts, it is hard to produce no-jitter code even with assembler. Most people will rather live with jitter.
     
  2. jjw

    jjw Member

    Joined:
    Apr 16, 2012
    Messages:
    258
    Likes:
    15
    Location:
    Helsinki, Finland
    ONLINE
    I just meant that in a conditional branch, both branches can be made to execute the same number of cycles.
     
  3. NorthGuy

    NorthGuy Well-Known Member

    Joined:
    Sep 8, 2013
    Messages:
    1,218
    Likes:
    206
    Location:
    Northern Canada
    Right. And I'm saying that if you set your port in the interrupt before any conditional branching, you don't have to make them execute in the same number of cycles.
     

Share This Page