03-23-2010 05:55 PM
I am trying to run a motor from my LM3s8962 Board. I have a driver I want to run it with for power constraints but I can't seem to rap my head around how output a variable clock pulse from one of my GPIO ports. I have everything else ready to go and just need this last part. I read a post about how to do it on a blackfin but I don't have any examples I know of to do that with on the Luminary boards. Thanks
-Joel
03-24-2010 04:59 AM
Ypu should use a PWM output. There is a small "trick" to make the PWM work:
Stacked sequence:
1) PWM EIO node, wire something between 0 and 100 (duty cycle) to the EIO node
2) PWM EIO property node - setup the frequency and any other things you might need
3) main program loop, also include a PWM EIO node with duty cycle setting
It's quite counter-intuitive to first start, then setup the PWM, but it won't work otherwise (you can check out the thread I started in this forum for details).
Paul
03-24-2010 05:56 PM
Thanks for the help, it dawned on me after to just use PWM. I understand what you are saying but I can't get a property node for the EIO. I can do it on other controls, but it doesn't give me the option when I right click the EIO. and I do need to be able to vary the frequency.
Thanks