AnsweredAssumed Answered

problem writing to etpu hsrr register

Question asked by Vrushali Taklikar on Jul 20, 2017
Latest reply on Jul 25, 2017 by David Tosenovjan

Hi,

 

I am configuring etpu_a channel 0 for pwm generation.

 

I have downloaded the etpu pwm apis, however in function fs_etpu_pwm_init

int32_t fs_etpu_pwm_init( uint8_t channel, uint8_t priority, uint32_t freq,
uint16_t duty, uint8_t polarity, uint8_t timebase, uint32_t timebase_freq)
{
uint32_t *pba; /* parameter base address for channel */
uint32_t chan_period;

 

......

 

/* write hsr to start channel running */
eTPU->CHAN[channel].HSRR.R = FS_ETPU_PWM_INIT;

return(0);
}

not able to write anything in HSRR register.

 

I am using basic etpu generation code and example only.

 

Any suggestion???

 

Regards

Vrushali

Outcomes