Question: Can you add code to this program that turns the LED ON/OFF in an infinite loop ****PASTED CODE**** IOCON_P1_13 EQU 0x4002C0B4 ; P1[13] IOCON_P1_13 R/W

Can you add code to this program that turns the LED ON/OFF in an infinite loop

Can you add code to this program that turns the LED ON/OFF

****PASTED CODE****

IOCON_P1_13 EQU 0x4002C0B4 ; P1[13] IOCON_P1_13 R/W 0x030 0x4002C0B4 IOCON_P1_18 EQU 0x4002C0C8 ; P1[18] IOCON_P1_18 R/W 0x030 0x4002 C0C8 D (tables 83, 84) ; This is essentially Table 94 from UM10562 LPC4088QSB_P0 EQU 0x20098000 LPC4088QSB_P1 EQU 0x20098020 LPC4088QSB_P2 EQU 0x20098040 LPC4088QSB_P3 EQU 0x20098060 LPC4088QSB_P4 EQU 0x20098080 LPC4088QSB_P5 EQU 0x200980A0 DIR_REG_OFFSET EQU 0x00 MSK_REG_OFFSET EQU 0x10 PIN_REG_OFFSET EQU 0x14 SET_REG_OFFSET EQU 0x18 CLR_REG_OFFSET EQU 0x1C ; End Table 94

bit13 EQU (1

; ------------------------------------------ ; Delay subroutine delay PUSH {R0,LR} MOVS r0, #0x1000000 ;1 cycle B1 SUBS r0, r0, #1 ;1 cycle BNE B1 ;2 if taken, 1 otherwise POP {R0,PC} ; end delay subroutine ; ------------------------------------------ ALIGN END

IOCON Pl 13 EQU 0x4002C0B4 ; Pl[13] IOCON PI 13 R/W 0x030 Ox4002C0B4 IOCON P118 EQU 0x4002COCB ; P1[18IOCON 21 18 R/W 0x030 0x4002 COCB D (tables 83, 84) ; This is essentially Table 94 from UM10562 LPC40B8QSB_PO EQU 0x20090000 LPC40B8QSB PI EQU 0x2009B020 LPC40BBSB 2 EQU 0x20098040 LPC40BXQSB_P3 EQU 0x20098060 LPC40B8QSB P4 EQU 0x2009BOBO LPC40B8QSB P5 EQU 0x2009BOAD DIR_REG_OFFSET EQU 0x00 MSK REG OFFSET EQU Ox10 PIN REG OFFSET EQU 0x14 SET REG OFFSET EQU Oxl CLR REG OFFSET EQU Oxlc End Table 94 bit13 bit18 EQU (1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!