andrea benelli

MCF5211 output compare double pulse with shift.

Discussion created by andrea benelli on Jun 17, 2011
Latest reply on Jun 18, 2011 by TomE

Hi all,

 

 I need to generate one negative pulse of 10us and repeated (period) in 600us and another equal but with 30us of delay from the 1st.

I try with PWM without sucess because the shift is more then 0xff.

The idea is to use output compare and interrupt to toggle the state in the two different counter, one for the duty and one for the period. Really I'm lost in the register of MCF_GPT.

Did some have how to initialize GPT port to generate a pulse and control it under interrupt ?

 

Thank you in advance.

// Andrea

Outcomes