This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

c6474 aif 问题

Other Parts Discussed in Thread: TMS320C6474

// event gen 5
/** configure mask based trigger event to occur every 4 chips for EDMA x'fer (DSP ->
AIF outbound RAM) */
configMaskTrigger[14].timerUsed = CSL_FSYNC_RP3_TIMER;
configMaskTrigger[14].eventGenUsed = CSL_FSYNC_TRIGGER_GEN_5;
configMaskTrigger[14].mask.frameMask = 0;
configMaskTrigger[14].mask.slotMask = 0;
configMaskTrigger[14].mask.chipTerminalCountIndexMask = 0;
configMaskTrigger[14].mask.chipMask = 0x3;
configMaskTrigger[14].mask.sampleMask = 0xFF;
// lag of 8 chips between AIF write and EDMA read
configMaskTrigger[14].offset.slotOffset = 1;
configMaskTrigger[14].offset.chipTerminalCountIndex = 0;
configMaskTrigger[14].offset.chipOffset = 1;
configMaskTrigger[14].offset.sampleOffset = 0;
configMaskTrigger[14].compareValue.slotValue = 0;
configMaskTrigger[14].compareValue.chipValue = 9;
configMaskTrigger[14].compareValue.sampleValue = 0;

请告诉我下在上面这个程序里面compare值和offset值以及最后在EGM_compare寄存器中的值是什么关系?目前我调试DSP和FPGA的AIF接口,用的OBSAI协议,发送和接收状态正常,但是发送和接收的buffer有些数据对不上,请问delta为-700,pi值为750,我的帧同步模块那些参数怎么设置啊?谢谢