?? declare.a51
字號(hào):
; This module declares the variables and constants used in the examples
; It is common to all of the examples
;
; Declare Special Function Registers used
TimerControl DATA 088H
TimerMode DATA 089H
Timer0High DATA 08CH
EI DATA 0A8H
EIE DATA 0E8H ; EZ-USB specific
EXIF DATA 091H ; EZ-USB specific
EICON DATA 0D8H ; EZ-USB specific
PageReg DATA 092H ; EZ-USB specific, used with MOVX @Ri
DPS DATA 086H ; EZ-USB specific, used with dual data pointers
;
; "External" memory locations used, EZ-USB specific
; Note that most of these variables are in Page 7FH
SETUPDAT EQU 07FE8H
SUDPTR EQU 07FD4H
EP0Control EQU 07FB4H
EP0InBuffer EQU 07F00H
EP0OutBuffer EQU 07EC0H ; Not in Page 7FH
EP1InBuffer EQU 07E80H ; Not in Page 7FH
IN0ByteCount EQU 07FB5H
Out0ByteCount EQU 07FC5H
IN1ByteCount EQU 07FB7H
IN07IEN EQU 07FACH
IN07IRQ EQU 07FA9H
OUT07IEN EQU 07FADH
OUT07IRQ EQU 07FAAH
USBIEN EQU 07FAEH
USBIRQ EQU 07FABH
USBControl EQU 07FD6H
I2CData EQU 07FA6H
I2CControl EQU 07FA5H
PortA_Config EQU 07F93H
PortB_Config EQU 07F94H
PortC_Config EQU 07F95H
PortA_OUT EQU 07F96H
PortB_OUT EQU 07F97H
PortC_OUT EQU 07F98H
PortA_PINS EQU 07F99H
PortB_PINS EQU 07F9AH
PortC_PINS EQU 07F9BH
PortA_OE EQU 07F9CH
PortB_OE EQU 07F9DH
PortC_OE EQU 07F9EH
;*Jan's code start
; These are used for interrupt Out transfers at Endpoint 2
EP2OutBuffer EQU 07DC0H ; For Endpoint 2 interrupt Out transfers
OUT2ByteCount EQU 07FC9H ; Endpoint 2 byte count
OUT2CS EQU 07FC8H ; Endpoint 2 control and status
;*Jan's code end
;
; Byte Variables
DSEG AT 20H
FLAGS: DS 1 ; This register is bit-addressable
; Bit Variables
Configured EQU FLAGS.0 ; Is this device configured
STALL EQU FLAGS.1 ; Need to STALL endpoint 0
SendData EQU FLAGS.2 ; Need to send data to PC Host
IsDescriptor EQU FLAGS.3 ; Enable a shortcut reply
SetAddress EQU FLAGS.4 ; Set the SIE address
;
MonitorSpace: DS 1FH ; Used by Dscope
;Expired_Time: DS 1 ; A downcounter for timed Reports
ReplyCount: DS 1 ; Byte count for following buffer
ReplyBuffer: DS 2 ; Buffer for immediate reply
CurrentConfiguration:
DS 1 ; Some examples support > 1 configurations
SaveDPH: DS 1 ; Needed to save Descriptor Pointer ..
SaveDPL: DS 1 ; .. for descriptors > EP0Size
SaveLength: DS 1 ; Number of bytes still to send
SetupData: ; Buffer in direct access memory
RequestType: DS 1
Request: DS 1
wValueLow: DS 1
wValueHigh: DS 1
wIndexLow: DS 1
wIndexHigh: DS 1
wLengthLow: DS 1
wLengthHigh: DS 1
;
Old_Buttons: DS 1 ; Used by BAL: stores current button position
LEDstrobe: DS 1 ; Used by BAL: strobe one LED on at a time
LEDvalue: DS 1 ; Used by BAL: stores current LED value
Msec_Counter: DS 1 ; Used by BAL: counts up to 4 msec
;
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -