IAP call from assembler

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IAP call from assembler

540 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by IanB on Mon Nov 16 13:21:37 MST 2015
If I wanted to call the IAP (EEPROM write) routine from assembler, is the following correct?
          .equ  iaplocation,0x1fff1ff1
command: .space 20
result: .space 16

Command number, eeprom address, RAM address, number of bytes and clock frequency then go in command, command+4, command+8, command+12 and command+16 respectively
           LDR R0,=command
           LDR R1,=result
           BL iaplocation

标签 (1)
0 项奖励
回复
0 回复数