查看: 6359|回复: 1

[经验] LilyPad Arduino USB的独特复位方式

[复制链接]
  • TA的每日心情
    奋斗
    2019-12-1 10:07
  • 签到天数: 1617 天

    连续签到: 1 天

    [LV.Master]伴坛终老

    发表于 2015-7-10 11:20:58 | 显示全部楼层 |阅读模式
    分享到:
    LilyPad Arduino USB的复位与其他Arduino模块不太一样。

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


    1.jpg

    而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秒。

    2.jpg
    回复

    使用道具 举报

  • TA的每日心情
    难过
    2021-2-27 22:16
  • 签到天数: 1568 天

    连续签到: 1 天

    [LV.Master]伴坛终老

    发表于 2018-8-18 22:28:30 | 显示全部楼层
    额, 看看了               
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /2 下一条



    手机版|小黑屋|与非网

    GMT+8, 2024-4-20 00:36 , Processed in 0.121088 second(s), 18 queries , MemCache On.

    ICP经营许可证 苏B2-20140176  苏ICP备14012660号-2   苏州灵动帧格网络科技有限公司 版权所有.

    苏公网安备 32059002001037号

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.