This preview shows page 1. Sign up to view the full content.
Unformatted text preview: DELAY_5S: LDX #1000 DELAY_1: LDY #40000 DBNE Y, * DBNE X, DELAY_1 3. Finish the following code that can display data on the discrete LED. ORG $1000 DATA DC.B $F0 ORG $2000 MOVB #$FF , DDRB MOVB #%00000010 , DDRJ MOVB DATA , PORTB BCLR PORTJ , #%00000010 JSR DELAY_5s BSET PORTJ , #%00000010 4. Finish the following code that can test whether Key4 is pressed MOVB #$0F , DDRA BSET PORTA, #%00001111 BCLR PORTA, #%00000001 NOP BRSET PORTA, #%11110000 , * LDAA PORTA C M P A #$DE BNE KEY4_NOT_PRESSED...
View Full Document
This note was uploaded on 11/22/2011 for the course ECE 350 taught by Professor Staff during the Spring '08 term at Alabama.
- Spring '08