是否有一个命令可以生成同一行代码的“X”迭代次数?我有几个案例,我想解开一组8行长(200次)的代码。这是一个麻烦,有200组8行(1600行)的内联代码。我最终使用了200行代码调用宏(有8行),但是仍然有很多代码需要滚动,尤其是当有多个部分需要不同的集合时。然后汇编程序生成200组这个宏。有什么想法(除了创建一个单独的.inc/.s文件)吗?谢谢!
2020-03-05 06:55
我想让这个函数在XC8中工作。我对C还不是很好,但是我明白我需要做什么。它发送了第七个(最左边的?)位,然后将剩下的剩余位全部移位并重复,直到字节被发送。定时要求要求数据以这种方式发送。有更有效的方法吗?内联空SDENTEL字节(无符号char字节){for(unChar char位元=0;位& lt;8;位++){sEndoBIT(位读(字节,7));字节& lt;& lt;=1;} 以上来自于百度翻译 以下为原文I am trying to get this function to work in XC8. I am not that good with C yet but I understand what I need to do.It sends the 7th (Left Most?) bit and then shifts all of the remaining bits left and repeats until the byte is sent. Timing requirements require the data to be sent this way. Is there a more efficient way? inline void sendByte( unsigned char byte ) { for( unsigned char bit = 0 ; bit < 8 ; bit++ ) { sendBit( bitRead( byte , 7 ) ); byte
2019-01-11 09:17
如何使用嵌入式中断?
2021-11-30 07:00
ARM数据类型有哪些?GNU ARM汇编语法格式是什么?
2021-11-30 06:09