LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

Ouput clock from LM3s8962

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 

0 Kudos
Message 1 of 3
(6,029 Views)

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

Message 2 of 3
(6,015 Views)

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 

0 Kudos
Message 3 of 3
(5,999 Views)