Jump to content
ELFORUM - Forumul electronistilor

Ajutor modificare asm.


Ata

Recommended Posts

Buna ziua.Am urmatorul asm si doresc sa schimb intrarea: RB0 cu RB6 .Unde trebuie sa mai modific in afara de: BSF PORTB,0 ; !!Bank!! PORTB - TRISB - PORTB - TRISB Asa am schimbat: BSF PORTB,6 ; !!Bank!! PORTB - TRISB - PORTB - TRISBdar mai trebuie undeva. Unde?.Multumesc.

CDI.txt

Link to comment
Share on other sites

  • Replies 9
  • Created
  • Last Reply

Mentionez ca programul functioneaza, chiar daca da atentionari la asamblare, le da poate ca dupa ce este scris in hex, in montaj, prin bootloader se adauga date .Asa am vrut dar PORTB,0 nu este decat intr-un loc.

Link to comment
Share on other sites

In asmul asta, apare TRIS doar ca specificatie, inseamna ca este scris in alt fel. Am incercat asa: movlw B'11000011' ; bit 2,3,4,5 = o/p's, 0,1,6,7 = i/p's movwf TRISB ; set portB ;===================== BCF PORTA,0 ; !!Bank!! PORTA - TRISA - Unimplemented - Unimplemented BSF PORTA,1 ; !!Bank!! PORTA - TRISA - -----10K + ---- programare BCF PORTA,2 ; !!Bank!! PORTA - TRISA - Unimplemented - Unimplemented BCF PORTA,3 ; !!Bank!! PORTA - TRISA - Unimplemented - Unimplemented BCF PORTA,4 ; !!Bank!! PORTA - TRISA - Unimplemented - Unimplemented BSF PORTB,7 ; !!Bank!! PORTB - TRISB - PORTB - TRISB - 6 mutat pe 13 -pickup BCF PORTB,3 ; !!Bank!! PORTB - TRISB - PORTB - TRISB - 9 -30Khz-??? BCF PORTB,4 ; !!Bank!! PORTB - TRISB - PORTB - TRISB - 10-Output Scr-Igbt BCF PORTB,5 ; !!Bank!! PORTB - TRISB - PORTB - TRISB - 11-Lednu merge.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.




×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.Terms of Use si Guidelines