摘要
本文为一款带OCDS的8051 MCU设计了一种单线仿真器,采用曼彻斯特编码。该仿真器使用STM32处理器,加上外围电路形成仿真器电路板,然后对STM32进行编程,实现仿真器的软件功能。仿真器负责将主机USB发出的调试命令转换为单线协议,然后发给MCU的OCDS,进而控制MCU的运行。测试结果表明,该仿真器可以对MCU实现软件代码下载、启动与停止、断点设置、单步执行及存储访问等功能,该单线仿真器对其他形式仿真器也具有一定参考价值。
In the paper,a single line simulator for a 8051 MCU with OCDS online simulation hardware module,using Manchester coding.The simulator uses STM32 processor and peripheral circuits to form the circuit board,and then the STM32 is programmed to realize the software function of the simulator.The emulator is responsible for converting the debugging command sent by the host USB into a single line protocol,and then sending it to the OCDS of MCU to control the operation of MCU.The simulator can implement software code download,start and stop,breakpoint setting,single step execution and storage access to MCU.The single line simulator also has certain reference value for other types of simulators.
作者
张立新
赵海
宁尚波
Zhang Lixin;Zhao Hai;Ning Shangbo(College of IoT Engineering,Wuxi University,Wuxi 214135,China;JSIC Co.,Ltd.)
出处
《单片机与嵌入式系统应用》
2023年第1期15-18,29,共5页
Microcontrollers & Embedded Systems
基金
无锡学院科研启动费(2021r018)
MCU单线仿真器项目(JSIC2021YY-02)。