In SX Microcontrollers, SX/B Compiler and SX-Key Tool, electronic wrote: Hi Peter and Bean I expect that assembling these secret SX instuctions will require manual assembly of the final code by replacing inserted 'nop' instructions with the required secret POP/PUSH code bytes. Plenty of chances to make silly mistakes! I will experiment with this method and report if it is sucessful. The main pulse generator program itself is nothing special at all, just standard practice; i.e. a simple closed loop containing two time delay sections seperated by output port write instructions copied from an old Z80 program I wrote back in the 1980's . My efforts to use the interrupt routine are solely to remove the extra time in the loop required to check the keys for user input. If the interrupt routine method is unworkable I will just revert to checking the keys inside the loop. This will result in a pulse generator with wider minimum pulse width and lower maximum PRF. In practice this may not be a big problem for a general purpose pulse generator product. Best regards electronic ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=162350#m162468 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)