文件名称:2270B_USB_Library_ISP_m_V2.0

  • 所属分类:
  • 单片机(51,AVR,MSP430等)
  • 资源属性:
  • [C/C++] [源码]
  • 上传时间:
  • 2012-11-26
  • 文件大小:
  • 111kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • tec***
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

USB的HID固件程序,单片机开发

Bus_Reset:

------------------------------------------------------------------

into Normal Mode, two NOPs are required.

------------------------------------------------------------------

    b0bclr  FSTPHX

    nop

    nop

    b0bclr  FCLKMD

---------------------------------------------------------------

NOTE!! Keep USB enable after Bus_reset and set USB address to 0

---------------------------------------------------------------  

    mov  a, #0x80   enable USB & and set USB address = 0  

    b0mov  UDA, a    

    clr  UDP0     set FIFO address to EP0

    clr  UDP0_H

    clr  UDR0_R

    clr  UDR0_W

    b0bclr  bSetAddress   bus reset clear bSet_address  

    b0bclr  bSetAddressCmd    

    b0bclr  bSuspend   clear bSuspend flag

    b0bclr  bRemote_Wakeup



    mov  a, #PROTOCOL_initial_value

    b0mov  PROTOCOL, a    



    clr  BSetConfiguration

    clr  UStatus

    clr  USB_HID_Status2

    clr  EP0OUT_CNT  



     clr  USB_HID_Status      

    mov  a, #0xf0

    and  USB_HID_Status, a-USB的HID固件程序,单片机开发

Bus_Reset:

------------------------------------------------------------------

 into Normal Mode, two NOPs are required.

------------------------------------------------------------------

    b0bclr  FSTPHX

    nop

    nop

    b0bclr  FCLKMD

---------------------------------------------------------------

NOTE!! Keep USB enable after Bus_reset and set USB address to 0

---------------------------------------------------------------  

    mov  a,#0x80   enable USB & and set USB address = 0  

    b0mov  UDA, a    

    clr  UDP0     set FIFO address to EP0

    clr  UDP0_H

    clr  UDR0_R

    clr  UDR0_W

    b0bclr  bSetAddress   bus reset clear bSet_address  

    b0bclr  bSetAddressCmd    

    b0bclr  bSuspend   clear bSuspend flag

    b0bclr  bRemote_Wakeup



    mov  a,#PROTOCOL_initial_value

    b0mov  PROTOCOL, a    



    clr  BSetConfiguration

    clr  UStatus

    clr  USB_HID_Status2

    clr  EP0OUT_CNT  



     clr  USB_HID_Status      

    mov  a,#0xf0

    and  USB_HID_Status, a



相关搜索: sonix

(系统自动生成,下载前可以参看下载内容)

下载文件列表

2270B_USB_Library_ISP_m_V2.0\OBJ\SN8_USB_MCU_MAIN.LIB

............................\SN8_USB_MCU_MAIN.asm

............................\SN8_USB_MCU_MAIN.BBB

............................\SN8_USB_MCU_MAIN.HEX

............................\SN8_USB_MCU_MAIN.LST

............................\SN8_USB_MCU_MAIN.PRJ

............................\SN8_USB_MCU_MAIN.SN8

............................\SN8_USB_MCU_MAIN_2010_07_14 15_00_58_2DAF.BBB

............................\USB\SN8_USB_Descriptor_Table.lib

............................\...\SN8_USB_EP1.asm

............................\...\SN8_USB_macro.h

............................\...\SN8_USB_Module.lib

............................\...\SN8_USB_Setting.lib

............................\..._ISP\SN8_USB_ISP_EnC.lib

............................\OBJ

............................\USB

............................\USB_ISP

2270B_USB_Library_ISP_m_V2.0

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org