TI中文支持网
TI专业的中文技术问题搜集分享网站

关于DLOG_4ch.asm的问题

我在dlog_log.pdf文档里看到实例如下,但不知道怎样触发中断,仔细看了文档也没整明白,哪位大神能不能给我讲解下关于4-Channel Data Logging的使用,能给一些相关资料那是更好!

main(){dlog1.iptr1 = &Q15_var1; // Pass input to DATALOG moduledlog1.iptr2 = &Q15_var2; // Pass input to DATALOG moduledlog1.iptr3 = &Q15_var3; // Pass input to DATALOG moduledlog1.iptr4 = &Q15_var4; // Pass input to DATALOG moduledlog1.trig_value = 0x0; // Pass input to DATALOG moduledlog1.size = 0x400; // Pass input to DATALOG moduledlog1.prescalar = 1; // Pass input to DATALOG moduledlog1.init(dlog1); // Call init function for dlog1}void interrupt periodic_interrupt_isr(){dlog1.update(&dlog1); // Call update function for dlog1}

bkn1860:

链接仿真器运行上面的代码,在wiew—->Graph—–>Time/Freq…  中可以看dlog1.iptr1 ~dlog1.iptr4的值的变化,设置见附件。这个是ccs3.3里面的设置。

我在dlog_log.pdf文档里看到实例如下,但不知道怎样触发中断,仔细看了文档也没整明白,哪位大神能不能给我讲解下关于4-Channel Data Logging的使用,能给一些相关资料那是更好!

main(){dlog1.iptr1 = &Q15_var1; // Pass input to DATALOG moduledlog1.iptr2 = &Q15_var2; // Pass input to DATALOG moduledlog1.iptr3 = &Q15_var3; // Pass input to DATALOG moduledlog1.iptr4 = &Q15_var4; // Pass input to DATALOG moduledlog1.trig_value = 0x0; // Pass input to DATALOG moduledlog1.size = 0x400; // Pass input to DATALOG moduledlog1.prescalar = 1; // Pass input to DATALOG moduledlog1.init(dlog1); // Call init function for dlog1}void interrupt periodic_interrupt_isr(){dlog1.update(&dlog1); // Call update function for dlog1}

Mak he:

回复 bkn1860:

谢谢你的回答!

还是不太明白,我想问下,这个是主要用来查看波形变化的,那直接用wiew—->Graph—–>Time/Freq…也能达到这个目的,用DATALOG 是有什么好去呢,是使其能实时显示吗?如频率很大(100KHz也能实时吗)

我在dlog_log.pdf文档里看到实例如下,但不知道怎样触发中断,仔细看了文档也没整明白,哪位大神能不能给我讲解下关于4-Channel Data Logging的使用,能给一些相关资料那是更好!

main(){dlog1.iptr1 = &Q15_var1; // Pass input to DATALOG moduledlog1.iptr2 = &Q15_var2; // Pass input to DATALOG moduledlog1.iptr3 = &Q15_var3; // Pass input to DATALOG moduledlog1.iptr4 = &Q15_var4; // Pass input to DATALOG moduledlog1.trig_value = 0x0; // Pass input to DATALOG moduledlog1.size = 0x400; // Pass input to DATALOG moduledlog1.prescalar = 1; // Pass input to DATALOG moduledlog1.init(dlog1); // Call init function for dlog1}void interrupt periodic_interrupt_isr(){dlog1.update(&dlog1); // Call update function for dlog1}

Susan Yang:

回复 Mak he:

这个模块主要是用于查看变量的变化,在CCS的graph里面将变量波形描绘出来的。

关于其优点您可以参考附件文件内的说明

4300.data_log.pdf

The module definition is created as a data type. This makes it convenient to instance an interface to the DATALOG driver. To create multiple instances of the module simply declare variables of type DLOG_4CH.

赞(0)
未经允许不得转载:TI中文支持网 » 关于DLOG_4ch.asm的问题
分享到: 更多 (0)