Re: PWM1 & PWM3 synchrounization problem of F2118 DSP!!
- From: "MSAD" <mdahidah@xxxxxxxxx>
- Date: Mon, 20 Feb 2006 20:16:50 -0600
MSAD wrote:course
Dear all,
Good day!!
I am setting COMPR1 and COMPR2 to produce two variable-duty cycle PWM
signals. although both signals are having the same period etc. (off
onwith different compare values). However, unfortunetly, what I am having
otherthe Oscelliscope is that one signal is travelling with respect to
withone.
on the other hand, if i use the same table (compare values) for both
COMPR1 and COMPR2 then both signals will be in sync. (tied to each
other).
hence, I can't really understand what makes one of them travelling
samerespect to the other since both of them are using the same timer1 and
period ,,, etc.If you're going to mention specific registers you should specify what
any comments/ suggestions would be greatly appreciated
kindes regards
MSAD
processor you're using.
Since I have no idea what processor you're using I cannot be specific,
so here's some questions you can ask yourself.
* Are they really tied to one timer? Double check that manual!
* Is the timer a period register, or is this something perverse like
the Motorola (Freescale) 68HC11 where the timer always free runs
and the compare has to be jiggered in software?
* Some more advanced PWM generators will drive the timer in a triangle
wave, so the resulting PWM will be symmetrical around the peaks of
the triangle; this will result in PWM outputs that are centered on
each other, but who's edges are not synchronous.
* If you run the compares with different values for a while then go
back, to they become synchronous again?
--
Tim Wescott
Wescott Design Services
http://www.wescottdesign.com
Posting from Google? See http://cfaj.freeshell.org/google/
thank you Tim for your concern, I really forgot to mentioned that I am
using F2118 DSP board. what I am doing is that setting COMPR1 and COMPR2
to generate a variable duty cycle PWM signals, and furthermore, the ISR is
trigrred whenever the period expired or compare is matched so that a new
value will be reloaded to the compare registers.... and for that I am
using the same timer GPTIMERA, so that both signals share the same timer
and have the same period etc. the only difference is that the compare
values as to generate different PWM pattern.
my problem now is that one signal is traveling with respect to the other,
however, if I reload both signals by the same compare values then I can
see they are tied to each other....I can't really understand what went
wrong??
regards
.
- References:
- PWM1 & PWM3 synchrounization problem!!
- From: MSAD
- Re: PWM1 & PWM3 synchrounization problem!!
- From: Tim Wescott
- PWM1 & PWM3 synchrounization problem!!
- Prev by Date: Re: Is White Noise Necessarily Zero-Mean?
- Next by Date: Re: Basic (Analog) Signal Processing Question
- Previous by thread: Re: PWM1 & PWM3 synchrounization problem!!
- Next by thread: correlation
- Index(es):
Relevant Pages
|