📄 63001.inc
字号:
;*****************************************************************
; 63001.h - Cypress CY7C63001A微处理器的定义
;*****************************************************************
BIT0: equ 01h
BIT1: equ 02h
BIT2: equ 04h
BIT3: equ 08h
BIT4: equ 10h
BIT5: equ 20h
BIT6: equ 40h
BIT7: equ 80h
;========================================
; CY7C63001A 的定义
;========================================
P0_Data: equ 00h
P0.0: equ BIT0
P0.1: equ BIT1
P0.2: equ BIT2
P0.3: equ BIT3
P0.4: equ BIT4
P0.5: equ BIT5
P0.6: equ BIT6
P0.7: equ BIT7
P1_Data: equ 01h
P1.0: equ BIT0
P1.1: equ BIT1
P1.2: equ BIT2
P1.3: equ BIT3
P0_IntEnable: equ 04h
IE0.0: equ BIT0
IE0.1: equ BIT1
IE0.2: equ BIT2
IE0.3: equ BIT3
IE0.4: equ BIT4
IE0.5: equ BIT5
IE0.6: equ BIT6
IE0.7: equ BIT7
P1_IntEnable: equ 05h
IE1.0: equ BIT0
IE1.1: equ BIT1
IE1.2: equ BIT2
IE1.3: equ BIT3
P0_PullUp: equ 08h
Pull0.0: equ BIT0
Pull0.1: equ BIT1
Pull0.2: equ BIT2
Pull0.3: equ BIT3
Pull0.4: equ BIT4
Pull0.5: equ BIT5
Pull0.6: equ BIT6
Pull0.7: equ BIT7
P1_PullUp: equ 09h
Pull1.0: equ BIT0
Pull1.1: equ BIT1
Pull1.2: equ BIT2
Pull1.3: equ BIT3
EP0_Tx_Config: equ 10h
EP0_Tx_Count0: equ BIT0
EP0_Tx_Count1: equ BIT1
EP0_Tx_Count2: equ BIT2
EP0_Tx_Count3: equ BIT3
EP0_Rx_Err: equ BIT4
EP0_Tx_Stall: equ BIT5
EP0_Tx_Toggle: equ BIT6
EP0_Tx_Respond: equ BIT7
EP1_Tx_Config: equ 11h
EP1_Tx_Count0: equ BIT0
EP1_Tx_Count1: equ BIT1
EP1_Tx_Count2: equ BIT2
EP1_Tx_Count3: equ BIT3
EP1_Tx_Enable: equ BIT4
EP1_Tx_Stall: equ BIT5
EP1_Tx_Toggle: equ BIT6
EP1_Tx_Respond: equ BIT7
USB_DeviceAddress: equ 12h
ADR.0: equ BIT0
ADR.1: equ BIT1
ADR.2: equ BIT2
ADR.3: equ BIT3
ADR.4: equ BIT4
ADR.5: equ BIT5
ADR.6: equ BIT6
USB_Control: equ 13h
USBC_BusActive: equ BIT0
USBC_Resume: equ BIT1
USBC_J: equ BIT2
USBC_StatusOuts: equ BIT3
USBC_EnableOuts: equ BIT4
EP0_Rx_Status: equ 14h
EP0_Rx_Setup: equ BIT0
EP0_Rx_Out: equ BIT1
EP0_Rx_In: equ BIT2
EP0_Rx_Toggle: equ BIT3
EP0_Rx_Count0: equ BIT4
EP0_Rx_Count1: equ BIT5
EP0_Rx_Count2: equ BIT6
EP0_Rx_Count3: equ BIT7
; 控制寄存器
Global_Interrupt: equ 20h
Timer_128us_IE: equ BIT1
Timer_1024us_IE: equ BIT2
USB_EP0_IE: equ BIT3
USB_EP1_IE: equ BIT4
GPIO_IE: equ BIT6
WakeUp_IE: equ BIT7
WatchDog: equ 21h
Cext_Clear: equ 22h
Timer: equ 23h
P0_SinkPin0: equ 30h
P0_SinkPin1: equ 31h
P0_SinkPin2: equ 32h
P0_SinkPin3: equ 33h
P0_SinkPin4: equ 34h
P0_SinkPin5: equ 35h
P0_SinkPin6: equ 36h
P0_SinkPin7: equ 37h
P1_SinkPin0: equ 38h
P1_SinkPin1: equ 39h
P1_SinkPin2: equ 3Ah
P1_SinkPin3: equ 3Bh
StatusControl: equ FFh
SC_RUN: equ BIT0
SC_SUSPEND: equ BIT3
SC_POR: equ BIT4
SC_USBReset: equ BIT5
SC_WDReset: equ BIT6
EP0_FIFO: equ 70h
EP0_FIFO.0: equ 70h
EP0_FIFO.1: equ 71h
EP0_FIFO.2: equ 72h
EP0_FIFO.3: equ 73h
EP0_FIFO.4: equ 74h
EP0_FIFO.5: equ 75h
EP0_FIFO.6: equ 76h
EP0_FIFO.7: equ 77h
EP1_FIFO: equ 78h
EP1_FIFO.0: equ 78h
EP1_FIFO.1: equ 79h
EP1_FIFO.2: equ 7Ah
EP1_FIFO.3: equ 7Bh
EP1_FIFO.4: equ 7Ch
EP1_FIFO.5: equ 7Dh
EP1_FIFO.6: equ 7Eh
EP1_FIFO.7: equ 7Fh
;****************CY7C63001A定义完毕*******************************
;========================================
; USB Protocol的一些定义
;========================================
USBRqstType :equ EP0_FIFO.0
USBRqstTypeDirection :equ 80h
USBRqstTypeStandard :equ 00h
USBRqstTypeClass :equ 20h
USBRqstTypeVendor :equ 40h
USBRqstTypeReserved :equ 60h
USBRqstTargetDevice :equ 00h
USBRqstTargetInterface :equ 01h
USBRqstTargetEndPoint :equ 02h
USBRqstTargetOther :equ 03h
USBRqstMessage :equ EP0_FIFO.1
USBRqstGetStatus :equ 00h
USBRqstClearFeature :equ 01h
USBRqstReserved02 :equ 02h
USBRqstSetFeature :equ 03h
USBRqstReserved04 :equ 04h
USBRqstSetAddress :equ 05h
USBRqstGetDescriptor :equ 06h
USBRqstSetDescriptor :equ 07h
USBRqstGetConfiguration :equ 08h
USBRqstSetConfiguration :equ 09h
USBRqstGetInterface :equ 0Ah
USBRqstSetInterface :equ 0Bh
USBRqstSynchFrame :equ 0Ch
USBRqstReserved0D :equ 0Dh
USBRqstWordValueLo :equ EP0_FIFO.2
USBRqstWordValueHi :equ EP0_FIFO.3
USBDescriptorTypeDevice :equ 01h
USBDescriptorTypeConfig :equ 02h
USBDescriptorTypeString :equ 03h
USBDescriptorTypeInterface :equ 04h
USBDescriptorTypeEndPoint :equ 05h
USBDescriptorTypeReserved06 :equ 06h
;****************USB Protocol定义完毕*******************
;=====================文件完毕==========================
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -