论文部分内容阅读
无线单片机C语言和汇编语言各有所长。无线单片机内存容量极小,而且不同型无线单片机收/发硬件结构各不相同,因此C语言时常表现出很多不足之处(如C语言良好的可移植性在不同无线单片机间并不存在)。首先对无线单片机的汇编语言和C语言进行比较,说明汇编语言具有相当大的优势。接着提出改进汇编语言可交叠式模块编程方法。最后考虑至今软件断点都是极慢速的(慢100倍);现有的硬件断点方法需要很贵的硬件来支持,成本很高,为此提出低成本和高速的全速软件断点方法。采用CPLD芯片实现的nRF24E1外围电路,完成键盘扫描,显示,收发控制和信息存储。多次并以nRF24E1收发的实验和调试验证了上述方法的正确性。
Wireless MCU C language and assembly language have their own strengths. The memory capacity of the wireless microcontroller is extremely small, and the hardware structures of the different types of wireless microcontrollers are different from each other. Therefore, the C language often shows many shortcomings (for example, C portability does not exist between different wireless microcontrollers). First of all, the wireless microcontroller assembly language and C language comparison, assembly language has considerable advantages. Then put forward to improve assembly language programming method can be overlapped module. In the end, the software breakpoints so far are very slow (100 times slower); the existing hardware breakpoint method needs expensive hardware to support and the cost is high. Therefore, a low-cost and high-speed full-speed software breakpoint method is proposed . Using CPR chip nRF24E1 peripheral circuits to complete the keyboard scan, display, send and receive control and information storage. Experiments and debugging with multiple times of sending and receiving with nRF24E1 verify the correctness of the above method.