关于dsp5509软件编程时遇到的问题
时间:10-02
整理:3721RD
点击:
采集声信号时怎么在定时器里修改参数
void INTR_init( void )
{
PC55XX_MMR pMMR = (PC55XX_MMR)C55XX_MMR_ADDR;
Write(pMMR->ivpd,0xd0);
Write(pMMR->ivph,0xd0);
Write(pMMR->ier0,0x10);
Write(pMMR->dbier0,0x10);
Write(pMMR->ifr0,0xffff);
asm(" BCLR INTM");
}
void TIMER_init(void)
{
PC55XX_TIMER pTIMER = (PC55XX_TIMER)C55XX_TIM0_ADDR;//4K
Write(pTIMER->tim,0); // Timer register
Write(pTIMER->prd,0x8CA0); // Timer period register
Write(pTIMER->tcr,0x00E0); // Timer control register
Write(pTIMER->prsc,0); // Timer prescaler register
}
这块怎么去修改频率参数