In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bennettdan wrote: Could I do something like this? 32hz, 61hz, and 292hz INTERRUPT 74752 INC pwmCnt32hz If pwmCnt32hz = 8192 THEN pwmCnt32hz = 0 ELSE pwmCnt32hz > pwmValue32hz THEN 32hzpwmPin = 0 ELSE 32hzpwmPin = 1 ENDIF INC pwmCnt61hz IF pwmCnt61hz = 15616 THEN pwmCnt61hz = 0 ELSE pwCnt61hz > pwmValue61hz THEN 61hzpwmPin =0 ELSE 61hzpwmPin = 1 ENDIF INC pwmCnt292hz IF pwmCnt292hz = 74752 THEN pwmCnt292hz = 0 ELSE pwCnt292hz > pwmValue292hz THEN 292hzpwmPin =0 ELSE 292hzpwmPin = 1 ENDIF RETURNINT ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=192079#m196260 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)