Sign in

username:

password:



Not a member?

Search motoroladsp



Search tips

Subscribe to motoroladsp



motoroladsp by Keywords

56303 | 563xx | 5680 | 56805 | 5680x | 56F80 | 56F800DEMO | 56F805 | 56f807 | 56F830 | ADC | Bootloader | Codec | CodeWarrior | CW5 | CW6 | Debugger | DSP56303 | DSP56303EVM | DSP563xx | DSP5680 | DSP56800 | DSP56807 | DSP56858 | DSP56858EVM | DSP56F803 | DSP56F805 | DSP56F807 | DSP56F80x | DSP56F826 | DSP56F827 | DSP56F8xx | EVM | FFT | Flash_over_jtag | GPIO | Interrupt | Interrupts | JTAG | LCD | Linker | MCF5307 | Metrowerks | Modulus | MSCAN | PCMaster | PWM | Quad | Rif | RTOS | SDK | SPI

Discussion Groups

Discussion Groups | Freescale DSPs | Application brief BR1544/D

Technical discussions about Freescale (Motorola) DSPs (including the DSP56000, DSP56300, DSP56600, 56800 DSPs).

  

Post a new Thread

Application brief BR1544/D - Roelof Oelofsen - Feb 12 8:20:00 2002



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 then whenever the
PWM Value is greater than or equal to the PWM Modulus, the output of the
PWM will be 0 permanently (which makes sense).
When using above formula, the PWM value will always be more than the
PWM modulus except when the input data samples = 0. (The input data
samples is from a audio CODEC which have a 16 bit resolution). Obviously
I am reading the formula incorrectly. Can someone please shed more light
on this subject for me.

Thank you in advance...

Roelof Oelofsen
Telkom Development Laboratory
Telkom SA






(You need to be a member of motoroladsp -- send a blank email to motoroladsp-subscribe@yahoogroups.com )

RE: Application brief BR1544/D - Johnson, Jerry - Feb 13 14:31:00 2002

Using fractional math, if the input data sample is a FRACT16 number, the
formula holds true. I believe you will want to deal with the sign of the
sample separately, as to which output to enable.

-----Original Message-----
From: Roelof Oelofsen [mailto:]
Sent: Tuesday, February 12, 2002 2:21 AM
To:
Subject: [motoroladsp] Application brief BR1544/D 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 then whenever the
PWM Value is greater than or equal to the PWM Modulus, the output of the
PWM will be 0 permanently (which makes sense).
When using above formula, the PWM value will always be more than the
PWM modulus except when the input data samples = 0. (The input data
samples is from a audio CODEC which have a 16 bit resolution). Obviously
I am reading the formula incorrectly. Can someone please shed more light
on this subject for me.

Thank you in advance...

Roelof Oelofsen
Telkom Development Laboratory
Telkom SA

_____________________________________
/groups.php3
<http://www.dsprelated.com/groups.php3 > .




(You need to be a member of motoroladsp -- send a blank email to motoroladsp-subscribe@yahoogroups.com )

RE: Application brief BR1544/D - Roelof Oelofsen - Feb 14 5:58:00 2002

Thank you, Jerry (It is Jerry I assume?) It's much clearer now.
There is another problem though. If I have a PWM output stage switching
at 1Mhz, the maximum resolution will be 40 if you use an 56807 running
at 40MIPS. Am I correct?

Thanks again

Roelof Oelofsen
Telkom Development Laboratories
Telkom SA

>>> "Johnson, Jerry" <> 02/13/02 04:31PM >>>
Using fractional math, if the input data sample is a FRACT16 number,
the
formula holds true. I believe you will want to deal with the sign of
the
sample separately, as to which output to enable.

-----Original Message-----
From: Roelof Oelofsen [mailto:]
Sent: Tuesday, February 12, 2002 2:21 AM
To:
Subject: [motoroladsp] Application brief BR1544/D 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 then whenever the
PWM Value is greater than or equal to the PWM Modulus, the output of
the
PWM will be 0 permanently (which makes sense).
When using above formula, the PWM value will always be more than the
PWM modulus except when the input data samples = 0. (The input data
samples is from a audio CODEC which have a 16 bit resolution).
Obviously
I am reading the formula incorrectly. Can someone please shed more
light
on this subject for me.

Thank you in advance...

Roelof Oelofsen
Telkom Development Laboratory
Telkom SA

_____________________________________
/groups.php3
<http://www.dsprelated.com/groups.php3 > .




(You need to be a member of motoroladsp -- send a blank email to motoroladsp-subscribe@yahoogroups.com )