Menu

[Solved]Lab Objectives Objective Activity Develop Application Using Interrupts Tasks Write Hcs12 A Q37064046

Lab Objectives The objective of this activity is to develop an application using interrupts Tasks Write an HCS12 assembly proEntry export Entry symbol ABSENTRY Entry INCLUDE MC9512DG256 INC : for absolute assembly: mark DATA EQU $1000 PROG EQU $20
please finish the rest of the program, im using codewarriorLab Objectives The objective of this activity is to develop an application using interrupts Tasks Write an HCS12 assembly program to implement the following functions Display hex 38 pattern on the 8 LEDs .Pressing SW2 (left most pushbutton switch) shift the pattern left 1-bit position Pressing SW3 rotate the pattern left 1-bit position Pressing SW4 rotate the pattern right 1-bit position .Pressing SW5 shift the pattern right 1-bit position . Dip switch position 1 is used to reload the initial hex 38 pattern .All switch inputs are handled by interrupts Entry export ‘Entry’ symbol ABSENTRY Entry INCLUDE MC9512DG256 INC’ : for absolute assembly: mark DATA EQU $1000 PROG EQU $2000 ORG DATA PATTERN FCB 38 OUT FCB 0 ORG PROG Entry IDS #PROG BSR INIT LDAA PATTERN STAA OUT MAIN LDAA OUT STAA PORTB BRA MAIN INIT SEI ESET DDRP. #SOF BSET PTP. #$0F BSET DDRB, SFF BCLR DDRH, $03 MOVB #s03.PIEH MOVB #s03,PIFH CLI RTS PB ISR BRCLR PTH, $01, SHIFT R BRCLR PTH, $02. ROR R BRA ISR END SHIFT R LDAA OUT LSRA STAA OUT BRA ISR END LDAA OUT RORA STAA OUT ROR R ISR-END MOVB RTI #s03.PIFH ORG $3E4C FDB PB ISR END Show transcribed image text Lab Objectives The objective of this activity is to develop an application using interrupts Tasks Write an HCS12 assembly program to implement the following functions Display hex 38 pattern on the 8 LEDs .Pressing SW2 (left most pushbutton switch) shift the pattern left 1-bit position Pressing SW3 rotate the pattern left 1-bit position Pressing SW4 rotate the pattern right 1-bit position .Pressing SW5 shift the pattern right 1-bit position . Dip switch position 1 is used to reload the initial hex 38 pattern .All switch inputs are handled by interrupts
Entry export ‘Entry’ symbol ABSENTRY Entry INCLUDE MC9512DG256 INC’ : for absolute assembly: mark DATA EQU $1000 PROG EQU $2000 ORG DATA PATTERN FCB 38 OUT FCB 0 ORG PROG Entry IDS #PROG BSR INIT LDAA PATTERN STAA OUT MAIN LDAA OUT STAA PORTB BRA MAIN INIT SEI ESET DDRP. #SOF BSET PTP. #$0F BSET DDRB, SFF BCLR DDRH, $03 MOVB #s03.PIEH MOVB #s03,PIFH CLI RTS PB ISR BRCLR PTH, $01, SHIFT R BRCLR PTH, $02. ROR R BRA ISR END SHIFT R LDAA OUT LSRA STAA OUT BRA ISR END LDAA OUT RORA STAA OUT ROR R ISR-END MOVB RTI #s03.PIFH ORG $3E4C FDB PB ISR END

Expert Answer


Answer to Lab Objectives The objective of this activity is to develop an application using interrupts Tasks Write an HCS12 assembl… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *