In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Dunnsept wrote: OK. thanks. I read the assembly book section about calculating the return value (the nc-7 stuff) I was mainly wondering 'how do you know when your ISR code is getting too big' soooo.... how did you figure that the return 250 and tix = 125 is more accurate than tix=200 and return 156? counting cycles or what? I kinda figured after the fact that I should put the code in the main, but the SX/B example for the clock has the update routines in the ISR, that's where I was getting confused about how much code I can add to my ISR before I have to worry about the timing. Brings up the other part, to figure the cycles for my ISR in SX/B is it best to go look at the output or can I say something like "ok, high rc.7 will take 2 cycles" or whatever it really is. Paul... ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=121632#m121671 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)