Title:
2270B_USB_Library_ISP_m_V2.0 Download
- Category:
- SCM
- Tags:
-
[C/C++]
[源码]
- File Size:
- 111kb
- Update:
- 2012-11-26
- Downloads:
- 0 Times
- Uploaded by:
- support
Description: 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
To Search:
File list (Check if you may need any files):
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