Part Number: TDA4VM
I want to use the timerio function of timer to do the fsync signal of camera. Currently, the pwm of timer8 in the main domain is configured. The configuration signal comes out from timerio4, but the actual test signal does not come out with pwm waveform.
The time sequence is configured according to the time sequence requirements in the TRM manual
void timer_init()
{
//SET TCLR[1]AR
//SET TCLR[6]CE
TIMERModeConfigure(CSL_TIMER8_CFG_BASE, TIMER_AUTORLD_CMP_ENABLE);
TIMERPreScalerClkEnable(CSL_TIMER8_CFG_BASE, 0x2c); //PTV:3
//SET TCLR[11-10] TRG
TIMERTRGModeSet(CSL_TIMER8_CFG_BASE, TIMER_TCLR_TRG_TRG_VALUE_0X2);
//SET TCLR[12] PT
TIMERPTModeSet(CSL_TIMER8_CFG_BASE, TIMER_TCLR_PT_PT_VALUE_0);
TIMERGPOConfigure(CSL_TIMER8_CFG_BASE, TIMER_GPO_CFG_0); //PWM out
// SET TCLR[7] SCPWM
TIMERSCPWMSet(CSL_TIMER8_CFG_BASE,TIMER_TCLR_SCPWM_SCPWM_VALUE_1);
TIMERCounterSet(CSL_TIMER8_CFG_BASE, 0xFFFE488B);
TIMERReloadSet(CSL_TIMER8_CFG_BASE, 0xFFFE488B); //27M 0xFFFF488B 56250
TIMERCompareSet(CSL_TIMER8_CFG_BASE, 0xFFFF2445);
// SET TCLR[6] CE
TIMEREnable(CSL_TIMER8_CFG_BASE);
}
void timer_io_mux_set()
{
//在ctrl mmr中配置pinmux,配置定时器对应的pwm脚
CSL_REG32_WR(CSL_CTRL_MMR0_CFG0_BASE + 0x4290, 0x8); //main_timerio4 driver by timer8
CSL_REG32_WR(CSL_CTRL_MMR0_CFG0_BASE + 0x4294, 0x8); //main_timerio5
}
The value of register 0x02480038 is read as 0x8EF
The value of register 0x00104290 is 0x08
Would you please help ti experts to see where the configuration is wrong, resulting in PWM waveform can not come out
The value of register 0x00104290 is 0x08
Would you please help ti experts to see where the configuration is wrong, resulting in PWM waveform can not come out