Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/01/05 23:29
Read: times


 
#86332 - The rare case
Responding to: ???'s previous message
I am afraid, that the nature of problem/program is what matters here, rather than the expertise of the programmer - as far as he/she is able to make the judgement. The occurence of problems where usage of this technique is appropriate is so rare...

Incidentally, one of such has been discussed recently on a related czech mailing list (hw-list@list.hw.cz), where a simple DSO was made from a mcu (a PIC, but that's really not the point). To achieve the highest possible sampling rate, the author made an unrolled, loooong sampling sequence with no testing for trigger or sample counter/pointer testing etc, just acquiring a sample and storing it using an autoincremented pointer. The trick was, a trigger event started a timer, expiring which caused an interrupt, and return from the isr was to outside the sampling sequence. Here, this technique is - I think - fully justified: the "main" here makes no calls nor pushes, no other interrupts are enabled, and the trick is employed to achieve functionality which is impossible by other means.

Jan Waclawek

Jan Waclawek

List of 14 messages in thread
TopicAuthorDate
Hanging Up My 8051?            01/01/70 00:00      
   an ISR returns to where it happened            01/01/70 00:00      
      correction            01/01/70 00:00      
      Re:hanging up my 8051.            01/01/70 00:00      
         no such assumption            01/01/70 00:00      
   2 things            01/01/70 00:00      
      experience is not everything!            01/01/70 00:00      
         somebody like you!            01/01/70 00:00      
   If you know exactly what you do...            01/01/70 00:00      
      he is going to do it            01/01/70 00:00      
         The rare case            01/01/70 00:00      
   bad things            01/01/70 00:00      
      On reloading default (e.g. SP)            01/01/70 00:00      
      Thanks Oleg            01/01/70 00:00      

Back to Subject List