⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 74as.lst

📁 pic16f74 实现对视频解码芯片lrs5752的配置(汇编)
💻 LST
📖 第 1 页 / 共 5 页
字号:
0223   1187               M    bcf PORTC,3
0224   0000               M    nop
0225   1587               M    bsf PORTC,3
0226   0000               M    nop
0227   0C??               M    rrf input,1
0228   0B??               M    decfsz count,1
0229   2???               M    goto $-.11
                          M ;writevalue
022A   308C               M    movlw .140
022B   00??               M    movwf input
022C   3008               M    movlw 8
022D   00??               M    movwf count
022E   30FF               M    movlw 0xff
022F   05??               M    andwf input,1
0230   1800               M    btfsc input,0
0231   1607               M    bsf PORTC,4
0232   1207               M    bcf PORTC,4
0233   1187               M    bcf PORTC,3
0234   0000               M    nop
0235   1587               M    bsf PORTC,3
0236   0000               M    nop
0237   0C??               M    rrf input,1
0238   0B??               M    decfsz count,1
0239   2???               M    goto $-.11
023A   1487               M    bsf PORTC,1
                      00265    data_tx 0x6e,COM_AMP
023B   1283 1303          M    banksel PORTC;写入LRS5752各寄存器的合适值
MPASM  4.00 Released                                 74AS.ASM   11-1-2006  9:15:52         PAGE 16


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

023D   1087               M    bcf PORTC,1
                          M ;writeaddress
023E   306E               M    movlw 0x6e
023F   00??               M    movwf input
0240   3008               M    movlw 8
0241   00??               M    movwf count
0242   30FF               M    movlw 0xff
0243   05??               M    andwf input,1  ;使用GPIO的方法,将RC3作为时钟输入,RC4作为数据输入(并口模拟串口的方法)
0244   1800               M    btfsc input,0  ;上升沿触发
0245   1607               M    bsf PORTC,4
0246   1207               M    bcf PORTC,4
0247   1187               M    bcf PORTC,3
0248   0000               M    nop
0249   1587               M    bsf PORTC,3
024A   0000               M    nop
024B   0C??               M    rrf input,1
024C   0B??               M    decfsz count,1
024D   2???               M    goto $-.11
                          M ;writevalue
024E   3084               M    movlw .132
024F   00??               M    movwf input
0250   3008               M    movlw 8
0251   00??               M    movwf count
0252   30FF               M    movlw 0xff
0253   05??               M    andwf input,1
0254   1800               M    btfsc input,0
0255   1607               M    bsf PORTC,4
0256   1207               M    bcf PORTC,4
0257   1187               M    bcf PORTC,3
0258   0000               M    nop
0259   1587               M    bsf PORTC,3
025A   0000               M    nop
025B   0C??               M    rrf input,1
025C   0B??               M    decfsz count,1
025D   2???               M    goto $-.11
025E   1487               M    bsf PORTC,1
                      00266    data_tx 0x6f,COM_DC
025F   1283 1303          M    banksel PORTC;写入LRS5752各寄存器的合适值
0261   1087               M    bcf PORTC,1
                          M ;writeaddress
0262   306F               M    movlw 0x6f
0263   00??               M    movwf input
0264   3008               M    movlw 8
0265   00??               M    movwf count
0266   30FF               M    movlw 0xff
0267   05??               M    andwf input,1  ;使用GPIO的方法,将RC3作为时钟输入,RC4作为数据输入(并口模拟串口的方法)
0268   1800               M    btfsc input,0  ;上升沿触发
0269   1607               M    bsf PORTC,4
026A   1207               M    bcf PORTC,4
026B   1187               M    bcf PORTC,3
026C   0000               M    nop
026D   1587               M    bsf PORTC,3
026E   0000               M    nop
MPASM  4.00 Released                                 74AS.ASM   11-1-2006  9:15:52         PAGE 17


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

026F   0C??               M    rrf input,1
0270   0B??               M    decfsz count,1
0271   2???               M    goto $-.11
                          M ;writevalue
0272   3064               M    movlw .100
0273   00??               M    movwf input
0274   3008               M    movlw 8
0275   00??               M    movwf count
0276   30FF               M    movlw 0xff
0277   05??               M    andwf input,1
0278   1800               M    btfsc input,0
0279   1607               M    bsf PORTC,4
027A   1207               M    bcf PORTC,4
027B   1187               M    bcf PORTC,3
027C   0000               M    nop
027D   1587               M    bsf PORTC,3
027E   0000               M    nop
027F   0C??               M    rrf input,1
0280   0B??               M    decfsz count,1
0281   2???               M    goto $-.11
0282   1487               M    bsf PORTC,1
                      00267    data_tx 0x70,DACOUT
0283   1283 1303          M    banksel PORTC;写入LRS5752各寄存器的合适值
0285   1087               M    bcf PORTC,1
                          M ;writeaddress
0286   3070               M    movlw 0x70
0287   00??               M    movwf input
0288   3008               M    movlw 8
0289   00??               M    movwf count
028A   30FF               M    movlw 0xff
028B   05??               M    andwf input,1  ;使用GPIO的方法,将RC3作为时钟输入,RC4作为数据输入(并口模拟串口的方法)
028C   1800               M    btfsc input,0  ;上升沿触发
028D   1607               M    bsf PORTC,4
028E   1207               M    bcf PORTC,4
028F   1187               M    bcf PORTC,3
0290   0000               M    nop
0291   1587               M    bsf PORTC,3
0292   0000               M    nop
0293   0C??               M    rrf input,1
0294   0B??               M    decfsz count,1
0295   2???               M    goto $-.11
                          M ;writevalue
0296   30A3               M    movlw .163
0297   00??               M    movwf input
0298   3008               M    movlw 8
0299   00??               M    movwf count
029A   30FF               M    movlw 0xff
029B   05??               M    andwf input,1
029C   1800               M    btfsc input,0
029D   1607               M    bsf PORTC,4
029E   1207               M    bcf PORTC,4
029F   1187               M    bcf PORTC,3
02A0   0000               M    nop
MPASM  4.00 Released                                 74AS.ASM   11-1-2006  9:15:52         PAGE 18


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

02A1   1587               M    bsf PORTC,3
02A2   0000               M    nop
02A3   0C??               M    rrf input,1
02A4   0B??               M    decfsz count,1
02A5   2???               M    goto $-.11
02A6   1487               M    bsf PORTC,1
02A7   3050           00268    movlw 0x50   ;0x50-0x52作为模式选择的储存值
02A8   0084           00269    movwf FSR    ;存取值分别为0x20,0x21,0x23,进行PAL,NTSC,自动检测之间的转换
02A9   3020           00270    movlw 0x20
02AA   0080           00271    movwf INDF
02AB   0A84           00272    incf FSR,1
02AC   3021           00273    movlw 0x21
02AD   0080           00274    movwf INDF
02AE   0A84           00275    incf FSR,1
02AF   3023           00276    movlw 0x23
02B0   0080           00277    movwf INDF
02B1   3060           00278    movlw 0x60   ;0x60-0x67作为用户选择的存储值,调整PICTURE,COLOR,BRIGHT,COMAMPITUDE四种因素
02B2   0084           00279    movwf FSR    ;需要的话可再增加
02B3   3061           00280    movlw 0x61   ;先是地址值,然后是对应的写入值
02B4   0080           00281    movwf INDF
02B5   0A84           00282    incf FSR,1
02B6   3010           00283    movlw PICTURE
02B7   0080           00284    movwf INDF
02B8   0A84           00285    incf FSR,1
02B9   3062           00286    movlw 0x62
02BA   0080           00287    movwf INDF
02BB   0A84           00288    incf FSR,1
02BC   3094           00289    movlw COLOR
02BD   0080           00290    movwf INDF
02BE   0A84           00291    incf FSR,1
02BF   306B           00292    movlw 0x6b
02C0   0080           00293    movwf INDF
02C1   0A84           00294    incf FSR,1
02C2   30B9           00295    movlw BRIGHT
02C3   0080           00296    movwf INDF
02C4   0A84           00297    incf FSR,1
02C5   306E           00298    movlw 0x6e
02C6   0080           00299    movwf INDF
02C7   0A84           00300    incf FSR,1
02C8   3084           00301    movlw COM_AMP
02C9   0080           00302    movwf INDF
02CA   0A84           00303    incf FSR,1
02CB   3050           00304    movlw 0x50
02CC   00??           00305    movwf modeaddress
02CD   3060           00306    movlw 0x60
02CE   00??           00307    movwf selectaddress
02CF   3061           00308    movlw 0x61
02D0   00??           00309    movwf selectvalue
02D1   2???           00310    goto $
02D2                  00311 ISR 
02D2   0000           00312     nop
02D3   0000           00313     nop
02D4   1283 1303      00314     banksel INTCON    ;中断程序
MPASM  4.00 Released                                 74AS.ASM   11-1-2006  9:15:52         PAGE 19


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

02D6   1C8B           00315     btfss INTCON,INTF  ;是否为INT中断
02D7   2???           00316     goto step1
02D8   2???           00317     goto intservice
02D9                  00318 step1
02D9   1D0B           00319     btfss INTCON,T0IF  ;是否为定时器中断
02DA   2???           00320     goto step2
02DB   2???           00321     goto timersevice
02DC                  00322 step2
02DC   1C0B           00323     btfss INTCON,RBIF ;是否为RB中断
02DD   2???           00324     goto $
02DE   2???           00325     goto irservice
                      00326     
02DF                  00327 intservice
02DF   108B           00328     bcf INTCON,INTF   ;判断为INT中断
                      00329     push 
02E0   00??               M    movwf w_temp
02E1   0803               M    movf STATUS,w
02E2   00??               M    movwf status_temp
02E3   2???           00330     call delay
02E4   1283 1303      00331     banksel PORTB
02E6   1106           00332     bcf PORTB,2
                      00333     gettouchvalue controlx,bufferx1,bufferx2
02E7   30D0               M    movlw controlx
02E8   00??               M    movwf ctrlword
02E9   3008               M    movlw 8
02EA   00??               M    movwf count
                          M ;LOOP1    ;input controlword
02EB   30FF               M    movlw 0xff
02EC   05??               M    andwf ctrlword,1   ;同样用GPIO的方法进行ADS7846控制字的写入
02ED   1B80               M    btfsc ctrlword,7   ;得到触摸屏的x值和y值,特别要注意时序问题
02EE   1607               M    bsf PORTC,4
02EF   1207               M    bcf PORTC,4
02F0   1187               M    bcf PORTC,3
02F1   0000               M    nop
02F2   1587               M    bsf PORTC,3          ;上升沿触发
02F3   0000               M    nop
02F4   0D??               M    rlf input,1
02F5   0B??               M    decfsz count,1
02F6   2???               M    goto $-.11
02F7   01??               M    clrf bufferx2
02F8   1683 1303          M    banksel TRISC
Message[302]: Register in operand not in bank 0.  Ensure that bank bits are correct.
02FA   1687               M    bsf TRISC,5
                          M ;wait 
02FB   1283 1303          M    banksel PORTB
02FD   1886               M    btfsc PORTB,1
02FE   2???               M    goto $-.1
02FF   3004               M    movlw 4
0300   00??               M    movwf count
                          M ;coutinue1  
0301   0D??               M    rlf bufferx2,1
0302   1587               M    bsf PORTC,3
0303   0000               M    nop
MPASM  4.00 Released                                 74AS.ASM   11-1-2006  9:15:52         PAGE 20


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

0304   1187               M    bcf PORTC,3       ;下降沿触发
0305   0000               M    nop
0306   1A87               M    btfsc PORTC,5
0307   0A??               M    incf bufferx2,1
0308   0B??               M    decfsz count,1
0309   2???               M    goto $-.8
030A   3008               M    movlw 8
030B   00??               M    movwf count
                          M ;coutinue2  
030C   0D??               M    rlf bufferx1,1
030D   1587               M    bsf PORTC,3
030E   0000               M    nop
030F   1187               M    bcf PORTC,3
0310   0000               M    nop
0311   1A87               M    btfsc PORTC,5
0312   0A??               M    incf bufferx1,1
0313   0B??               M    decfsz count,1

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -