阅读:1548回复:0
GPIFWSELECT如何理解
各位好,一个简单的问题:
使用68013的gpif.用gpif designer设计和map好图形,生成gpif.c后.如何指定触发哪一个waveform? 看例子,只使用了gpiftiger开始触发波形,但没有看到究竟如何选择触发哪个波形.应该是用gpifwfselect吧,但看附录里的描述,它仅仅是把4个波形起一个索引号的作用.翻看了一下寄存器和例子,没看出来哪个寄存器是选择触发waveform的作用. 附: cy7c68013 TRM里关于gpifwfselect的描述如下: Bit 7-6 SINGLEWR1:0 Single Write Waveform Index Index to the Waveform Program to run when a “Single Write” is triggered by the firmware. ........ Bit 1-0 FIFORD1:0 FIFO Read Waveform Index Index to the Waveform Program to run when a “FIFO Read” is triggered by the firmware. Select waveform 0 [00], 1 [01], 2 [10] or 3 [11]. |
|
|