In SX Microcontrollers, SX/B Compiler and SX-Key Tool, g_daubach wrote: Eric, have a look at this spec list for a DC motor controller: - PWM-control three full H-bridge power drivers for DC motors - Allow for reversing the motor's direction of rotation - Receive commands, and send status information via I²C - Monitor the status of reference and end-position sensors for all three motors - Count tacho pulses generated by the motors, and stop them when the requested target position has been reached - Check for over-current on the three motor supply lines - Check for "blocked" conditions, i.e. a motor is supposed to turn but no tacho pulses are generated - Check for "master-timeouts", i.e. no status information requested by the I²C master within a certain period of time - Do a "soft start", i.e. slowly increase the motor PWM signal's duty cycle from 0% up to the requested value - Drive an LED indicating the current status of the module I could implement all these features using an SX28 with its program memory limited to 2 kWords, and the available RAM space. I still have some free memory left for more features. I must admit, this was the most challenging project I ever did with an SX28 but it turned out to work w/o problems. In the meantime, I could produce and sell more than 300 of these controllers to one of my customers. I also have some PIC background (Atmel and other controllers as well) but I really like the SX because of its speed and flexibility. I'm pretty sure, you'll like it as well, so welcome to the club :-) . ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=88795#m88839 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)