Signal Generation / Timers
Posted: Tue May 10, 2011 1:15 pm
Hello,
I need to create a pulsed signal 10 microseconds long, but at a frequency of 5kHz ( T=200 microseconds).
I don't think it's possible with the PWM. At least, not if I've understood the manual. I was thinking that, instead, I would use two timers to make this signal. One timer would drive the underlying frequency, and it will generate an interrupt, and in the interrupt, I set the outpin of the other timer to the high state (e.g.) and have that timer in the 'toggle output' mode so that it would switch it back off when the second timer terminates.
Is there a better idea?
MOD 5272, Eval Kit V1.12
Thanks,
Dan B.
I need to create a pulsed signal 10 microseconds long, but at a frequency of 5kHz ( T=200 microseconds).
I don't think it's possible with the PWM. At least, not if I've understood the manual. I was thinking that, instead, I would use two timers to make this signal. One timer would drive the underlying frequency, and it will generate an interrupt, and in the interrupt, I set the outpin of the other timer to the high state (e.g.) and have that timer in the 'toggle output' mode so that it would switch it back off when the second timer terminates.
Is there a better idea?
MOD 5272, Eval Kit V1.12
Thanks,
Dan B.