1 / 8

LIST p=16c57,f=inhx8m #include <P16C5X.INC> ; ;Voorbeeld van indirecte adressering ;

LIST p=16c57,f=inhx8m #include <P16C5X.INC> ; ;Voorbeeld van indirecte adressering ; ;alle registers van bank 0 t.e.m.bank 1 ;worden op 0 gezet, ;daarna op 01 gezet, enz. ; regf equ 0fh ; org 0x7ff ;resetvector is 7ffh goto start ; org 0x000 start movlw 0x00 movwf regf ;

aelwen
Télécharger la présentation

LIST p=16c57,f=inhx8m #include <P16C5X.INC> ; ;Voorbeeld van indirecte adressering ;

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. LIST p=16c57,f=inhx8m #include <P16C5X.INC> ; ;Voorbeeld van indirecte adressering ; ;alle registers van bank 0 t.e.m.bank 1 ;worden op 0 gezet, ;daarna op 01 gezet, enz. ; regf equ 0fh ; org 0x7ff ;resetvector is 7ffh goto start ; org 0x000 start movlw 0x00 movwf regf ; terug movlw B'00010000' movwf FSR movf regf,W BANK0 movwf INDF incf FSR,1 btfsc FSR,4 goto BANK0 ; movlw B'00110000' movwf FSR movf regf,W BANK1 movwf INDF incf FSR,1 btfsc FSR,4 goto BANK1 ; Voorbeeld

  2. Oefening: • 1. Verplaats de inhoud van Bank 0 naar Bank 1 • 2. Verwissel de inhoud van Bank 0 met de inhoud van Bank 1

More Related