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

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

?? picservo.lst

?? Code ASM for PIC16F628. Use for CNC/Servo Motor. With simulatio in Proteus (7.0)
?? LST
?? 第 1 頁 / 共 5 頁
字號:
                      00495 
                      00496         ; Offset Part of the Pulse 
005A   0800           00497         MOVF    INDF, w                         ; (1) Load the offset count
005B   3E01           00498         ADDLW   1                                       ; (1) Incremnt the count - 255->0, 0->1 because 
                            of 
                      00499                                                                 ; calling convention of DelayWByFour
005C   204F           00500         CALL    DelayWByFour            ; (8+) Delay 
                      00501 
                      00502         ; Position Part of the Pulse
005D   0A84           00503         INCF    FSR, f                          ; (1) Access the next value which is the 
                      00504                                                                 ; position loop count
MPASM  4.02 Released                             PICSERVO.ASM   12-31-2006  11:50:00         PAGE 11


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

                      00505 
005E   0800           00506         MOVF    INDF, w                         ; (1) Load the variable loop count
005F   3E01           00507         ADDLW   1                                       ; (1) Incremnt the count - 255->0, 0->1 because 
                            of 
                      00508                                                                 ; calling convention of DelayWByFour
0060   204F           00509         CALL    DelayWByFour            ; (8+) Delay
                      00510         
                      00511 
                      00512         ; Turn off the output bit to end the pulse
0061   0829           00513         MOVF    CurrentServoMask, w     ; (1) Get the mask
0062   0686           00514         XORWF   PORTB, f                        ; (1) Turn of the pulse
                      00515                 
                      00516         ; and return from the call.
0063   0008           00517         RETURN
                      00518 
                      00519 
                      00520 ;+-----------------------------------------------------------------------------
                      00521 ;| SUBROUTINE: DisableInterrupts
                      00522 ;| 
                      00523 ;| Disable interrupts. This is not just as simple as BCF GIE because of the way
                      00524 ;| that interrupts are triggered it is possible for an interrupt to occur 
                      00525 ;| during the execution of the BCF GIE instruction which causes the PIC to start
                      00526 ;| the interrupt handler which then returns with RETFIE which sets the GIE flag
                      00527 ;| again!
                      00528 ;+-----------------------------------------------------------------------------
0064                  00529 DisableInterrupts
0064   138B           00530         BCF             INTCON, GIE                     ; disable the interrupt
0065   1B8B           00531         BTFSC   INTCON, GIE                     ; check if GIE is still disabled
0066   2864           00532         GOTO    DisableInterrupts       ; it isn't, so try again
0067   0008           00533         RETURN
                      00534 
                      00535 
                      00536 ;+-----------------------------------------------------------------------------
                      00537 ;| Main Program, Setup and Constantly Loop
                      00538 ;+-----------------------------------------------------------------------------
0068                  00539 Main
0068   1283           00540         BCF             STATUS, RP0                             ; Set the lower RAM bank as the default.
0069   2064           00541         CALL    DisableInterrupts               ; disable interrupts until were setup
                      00542         
                      00543 
                      00544         ; Setup the PIC's ports, PortB is all outputs, PortA is the Serial interface
006A   0185           00545         CLRF    PORTA                                   ; Clear the port outputs
006B   0186           00546         CLRF    PORTB                           
                      00547 
006C   1683           00548         BSF             STATUS, RP0                             ; Set the Upper RAM bank while we init t
                            he ports
006D   300A           00549         MOVLW   0Ah                                             ; All outputs except RA3 and RA1
Message[302]: Register in operand not in bank 0.  Ensure that bank bits are correct.
006E   0085           00550         MOVWF   TRISA                                   ; Set the port directional flags        
                      00551                                 
006F   3000           00552         MOVLW   00h                                             ; Port B All outputs
Message[302]: Register in operand not in bank 0.  Ensure that bank bits are correct.
0070   0086           00553         MOVWF   TRISB                                   ; Set the port directional flags
MPASM  4.02 Released                             PICSERVO.ASM   12-31-2006  11:50:00         PAGE 12


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

                      00554         
0071   1283           00555         BCF             STATUS, RP0                             ; Set the lower RAM bank as the default.
                      00556 
                      00557         ; Turn off the LED
0072   1605           00558         BSF             LED_Drive
                      00559 
                      00560         ; initialise the serial port
0073   2143           00561         CALL    InitSerialPort
                      00562 
                      00563         ; Transmit the power on welcome message (interrupts already disabled)
0074   01AA           00564         CLRF    DataByte
0075                  00565 PwrOnMsgLoop
0075   082A           00566         MOVF    DataByte, w
0076   200F           00567         CALL    GetPWROnMsg
0077   39FF           00568         ANDLW   0ffh                                    ; check for end of message
0078   1903           00569         BTFSC   STATUS, Z
0079   287D           00570         GOTO    EndPwrOnMsgLoop                 ; was 0, exit
007A   214D           00571         CALL    TransmitDataByte
007B   0AAA           00572         INCF    DataByte, f
007C   2875           00573         GOTO    PwrOnMsgLoop
007D                  00574 EndPwrOnMsgLoop
                      00575 
                      00576         ; Initialise the Servo values to resonable defaults and set their
                      00577         ; mask values
007D   3001           00578         MOVLW   01h
007E   008C           00579         MOVWF   Servo0_Mask
007F   3002           00580         MOVLW   02h
0080   008F           00581         MOVWF   Servo1_Mask
0081   3004           00582         MOVLW   04h
0082   0092           00583         MOVWF   Servo2_Mask
0083   3008           00584         MOVLW   08h
0084   0095           00585         MOVWF   Servo3_Mask
0085   3010           00586         MOVLW   10h
0086   0098           00587         MOVWF   Servo4_Mask
0087   3020           00588         MOVLW   20h
0088   009B           00589         MOVWF   Servo5_Mask
0089   3040           00590         MOVLW   40h
008A   009E           00591         MOVWF   Servo6_Mask
008B   3080           00592         MOVLW   80h
008C   00A1           00593         MOVWF   Servo7_Mask
008D   01A6           00594         CLRF    Flags                           ; initialise all flags
008E   20D8           00595         CALL    ResetState                      ; initialise all outputs and state
                      00596 
                      00597         ; Setup the Real time counter so it runs on the instruction
                      00598         ; clock and triggers and interrupt every 20ms or so. This
                      00599         ; then calls the interrupt routine which serives all the servo
                      00600         ; outputs. This is then enabled or disabled by the main loop when
                      00601         ; it is bit banging the serial input.
                      00602 
                      00603         ; Assign the prescaler to the timer and to 1:128 scale. This
                      00604         ; also enables the PORTB pullups.
008F   1683           00605         BSF             STATUS, RP0                             ; Set the Upper RAM bank while we init t
                            he ports
MPASM  4.02 Released                             PICSERVO.ASM   12-31-2006  11:50:00         PAGE 13


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

0090   3086           00606         MOVLW   86h                                             ; binary: 0000 0110
Message[302]: Register in operand not in bank 0.  Ensure that bank bits are correct.
0091   0081           00607         MOVWF   OPTION_REG                              ; Set the OPTION register
0092   1283           00608         BCF             STATUS, RP0                             ; Set the lower RAM bank as the default.
                      00609 
                      00610         ; Setup the RTCC for the 19ms interrupts
0093   306B           00611         MOVLW   RTCC_19msValue
0094   0081           00612         MOVWF   TMR0
0095   110B           00613         BCF             INTCON, T0IF
                      00614         
                      00615         ; Enable the Timer 0 Interrupt and disable all others
0096   018B           00616         CLRF    INTCON                          ; mask out all interrupts
0097   168B           00617         BSF             INTCON, T0IE            ; unmask the timer interrupt
                      00618 
                      00619         ; Enable interrupts
0098   178B           00620         BSF             INTCON, GIE
                      00621 
                      00622         ; Set the CTS signal active so the host can send us data
0099   1105           00623         BCF             Serial_CTS      
                      00624 
                      00625         ; Wait for the start bit (a high to low transition on Serial_RX)
                      00626         ; or for the servo pulse safe flag to be activated.
009A                  00627 StartBitLoop
009A   1D85           00628         BTFSS   Serial_RX
009B   289F           00629         GOTO    StartReceiveData
                      00630 
                      00631         ; Test for servo pulse safe flag. If set, start the servo pulses, otherwise
                      00632         ; go back and test for a start bit again.
009C   1D26           00633         BTFSS   Flag_ServoPulseSafe
009D   289A           00634         GOTO    StartBitLoop
009E   28AB           00635         GOTO    ProcessServos
                      00636 
009F                  00637 StartReceiveData
                      00638         ; possible start bit, receive a byte
009F   2064           00639         CALL    DisableInterrupts
00A0   2167           00640         CALL    ReceiveDataByte
00A1   00AA           00641         MOVWF   DataByte
00A2   178B           00642         BSF             INTCON, GIE
                      00643 
                      00644         ; check if it is valid. If it is send it straight back
00A3   1C26           00645         BTFSS   Serial_ReceiveValid
00A4   289A           00646         GOTO    StartBitLoop            ; invalid, continue looking for a start bit
                      00647         
                      00648         ; light the LED
00A5   300A           00649         MOVLW   LED_Drive_Time
00A6   00A8           00650         MOVWF   LED_Drive_Count
00A7   1205           00651         BCF             LED_Drive
                      00652 
00A8   082A           00653         MOVF    DataByte, w
00A9   20F7           00654         CALL    ParseCommand
                      00655 
00AA   289A           00656         GOTO    StartBitLoop
                      00657 
MPASM  4.02 Released                             PICSERVO.ASM   12-31-2006  11:50:00         PAGE 14


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产免费| 午夜伦欧美伦电影理论片| 国产精品毛片大码女人| 中文字幕在线一区免费| 亚洲日本欧美天堂| 亚洲成av人片一区二区三区| 香蕉成人啪国产精品视频综合网 | 亚洲人成小说网站色在线| 国产精品白丝在线| 亚洲国产aⅴ成人精品无吗| 日韩二区在线观看| 狠狠v欧美v日韩v亚洲ⅴ| 国产不卡视频在线播放| 国产成人综合网| 99精品桃花视频在线观看| 欧美亚洲综合在线| 欧美日韩高清在线播放| 欧美成人猛片aaaaaaa| 国产三级一区二区| 亚洲视频中文字幕| 首页综合国产亚洲丝袜| 日韩激情视频网站| 国产成人精品www牛牛影视| 91蜜桃在线观看| 在线综合亚洲欧美在线视频| 国产欧美精品在线观看| 亚洲精品高清视频在线观看| 日本不卡一区二区三区高清视频| 国产一区二区在线观看免费 | 日韩一区二区三区在线| 久久综合九色综合97婷婷女人| 亚洲欧美一区二区久久 | 2017欧美狠狠色| 亚洲国产精品一区二区尤物区| 国产成人亚洲综合a∨婷婷图片| 欧美日韩和欧美的一区二区| 国产欧美一区二区三区在线老狼| 亚洲一区二区三区在线看| 成人中文字幕在线| 欧美成人午夜电影| 亚洲成人激情社区| 成人av电影在线网| 久久午夜电影网| 免费在线观看一区| 欧美三级电影网| 一区二区三区免费| 91在线高清观看| 中文字幕免费一区| 激情综合亚洲精品| 欧美一卡二卡在线观看| 亚洲18色成人| 91福利在线导航| 亚洲人妖av一区二区| 成人免费看视频| 国产无一区二区| 国产电影精品久久禁18| www日韩大片| 韩国av一区二区三区在线观看| 欧美一区二区国产| 奇米四色…亚洲| 欧美久久免费观看| 婷婷六月综合网| 欧美日韩精品一区二区三区| 一区二区三区四区蜜桃| 色婷婷综合在线| 亚洲伦在线观看| av电影一区二区| 国产精品狼人久久影院观看方式| 国产精品一区二区不卡| 久久久久久麻豆| 国产精品一级二级三级| 久久久www成人免费无遮挡大片| 国产一区二区不卡在线| www国产成人| 国产成人自拍网| 欧美国产精品v| 成人av免费网站| 亚洲激情五月婷婷| 欧美视频你懂的| 日韩和欧美一区二区三区| 欧美精品乱人伦久久久久久| 日韩精品一二区| 日韩欧美电影一区| 国产麻豆91精品| 国产精品视频看| www.66久久| 一区二区三区日韩精品视频| 欧美在线观看禁18| 午夜国产精品一区| 日韩免费观看2025年上映的电影| 精品一区二区三区久久| 国产亚洲精品bt天堂精选| 99精品桃花视频在线观看| 亚洲午夜在线视频| 日韩欧美中文字幕公布| 国产成人亚洲综合a∨婷婷| 综合欧美亚洲日本| 欧美日韩不卡一区| 国产一区二区三区| 亚洲少妇30p| 欧美一区二区三级| 国产91精品在线观看| 一区二区三区色| 日韩美女主播在线视频一区二区三区 | 激情成人综合网| 国产精品每日更新| 欧美精品少妇一区二区三区| 狠狠色丁香婷综合久久| 国产精品久久久久久户外露出 | 亚洲免费电影在线| 欧美精品1区2区3区| 国产福利91精品一区| 亚洲猫色日本管| 欧美xxxx老人做受| 99视频国产精品| 蜜臀av性久久久久蜜臀aⅴ | 99这里只有久久精品视频| 一区二区三区精品在线观看| 日韩网站在线看片你懂的| 东方aⅴ免费观看久久av| 亚洲国产成人av| 国产色产综合产在线视频| 欧美综合色免费| 国产乱码精品一区二区三区av | 国产成a人亚洲| 亚洲第一狼人社区| 国产日韩成人精品| 欧美一区二区在线视频| www.日韩精品| 麻豆成人av在线| 一区二区三区中文免费| 久久这里只有精品首页| 欧美一a一片一级一片| 国产乱理伦片在线观看夜一区| 亚洲综合一二区| 欧美激情一区三区| 欧美一区二区三区日韩视频| 91麻豆文化传媒在线观看| 国产一区二区看久久| 亚洲福利电影网| 最新久久zyz资源站| 精品sm在线观看| 欧美精品一卡二卡| 91在线你懂得| 国产98色在线|日韩| 免费在线观看一区二区三区| 亚洲影视在线播放| 中文字幕一区二区三| 久久久www成人免费毛片麻豆| 91.麻豆视频| 欧美亚洲另类激情小说| 成人丝袜18视频在线观看| 另类小说色综合网站| 亚洲成人av资源| 亚洲黄色在线视频| 国产精品成人一区二区三区夜夜夜| 2020国产精品| 日韩精品在线一区二区| 欧美日韩高清一区二区| 日本高清不卡一区| 99久久99久久久精品齐齐| 国产激情视频一区二区在线观看| 麻豆精品蜜桃视频网站| 日韩黄色小视频| 日韩精品一二区| 午夜精品成人在线视频| 一区二区三区国产精华| 亚洲九九爱视频| 综合网在线视频| 日韩一区日韩二区| 中文字幕一区二区在线观看 | 成人免费视频网站在线观看| 免费成人你懂的| 美女视频免费一区| 蜜桃一区二区三区四区| 免费在线观看一区| 蜜臀精品一区二区三区在线观看 | 欧美系列在线观看| 日本福利一区二区| 91成人国产精品| 欧美亚州韩日在线看免费版国语版| 色婷婷激情久久| 欧美午夜精品一区| 欧美浪妇xxxx高跟鞋交| 欧美人妇做爰xxxⅹ性高电影| 欧美日韩精品免费观看视频| 欧美日韩色综合| 91精品国产综合久久香蕉麻豆| 在线综合+亚洲+欧美中文字幕| 欧美一区二区精美| 精品91自产拍在线观看一区| 26uuu成人网一区二区三区| 久久久久国色av免费看影院| 国产人伦精品一区二区| 国产精品视频看| 一区二区三区精品在线观看| 婷婷久久综合九色综合绿巨人 | 日韩欧美一区二区视频| 精品免费视频一区二区| 国产亚洲精品免费|