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.

TMS320F28034: GPIO口翻转速度和asm(" NOP");延时问题

Part Number: TMS320F28034


F28034,驱动IO控制WS2812B芯片。晶振使用内部INTOSC1倍频到50M,增加一条asm(" NOP");语句,大概增加了300ns左右的时间,理论上不是50M时钟对应的20ns吗?

图片中第一个高电平时间执行了两条asm(" NOP");,第二个高电平时间执行了三条asm(" NOP");。GPAQSEL1寄存器配置为异步。我想知道asm(" NOP");延时为什么不是时钟周期,或者有没有其他更精准延时方法。