文件名称: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
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
............................\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