完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
本帖最后由 一只耳朵怪 于 2018-6-7 15:14 编辑
Cla1Regs.MMEMCFG.bit.RAM0CPUE=1; 怎么无法将这个寄存器设为1啊 我初始化设置CLA寄存器 用表达式观察窗口或存储器地址访问窗口观察 这位总是0 我想在cpu也访问CLA ramp0 感觉这条指令不起作用 且也加了EALLOW 指令了 |
|
相关推荐
5个回答
|
|
楼主参考一下下面这个历程:
C:ticontrolSUITEdevice_supportf2806xv130F2806x_examplescla_adc_fir_flash void init_cla() [ // // This code assumes the CLA clock is already enabled in // the call to InitSysCtrl(); // // EALLOW: is needed to write to EALLOW protected registers // EDIS: is needed to disable write to EALLOW protected registers // // Initalize the interrupt vectors for Task 7 (CLA FIR Filter) // and for Task 8 (FIR filter initalization) // // The symbols used in this calculation are defined in the CLA // assembly code and in the CLAShared.h header file // EALLOW; Cla1Regs.MVECT7 = (Uint16) (&Cla1Task7 - &Cla1Prog_Start)*sizeof(Uint32); Cla1Regs.MVECT8 = (Uint16) (&Cla1Task8 - &Cla1Prog_Start)*sizeof(Uint32); // // Task 7 has the option to be started by either EPWM7_INT or ADCINT7 // In this case we will allow ADCINT7 to start CLA Task 7 // Cla1Regs.MPISRCSEL1.bit.PERINT7SEL = CLA_INT7_ADCINT7; // // Copy the CLA program code from its load address to the CLA program memory // Once done, assign the program memory to the CLA // // Make sure there are at least two SYSCLKOUT cycles between assigning // the memory to the CLA and when an interrupt comes in // memcpy(&Cla1funcsRunStart, &Cla1funcsLoadStart, (Uint32)&Cla1funcsLoadSize); Cla1Regs.MMEMCFG.bit.PROGE = 1; // // Enable the IACK instruction to start a task // Enable the CLA interrupt 8 and interrupt 7 // Cla1Regs.MCTL.bit.IACKE = 1; Cla1Regs.MIER.all = (M_INT8 | M_INT7); // // Force CLA task 8 using the IACK instruction // Task 8 will initalize the filter input delay // line to zero (X[0] - X[4]). // // No need to wait, the task will finish by the time // we configure the ePWM and ADC modules // Cla1ForceTask8(); ] 如果您认为此问题已被解答,请在“这是否解答您的问题” 后,点击“是”按钮! 谢谢您的合作! |
|
|
|
请确保当你查看时,在debug视图下的焦点(也就是你的光标)是在CLA内核上而不是在C28x上。
If a post answers your question, please mark it with the "verify answer" button. |
|
|
|
这一位是可读可写的,不应该写不进去啊!您用Expression看的时候是realtime模式么?
您可以在程序中做判断,比如如果这个位设置为1了,那么某个IO口拉高。。 Young Hu |
|
|
|
Arttronix 发表于 2018-6-7 07:31 这是在初始化执行的程序 我设了断点 单步执行后 通过Expression和Memory直接对寄存器地址中的内容进行观察 就是写不进去 |
|
|
|
CLA Enable了么? 要在Configuration中允许CLA 功能。 如果您认为此问题已被解答,请在“这是否解答您的问题” 后,点击“是”按钮! 谢谢您的合作! |
|
|
|
只有小组成员才能发言,加入小组>>
586 浏览 1 评论
427 浏览 1 评论
620 浏览 2 评论
NA555DR VCC最低电压需要在5V供电,为什么用3.3V供电搭了个单稳态触发器也使用正常?
910 浏览 3 评论
MSP430F249TPMR出现高温存储后失效了的情况,怎么解决?
709 浏览 1 评论
AT32F407在USART2 DMA发送数据时,接包接到了要发送的数据,程序还是处于等待传输完成的标识判断中,为什么?
193浏览 29评论
1157浏览 23评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
323浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
286浏览 14评论
两个TMP117传感器一个可以正常读取温度值,一个读取的值一直是0,为什么?
135浏览 13评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-2-4 10:52 , Processed in 0.721306 second(s), Total 51, Slave 46 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号