??? 09/16/04 11:27 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#77484 - Avoid USING ! Responding to: ???'s previous message |
Only in very rarely cases the "using" statement on interrupts causes smaller and faster code, but mostly the opposite.
Remove all "using" statements ! Because it can causes crashes, if subroutines called with a different register bank usage. And some times it can occur, that hidden subroutines are called. Only if it runs fine, than you can check, if "using" can cause some very little improvements. Writing handlers for unused interrupts make absolutely no sense, because all these are disabled after every reset. So triggering of unused interrupts can only point out two things: - the reset was done wrong - the chip was damaged or buggy And both can only be solved by throwing away the corrupt hardware. Any software can not repair faulty hardware !!! Peter |