求 嵌入式ARM中 注明开发板型号 LED一盏灯亮,灭,中间设置延迟。c 或汇编
发布网友
发布时间:2022-05-25 12:14
我来回答
共1个回答
热心网友
时间:2023-10-26 14:41
硬件平台:FS2410开发平台:MDK3.5程序源码:GPFCON EQU 0x56000050 ;Port F control
GPFDAT EQU 0x56000054 ;Port F data
GPFUP EQU 0x56000058 ;Pull-up control F
AREA myarea, CODE
ENTRY LDR r0, =0x5500
LDR r1, = GPFCON
STR r0,[r1] LDR r0, = 0x0
LDR r1, =GPFUP
STR r0,[r1]
start_while
LDR r0, = 0x0
LDR r1, =GPFDAT
STR r0,[r1] LDR r0, =0xffffloop1
SUBS r0,r0, #1
BNE loop1 LDR r0, = 0xF0
LDR r1, =GPFDAT
STR r0,[r1] LDR r0, =0xffff
loop2
SUBS r0,r0, #1
BNE loop2 B start_whilestop
B stop
END