How to create a efficient array of bytes

Status
Not open for further replies.
The jitter can be avoided, but it needs tinkering with ASM-code.

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.
 

I just meant that in a conditional branch, both branches can be made to execute the same number of cycles.
 
I just meant that in a conditional branch, both branches can be made to execute the same number of cycles.

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.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…