In SX Microcontrollers, SX/B Compiler and SX-Key Tool, rodneymc wrote: Excellent, glad we can help, and I hope it's finally working for you. If not, post your results, and me or someone will help out with the code. I was about to give it a try to get it working for you. Also your counters are less than a byte, so you really don't have to use words. The code was based on the midi baud rate using a 200 cycle time. if that is all what your doing with you interrupt, you can reduce the cycles, increasing your frequency accuracy. Just make sure you update your calcuatios to reflect, and note the RTCC overflows. If you approach in this way, you can do # cycle counts or you can cheat by using the SxSim, and check mark the Check RTCC box. if you don't get an error message for a while, you're good to go. Your next assignement is to duplicate caller id :o) ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=448362#m450399 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2010 (http://www.dotNetBB.com)