In order to solve the problem of time consuming in the process of queue entry and queue exit,this paper proposes a method of bit-sum operation,which greatly reduces the time consuming in queue entry and queue exit.In view of the low efficiency of using single byte mode when writing and reading data in batch,this paper proposes a way to read and write multiple bytes in a queue at one time.The actual test shows that the proposed method is less time-consuming and more efficient.
Key words
ring queue /
MCU /
embedded system
{{custom_sec.title}}
{{custom_sec.title}}
{{custom_sec.content}}
References
[1] 严蔚敏.数据结构(C语言版)[M].北京:清华大学出版社,2007.
[2] Kenneth A Reek. Pointers on C[M].徐波,译.北京:人民邮电出版社,2017.
[3] 李精华.微机原理与单片机接口技术[M].北京:电子工业出版社,2018.
[4] 张淑清.嵌入式单片机STM32原理及应用[M].北京:机械工业出版社,2019.