针对现有对讲设备的程序下载无法脱离PC的缺点,这里设计了一种基于单片机的嵌入式USB主机程序下载系统。该系统以宏晶科技的STCllL60XE单片机为控制核心,通过单片机控制CH376读取U盘中的待升级文件,再通过单片机的串口与对讲设备(对讲设备包括手持对讲机、车载对讲机等)进行信息交换,实现对讲设备程序更新的功能,整个下载过程完全脱离Pc没有依赖任何操作系统。该系统具有结构小巧、成本低廉和可实现随时随地为对讲设备进行程序升级的特点。
Nowadays the existing intercom device downloads could not be realized without PC system. In view of this situation, a microcontroller-based embedded USB host downloading system is designed, and this system, with STC MCU' s SCM STCIIL6OXE as its core processor, and with this processor for control CH376 in reading the file to be downloaded to the intercom device in the U disk, thus the program upgrade of intercom device is realized through information exchange of between SCM serial port and intercom device, and the entire process could be completed without any PC or OS. This system is compact in construction, low in cost and could realize program upgrade of the intercom devices anytime and anywhere.