In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JimKueneman wrote: I have been struggling to come up with a plan of attack to code the SX28. Here are the requirements: 1) PWM: Constant Period, User definable Period with max period >25kHz (40us), user definable 127 or 255 step resolution 2) While the PWM is running need to search for an asynchronous pulse width encoded input data stream. A "1" is defined as a pulse 52us to 64us wide and a "0" is defined as a pulse 90us to 1000us wide. 3) once a command is detected in 2) the execution time the received command is not critical (though it does have a requirement to be ready to accept another command with a specific time frame the SX runs fast enough this should not be an issue) Any suggestion on how to attack this problem? Thanks, Jim ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=231402 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)