Improvement of Ring Queue Remainder Calculation in MCU

Liang Fengtao

Integrated Circuits and Embedded Systems ›› 2023, Vol. 23 ›› Issue (9) : 65-66.

PDF(915 KB)
PDF(915 KB)
Integrated Circuits and Embedded Systems ›› 2023, Vol. 23 ›› Issue (9) : 65-66.
NEW PRODUCT & TECH

Improvement of Ring Queue Remainder Calculation in MCU

  • Liang Fengtao
Author information +
History +

Abstract

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

Cite this article

Download Citations
Liang Fengtao. Improvement of Ring Queue Remainder Calculation in MCU[J]. Integrated Circuits and Embedded Systems. 2023, 23(9): 65-66

References

[1] 严蔚敏.数据结构(C语言版)[M].北京:清华大学出版社,2007.
[2] Kenneth A Reek. Pointers on C[M].徐波,译.北京:人民邮电出版社,2017.
[3] 李精华.微机原理与单片机接口技术[M].北京:电子工业出版社,2018.
[4] 张淑清.嵌入式单片机STM32原理及应用[M].北京:机械工业出版社,2019.
PDF(915 KB)

Accesses

Citation

Detail

Sections
Recommended

/