modulus (%) affects interrupts?

Started by Corey, Rick in Freescale DSPs16 years ago 19 replies

Hi Can anyone imagine a way that a modulus operator (%) in the main loop could slow down an ISR? I'm stumped. There's a...

Hi Can anyone imagine a way that a modulus operator (%) in the main loop could slow down an ISR? I'm stumped. There's a lot of "div"s in the library function, and two "rtsd"s . I'm using the 6.0.2 CW for 56800E (568357). I turned on Processor Expert


Application brief BR1544/D

Started by Roelof Oelofsen in Freescale DSPs18 years ago 2 replies

Hi all, In the motorola app. brief to design a class D amplifier, the author states that to work out the PWM value register,...

Hi all, In the motorola app. brief to design a class D amplifier, the author states that to work out the PWM value register, the following formula applies: PWM Value = (Input Data Sample) x (PWM Modulus) However, in the 56f80x user's manual, it is stated th


RE: RE: #pragma interrupt / modulus (%) affects int errupts?

Started by Wim de Haan in Freescale DSPs16 years ago

Hi William, I think, there is a slip of your keyboard. It must be: In the DSP56800 family: JSR pushes PC & SR on the...

Hi William, I think, there is a slip of your keyboard. It must be: In the DSP56800 family: JSR pushes PC & SR on the stack. RTS pops SR & PC from the stack, restores PC but discards SR from stack (so SR remains unchanged). RTI pops SR & PC from t


New version of my DSP synth

Started by Paul Maddox in Freescale DSPs16 years ago

Dear all, A new version is up, along with a couple of demos... LFO is now routable to all three oscillators and I've made a...

Dear all, A new version is up, along with a couple of demos... LFO is now routable to all three oscillators and I've made a couple of minor changes to the filter. It now sounds a better (at least to me). http


RE: [Bulk E-Mail] RE: RE: modulus (%) affects inte rrupts?

Started by Ebersman, Howard in Freescale DSPs16 years ago

If you use up all available processing power, which can happen very quickly if you use frequent library calls, strange things...

If you use up all available processing power, which can happen very quickly if you use frequent library calls, strange things often happen in your code.