前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >TI C66x DSP 系统events及其应用 – 5.1(QM accumulator的配置)

TI C66x DSP 系统events及其应用 – 5.1(QM accumulator的配置)

作者头像
全栈程序员站长
发布2022-07-12 16:30:45
2930
发布2022-07-12 16:30:45
举报

大家好,又见面了,我是全栈君,祝每个程序员都可以多学几门语言。

以下解说在详细应用中,event与中断ISR的设置。以对QM的queue监控产生中断(不是EXCEP)为例,主要包含配置QM accumulator(用于监控QM queue)与配置ISR(ISR与event配置)。

首先介绍QM accumulator的配置,QM模块中QMSS(包括QMSS Tx queue 800:831,Tx/Rx channel 0:31,RxChan,TxChan,Tx queue是一一相应的,如Tx queue是806,那么相应的TxChan与RxChan编号都是6)用于CPU之间的通信,QMSS Rx queue能够配置为high priority queue(也能够配置general queue等),然后利用PDSP的 channel(0:31,该channel与分配给QM的chip-event是一一相应的,见QM user guide 5.2节)监控QMSS Rx queue,条件满足时,将会产生中断。QMSS的Tx queue是QMSS对外提供的唯一输入port(queue 800:831),当有descriptor PUSH到QMSS的Tx queue后,经过Tx channel与Rx channel后,将会将输出结果输出到配置给QMSS的Rx queue。

QM accumulator的配置主要包含QMSS Rx channel的使能(Rx channnel仅仅需使能就可以),Tx channel的使能与配置,Rx flow的配置,Tx Scheduler配置,PDSP监控的配置。本节先讲QMSS Rx channel,Tx channel的配置,Tx Scheduler的配置。PDSP监控的配置在5.2中解说。以Nyquist为例。

QMSS Rx channel配置:

confRegPtr = (void*)0x02a08800; /* Enable Rx Channel */ confRegPtr[channel].channelCtrlRegA = 0x80000000;//channel为QMSSTx queue相应的channel

QMSS Tx channel配置:

/* Configure Tx Channel */ confRegPtr[tmpChan].channelCtrlRegB = ((u32)filterEPI<<30)|((u32)filterPS<<29)|((u32)aifMode<<24);//filterEPI=filterPS=aifMode=0 /* Set channel priority */ if( prioRegPtr != GLO_NULL ) { prioRegPtr[tmpChan] = (u32)priority;//prioRegPtr=0x02a08c00(TX Scheduler Config). priority=1 } /* Enable Tx Channel */ confRegPtr[tmpChan].channelCtrlRegA = 0x80000000;

QMSS配置寄存器地址(infra1列,为Nyquist所用寄存器)例如以下:

TI C66x DSP 系统events及其应用 - 5.1(QM accumulator的配置)
TI C66x DSP 系统events及其应用 - 5.1(QM accumulator的配置)

Rx channel A寄存器:

TI C66x DSP 系统events及其应用 - 5.1(QM accumulator的配置)
TI C66x DSP 系统events及其应用 - 5.1(QM accumulator的配置)

Tx channel B寄存器(A寄存器与Rx channel同样):

TI C66x DSP 系统events及其应用 - 5.1(QM accumulator的配置)
TI C66x DSP 系统events及其应用 - 5.1(QM accumulator的配置)

Tx Scheduler寄存器:

TI C66x DSP 系统events及其应用 - 5.1(QM accumulator的配置)
TI C66x DSP 系统events及其应用 - 5.1(QM accumulator的配置)

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/118783.html原文链接:https://javaforall.cn

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2021年12月,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档