cancel
Showing results for 
Search instead for 
Did you mean: 

Generate PWM signal+ Timer

agiddari_58
Associate II
Posted on March 10, 2009 at 09:42

Generate PWM signal+ Timer

2 REPLIES 2
agiddari_58
Associate II
Posted on May 17, 2011 at 09:58

Hi everybody,

I am a newbie and I am working on a STR912 development board.

I want to generate a PWM signal with a 10 pulse wave. (T1 to T10)

The wave period is constant whatever the message and the gap between 2 pulses is constant as well.

A longer pulse means the beginning of the signal which has a constant period.

Each pulse lenght is loaded depanding the message to send. (Each value is loaded from an array)

I manage to generate a PWM signal with a constant duty signal. I can not figure out how to change each pulse length independently. I think I have some difficulties with interrupts management.

Can someone please HELP !

Thanks a lot.

Jimmy

agiddari_58
Associate II
Posted on May 17, 2011 at 09:58

Hi everybody,

I manage to generate correctly interrupts but I still can not figure out how to generate 10 pulses with different pulse length (same gap between each pulse), this every 50ms for example.

I need to use 2 timers, one for the full period and one to generate each pulse. (signal output: pin 5 of GPIO6)

please someone can help...

regards,

Jimmy