In SX Microcontrollers, SX/B Compiler and SX-Key Tool, robotworkshop wrote: Well, I think I may have this working now! It seems that there were a couple of things going one. Adding this little section of assembly code at the beginning of my program seems to have masked any Interrupts from coming from TIMER1 as I expected it should: ASM MOV W,#$07 ' Select read register T1CNTA MOV M,W MOV !RB,W ' (Use !RC for T2) AND W,#$DA ' Clear bits 5, 2, and 0 MOV wrkVar,W ' move to temp variable MOV W,#$17 ' Select write register T1CNTA MOV M,W MOV W,wrkVar MOV !RB,W ' Write out the new value to config register (Use !RC for T2) ENDASM I need to do some more testing but it appears that this issue may be fixed. One thing that was causing me problems during testing is that I would download new code and just RESET the board. Now, I always power cycle the board after sending down new code. Now, I can start working on the rest of the program. It would be cool to hear if anyone else can confirm these results. Robert ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=251534#m252583 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)