sky-Hawk where 发表于 2015-7-10 11:20:58

LilyPad Arduino USB的独特复位方式

LilyPad Arduino USB的复位与其他Arduino模块不太一样。

一般的Arduino模块使用了USB转串口芯片上的DTR信号,DTR通过电容连接到RESET,通过DTR提供的脉冲控制AVR单片机进行复位,然后进入Bootloader进行升级。无论是原产的Arduino还是国产的Arduino都是这样,只是USB芯片不同。




而LilyPad Arduino USB上只有一个带USB功能的AVR单片机,没有单独的USB芯片。它的复位过程比较奇特,在它的网站上是这样介绍的:

“The reset is triggered when the LilyPad's virtual (CDC) serial / COM port is opened at 1200 baud and then closed. When this happens, the processor will reset, breaking the USB connection to the computer (meaning that the virtual serial / COM port will disappear). After the processor resets, the bootloader starts, remaining active for about 8 seconds.”

先用1200波特率打开虚拟串口,然后关闭,单片机就会复位并进入Bootloader,并保持8秒。


feixiang20 发表于 2018-8-18 22:28:30

额, 看看了               
页: [1]
查看完整版本: LilyPad Arduino USB的独特复位方式