removing the default statement from switch-case, compiler will then generate a 'table jump' codes but this in turn will cause your microcontroller to run an approximate 30 instructions before executing functions within each case
AnthonyF Guest
Posted: Fri Oct 12, 2007 3:17 pm
Thanks,
Looks like if you are comparing with constants as I am the lookup table is hard coded exactly as I want requiring minimal processing during each run.
I think we all would like to have minimal processing before executing each task.
how do you propose to code 'a table read using computed GOTO method' in C?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum