DSPRelated.com
Forums

8013 PWM clock rate

Started by haoyeshen December 11, 2005
Hi: I am developing a software using 8013 by using the CodeWarrior 7.2.
I need to set the PWM clock rate to 3 times of the system clock in
order to increase the output bandwidth/resolution. I know that this
has to be done by setting the PCR bit in SIM_GPS register. However,
I can't find a place anywhere in the bean inspector to make such
setting. In Peripheral Initialization window, I can see the initial
settings for the SIM_GPS register, but I can't change its value. Is
this mean that I have to write my own code to set SIM_GPS register?

Also, same thing for PWM center-aligned vs. edge-aligned. Is there a
place anywhere in Bean Inspector where I could make the selection? Please kindly inform and thanks for the help. Shen


If you update you PE to the latest version, you will
be able to set 3x clock in PWM initilization bean.

Charlie

--- haoyeshen <haoyeshen@haoy...> wrote:

> Hi: > I am developing a software using 8013 by using the
> CodeWarrior 7.2.
> I need to set the PWM clock rate to 3 times of the
> system clock in
> order to increase the output bandwidth/resolution. I
> know that this
> has to be done by setting the PCR bit in SIM_GPS
> register. However,
> I can't find a place anywhere in the bean inspector
> to make such
> setting. In Peripheral Initialization window, I can
> see the initial
> settings for the SIM_GPS register, but I can't
> change its value. Is
> this mean that I have to write my own code to set
> SIM_GPS register?
>
> Also, same thing for PWM center-aligned vs.
> edge-aligned. Is there a
> place anywhere in Bean Inspector where I could make
> the selection? > Please kindly inform and thanks for the help. > Shen >


__________________________________________________




I don't know which bean do you use. There are three pwm beans
available: PWM, PWMMC and Init_PWM.

Anyway, the 3x system clock prescaler option is available in PWMMC and
Init_PWM. But if you would like to use methods and events to control
the PWMMC device, use the bean PWMMC, the Init_PWM is only for
initialization of the peripheral.

In the bean inspector press Expert button to switch into the expert
mode and it contains the property 'PWM clock rate' with the option
'PWM_3x_System_clock'.

You should have installed all patched for the Processor Expert 2.96
(which is present in CodeWarrrior 7.2). The patches are available on
the PE web:
http://www.processorexpert.com/support/56800/updates
You should install the patches sequentialy from patch03 upwards.
best regards
Petr Hradsky
Processor Expert Support Team
UNIS --- In motoroladsp@moto..., "haoyeshen" <haoyeshen@y...> wrote:
>
> Hi: > I am developing a software using 8013 by using the CodeWarrior 7.2.
> I need to set the PWM clock rate to 3 times of the system clock in
> order to increase the output bandwidth/resolution. I know that this
> has to be done by setting the PCR bit in SIM_GPS register. However,
> I can't find a place anywhere in the bean inspector to make such
> setting. In Peripheral Initialization window, I can see the initial
> settings for the SIM_GPS register, but I can't change its value. Is
> this mean that I have to write my own code to set SIM_GPS register?
>
> Also, same thing for PWM center-aligned vs. edge-aligned. Is there a
> place anywhere in Bean Inspector where I could make the selection? > Please kindly inform and thanks for the help. > Shen
>