In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Peter Van der Zee wrote: Hi All; Sparks, as you know, my approach to things is through assembler rather than SX/B, as it gives me the greatest flexibility, albeit at a considerable cost in time to write and debug the code as compared to SX/B. That said, I would offer that the tasks datacps is attempting are easily within reach.... bordering on simple with my approach, especially if a co-operative RTOS is employed. I would bet not even 10% of the processor would be consumed by the application... seperate of the RTOS that is. In that approach, I would want to disagree with you totally that (almost) everyting should be done in the ISR...... my belief is that almost nothing but tick counting should be done in the ISR. But with SX/B things are a little different as currently it does not support multi-tasking, so to get around that, perhaps your suggestion has merit. My point here is to broaden the readers' view to realize that there are more ways, perhaps many ways, to effect this project, each with their own advantages and disadvantages, and the statement about what to do in the ISR is a matter of approach, and does not hold for all cases. Cheers, Peter (pjv) ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=226156#m228522 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)