亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ax_firm.asm

?? mcs51,2051,x86系列MCU
?? ASM
?? 第 1 頁 / 共 5 頁
字號:
;**************************************************************************
;**                                                                      **
;**                  I N T E L   P R O P R I E T A R Y                   **
;**                                                                      **
;**     COPYRIGHT (c)  1996, 1997 BY  INTEL  CORPORATION.  ALL RIGHTS    **
;**     RESERVED.                                                        **
;**$Modtime:   19 Dec 1996 14:40:00  $
;**$Revision:   1.0  $
;***************************************************************************


; Remarks about this code:
;*************************
; The code is in an absolute format starting at location 00:4000 hex
; This location should be used if this code is to be downloded through
; a serial RS232 port to the 8x930AX\Hx board with RISM programmed in
; the EPROM. The main code starts at label "main" located at 004080.
; There is no need to include the configuration bytes in this code
; because RISM already takes care of that.
;
; If users want to adapt this code to their own board or if they want
; to change the EPROM provided with the board with their own EPROM,
; then they need to relocate the code. They need to change the
; starting location to 0FF:0000 hex and the label main to 0FF:0080.
; They will also need to program the Chip Cconfiguration Bytes.
;
; This code should run on all assebmlers provided by third party
; vendors. Minimum changes may be required. Users may need to change
; the include files, and use the ones provided by the Third party
; vendor they are using.



;$INCLUDE (8x930AX.INC)  ;  you may need to change this file and use
                        ;  the one provided by the tool vendor you
                        ;  are using.

;$INCLUDE (ONE_OH.INC)   ; This file is provided by Intel
include 8x930AX.inc
include one_oh.inc

FIFO_SIZE             equ     008h
GET_COMMAND           equ     080h
EP1_RX_FIFO_SIZE      equ     40h      ;
EP1_TX_FIFO_SIZE      equ     40h      ; 64 bytes
EP2_TX_FIFO_SIZE      equ     08h     ; 8 bytes
EP3_TX_FIFO_SIZE      equ     08h     ; 8 bytes
EP1_TX_LOOP_BACK_FIFO_SIZE    equ  40h
EP1_RX_LOOP_BACK_FIFO_SIZE    equ  40h
EP2_TX_LOOP_BACK_FIFO_SIZE    equ  08h
EP2_RX_LOOP_BACK_FIFO_SIZE    equ  08h
EP3_TX_LOOP_BACK_FIFO_SIZE    equ  08h
EP3_RX_LOOP_BACK_FIFO_SIZE    equ  08h

SETUP_PHASE           equ     000h
DATA_PHASE            equ     001h
STATUS_PHASE          equ     002h


EP0_MAX_PACKET_SIZE     equ      08h
NULL_DATA_PACKET        equ     000h


              ;------------------------------------------------------
              ; The following variables are used by routines
              ; outside this file.
              ;------------------------------------------------------


;***************
; Program origin
;****************

ORG 00:4000h                 ; Change to ORG 0FF:0000h for your
                             ; own EPROM/design

RESET_VECTOR:       LJMP main

INT0_VECTOR:        LJMP $
                    ds      5

TIM0_VECTOR:        LJMP $
                    ds      5

INT1_VECTOR:        LJMP $
                    ds      5

TIM1_VECTOR:        LJMP $
                    ds      5

SER_VECTOR:         LJMP $
                    ds      5

TIM2_VECTOR:        LJMP $
                    ds      5

PCA_VECTOR:         LJMP $
                    ds 13

SOF_VECTOR:         LJMP SOF_ISR
                    ds 5

USB_FUNC_VECTOR:    LJMP FUNCTION_ISR
                    ds 5

SUS_RSM_VECTOR:      LJMP SUSPEND_RESUME_ISR
                    ds 25h

TRAP_VECTOR:         LJMP $
END_VECTORS:



              ;----------------------------------------------------
              ; If RISM is enabled, code dan start at 004000h.
              ; If RISM is not enabled, then the user must
              ; be programming ROM. Place the first byte of code at
              ; at FF0000h
              ;----------------------------------------------------


;SEGMENT CODE_SEGMENT

;MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
;M---------------------------------------------------------------------M
;M                   MAIN                                              M
;M---------------------------------------------------------------------M
;MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM

ORG 00:4080H                  ; Change to 0FF:0080 for you own
                              ; EPROM/design

main:

        mov     SP,     #LOW (STACK_DATA)
        mov     SPH,    #HIGH(STACK_DATA)   ; Let Linker place the stack.
        mov     DPXL,   #0ffh               ; Set DPXL to point at the FLASH device
                                            ; to access constants
        mov     P1, #0F9h

        lCall   INIT_VARIABLES              ; Initialize the RAM space as required
;       lcall   INIT_USERS_CODE             ; Call to USERS CODE FOR INTILIZATION
        lCall   INIT_USB
        lcall   InitUsbInterrupts
        setb    EA                          ; Enable Interrupts.

    ;    mov     EPINDEX, #01h               ; NAK TEST
    ;    mov     EPCON, #04h                 ; NAK TEST
        ljmp    ActiveLoop                  ; Jump over the ISR stubs to the main loop.

;COMMENT *------------------------------------------------------------
;Function name     : InitUsbInterrupts
;Brief Description : Initilizes all of the USB Interrupts needed for this part
;                  : to function as unconfigured function.
;Regs preserved    : No reg. is saved
;--------------------------------------------------------------------*
;
InitUsbInterrupts:
                                            ;----------------------------------------
                                            ;--- Enable Function Interrupts
                                            ;----------------------------------------
        orl     FIE,    #03h                ; Enable Function EP0 TX & RX ENpoint Interrupts.
        setb    SOFIE                       ; Enable SOF Interrupt
        orl     IEN1, #03h                  ; Enable Function, SOF & Suspend/Resume ISR
        ret





;AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
;A---------------------------------------------------------------------A
;A                  ACTIVE LOOP                                        A
;A---------------------------------------------------------------------A
;AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

;COMMENT *------------------------------------------------------------
;ISR Registers
;IF the user makes this into an ISR, they will need to save certain registers
;upon entry into this code.  The firmware has been writen such that the
;only registers which are modified in this code are A, R0, R1 & EPINDEX.
;While DPX is used within the code, it is saved locally only when needed.
;This will allow the ISR to run slightly faster.
;--------------------------------------------------------------------*

;COMMENT *------------------------------------------------------------
;Function name     : ActiveLoop
;Brief Description : This routine simply sets and clears P1.3 at a periodic rate
;                  : It purpose is to let the user know the part is alive.
;
;Regs preserved    : No reg. is saved
;--------------------------------------------------------------------*


ActiveLoop:


;------------------------------------------------------------------
;-- Heart Beat
;-- This code simple flashes P1.3 at a steady rate.  If the device is
;-- Not configured then the rate is 1/4 of what it would be when it's
;-- Configured because LC bit is toggled when configured.
;------------------------------------------------------------------

HeartBeat:


NoNAK:
        mov     WR0,    Heart1
        inc     WR0,    #1
        mov     Heart1, WR0
        cmp     WR0,    #7FFFh
        jl      ClearBit
        setb    P1.3
        ljmp    ActiveLoop
ClearBit:
        clr     P1.3
        ljmp    ActiveLoop



;----------------------------------------------------------------
;SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
;S S                 SUSPEND/RESUME ISR
;SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
;----------------------------------------------------------------
;COMMENT *------------------------------------------------------------
;Function name     : SUSPEND_RESUME_ISR
;BrieS Description : Service the SUSPEND_RESUME Interrupt
;                  :
;Regs preserved    : Reg. A, B  & EPINDEX are saved
;--------------------------------------------------------------------*
;SCOPE

SUSPEND_RESUME_ISR:
         push   PSW
         push   PSW1
         push   ACC
         push   WR2

                                            ;---------------------------------
                                            ; First check to see if this was a
                                            ; USB reset.  This only happens if
                                            ; the code has already enabled the
                                            ; USB reset feature.
                                            ;---------------------------------
SUSPEND_LOOP:
         jb     GSUS, SUSPEND_EVENT

RESET_EVENT:
                                            ; ON CTI Chips this is a reset and is vectored here.

         anl    PCON1,  #0F7h               ; Clear Reset
;         lcall  UserResetRoutine           ; Let the user know a reset occured.
         mov    P1, #066h
         lcall  InitUsbInterrupts
         sjmp   ExitSuspendISR

SUSPEND_EVENT:

                                            ;---------------------------------------
                                            ; Temp Resume command
                                            ;---------------------------------------

                                            ; To force RWU to happen every time
                                            ; after a suspend, then un comment out the line
                                            ; below.

                                            ;---------------------------------
                                            ; Enabled the following feature if
                                            ; you want the device to automatically
                                            ; generate a RWU x seconds after a
                                            ; Suspend is detected.
                                            ;---------------------------------
IF 1==2
FORCE_RWU:
         mov   R11,        #00
         mov   RWUTimer+1, R11

         mov   R11,        PCON1
         anl   PCON1,      #0E0h
         cjne  A, #0C0h, LS_RESUME
         mov   R11,        #0Fh
         sjmp  ll1
LS_RESUME:

         mov   R11,        #04h
ll1:
         mov   RWUTimer  , R11
ENDIF
                                            ; END OF FORCE RWU


                                            ; If the user has loaded RWUTimer with
                                            ; non-zero value, the function will wait
                                            ; that many milliseconds and then do a RWU
         mov   R11,  RWUTimer               ; If timer is zero, do a normal suspend.
         orl   R11,  RWUTimer+1
         JZ    DoSuspend                    ; Otherwise wait a delay and then resume.




DoRWU:
         push WR0
         xrl  R0,    R0                     ; Load count into DR0
         mov  R1,    RWUTimer
         mov  R2,    RWUTimer+1
         mov  R3,    R0

WaitLoop:
         mov  P1,   R1
         dec  DR0,  #1h

         jne  WaitLoop

         setb RWU
         jb   RWU,   $                      ; Wait until RWU is done.
         pop  WR0

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91一区二区三区在线播放| 精品一区二区免费看| 日本精品视频一区二区| 亚洲欧美精品午睡沙发| 色欧美片视频在线观看 | 欧美三级电影精品| 午夜精品久久久久久| 欧美一级一区二区| 国产精品一二三区在线| 亚洲色图制服诱惑| 3d动漫精品啪啪1区2区免费 | 九九视频精品免费| 久久精品男人天堂av| 一本在线高清不卡dvd| 日韩精品一区第一页| 日韩欧美国产一区二区在线播放| 国产成人免费视频网站高清观看视频 | 久久99精品国产麻豆婷婷| 久久久久久97三级| 欧美性做爰猛烈叫床潮| 精品综合免费视频观看| 最新高清无码专区| 日韩一区二区三区av| aa级大片欧美| 捆绑调教一区二区三区| 一色桃子久久精品亚洲| 日韩三级在线观看| 91欧美一区二区| 六月丁香婷婷久久| 一区二区三区国产精品| 2024国产精品| 欧美日韩综合在线免费观看| 国产乱对白刺激视频不卡| 一区二区三区免费网站| 欧美成人国产一区二区| 欧美在线视频日韩| 国产成人精品免费视频网站| 日韩黄色免费网站| 亚洲人成在线观看一区二区| www欧美成人18+| 欧美日韩精品一区二区三区四区| 风间由美一区二区av101| 日韩精品久久久久久| 亚洲同性gay激情无套| 精品久久人人做人人爰| 91福利视频网站| 99久久国产免费看| 国产一区在线视频| 蜜桃视频在线观看一区二区| 亚洲综合在线电影| 综合激情成人伊人| 国产精品免费视频一区| 精品成a人在线观看| 欧美精品在线观看播放| 在线视频亚洲一区| caoporm超碰国产精品| 久久99九九99精品| 美女精品自拍一二三四| 日韩在线观看一区二区| 亚洲国产一二三| 一区二区三区欧美| 一区二区成人在线观看| 亚洲日本va午夜在线电影| 欧美国产精品劲爆| 国产亚洲欧美日韩俺去了| 2021久久国产精品不只是精品| 91精品麻豆日日躁夜夜躁| 欧美三级中文字| 欧美三级电影网站| 欧美日韩久久久一区| 欧美三级电影精品| 欧美精品日韩精品| 欧美精品三级日韩久久| 69堂精品视频| 欧美一区午夜精品| 日韩免费一区二区| 精品欧美久久久| 精品久久人人做人人爰| 2023国产精品自拍| 国产亚洲精品bt天堂精选| 久久久久国产成人精品亚洲午夜 | 91精品国产入口在线| 欧美一区二区三区日韩视频| 日韩久久精品一区| 国产亚洲一区二区三区四区| 国产精品私人影院| 有码一区二区三区| 日日夜夜精品视频免费| 蜜芽一区二区三区| 经典三级一区二区| 成人手机在线视频| 91福利国产精品| 欧美一级在线视频| 国产日韩一级二级三级| 亚洲欧美日韩久久| 日韩av电影免费观看高清完整版 | 在线一区二区三区四区五区| 欧美主播一区二区三区| 91.成人天堂一区| 精品福利av导航| 国产精品入口麻豆九色| 亚洲一二三级电影| 麻豆久久久久久久| av一区二区三区四区| 91成人在线观看喷潮| 日韩一区二区精品葵司在线| 久久精品免视看| 一区二区三区在线不卡| 日本aⅴ免费视频一区二区三区 | 美女视频网站黄色亚洲| 国产**成人网毛片九色 | 日韩欧美aaaaaa| 国产精品乱码久久久久久| 亚洲伊人伊色伊影伊综合网| 精品一区二区在线视频| 色吧成人激情小说| 日韩欧美成人一区二区| 国产精品国产三级国产普通话99| 偷窥少妇高潮呻吟av久久免费| 国产九色sp调教91| 在线观看av不卡| 国产日韩欧美精品在线| 亚洲成人免费av| www.欧美亚洲| 日韩精品一区二区三区三区免费| 亚洲欧洲日韩女同| 精品在线你懂的| 欧美视频你懂的| 中文字幕永久在线不卡| 极品尤物av久久免费看| 欧美午夜精品免费| 亚洲国产精品高清| 久久国产人妖系列| 在线成人高清不卡| 一区二区三区中文字幕| 国产精品影视在线观看| 日韩天堂在线观看| 亚洲一区成人在线| 99国产欧美另类久久久精品| 欧美v日韩v国产v| 午夜欧美一区二区三区在线播放| 丁香激情综合国产| 欧美电影免费观看高清完整版 | 久久久久久**毛片大全| 青青草精品视频| 欧美日韩视频在线第一区| 亚洲女人****多毛耸耸8| 国产精品一区2区| 日韩久久久精品| 日韩不卡一二三区| 欧美精品三级在线观看| 亚洲一区二区三区在线| 欧美伊人久久大香线蕉综合69 | 国产欧美日韩亚州综合| 国产又粗又猛又爽又黄91精品| 欧美一级高清片| 石原莉奈在线亚洲二区| 欧美丝袜第三区| 一区二区三区日韩在线观看| 91浏览器入口在线观看| 亚洲品质自拍视频网站| 91网上在线视频| 亚洲欧美日本韩国| 色婷婷激情一区二区三区| 亚洲乱码中文字幕综合| 日本精品一级二级| 亚洲影院免费观看| 欧美日韩成人综合| 秋霞电影网一区二区| 91精品国产麻豆| 麻豆91精品视频| 精品日韩欧美一区二区| 国产精品一区在线观看乱码| 国产欧美日韩综合| 97se亚洲国产综合自在线| 亚洲欧美视频在线观看视频| www.亚洲激情.com| 亚洲精品中文在线影院| 在线中文字幕不卡| 三级久久三级久久| 日韩欧美亚洲一区二区| 国产精品影视在线| 国产精品久久综合| 欧美天天综合网| 蜜臀久久99精品久久久久久9| 精品国产一二三区| 成人av免费在线播放| 伊人一区二区三区| 91精品国产美女浴室洗澡无遮挡| 精品一区二区精品| 亚洲欧洲三级电影| 欧美日韩一区高清| 奇米影视在线99精品| 欧美精品一区二区三区在线| 99久久精品一区| 日韩精彩视频在线观看| 久久久久久黄色| 91国在线观看| 久久99精品国产麻豆婷婷洗澡| 久久伊人中文字幕|