| ??? 10/04/12 14:41 Modified: 10/04/12 14:42 Read: times |
#188573 - you are violating KISS Responding to: ???'s previous message |
KISS; Keep ISRs Short and Simple.
what you are doing wiil load a '51 with an elephant, have a look at the generated assembler. there is an old tied and true method timer ISR;
for (index = 0; index < NO_OF_TIMERS) index++)
{
if (timerStack[index] !=0)
{
timerStack[index]--;
where used
if (timer_active)
{
if (timerStack[MY_OFFSET]== 0}
{
timer_active = FALSE;
whatever need be done when timed out
Erik |
| Topic | Author | Date |
| Timers - Function Pointers | 01/01/70 00:00 | |
| Too much for a '51? | 01/01/70 00:00 | |
| I Agree | 01/01/70 00:00 | |
| Function Pointers... | 01/01/70 00:00 | |
| you are violating KISS | 01/01/70 00:00 | |
| Various Timer Functions | 01/01/70 00:00 | |
| Thanks Michael | 01/01/70 00:00 | |
| regardless, you are violating KISS | 01/01/70 00:00 | |
| even on ARM | 01/01/70 00:00 | |
| The timer simply increments | 01/01/70 00:00 | |
| bug | 01/01/70 00:00 | |
| more bugs | 01/01/70 00:00 | |
thanks | 01/01/70 00:00 |



