IAP call from assembler

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IAP call from assembler

773件の閲覧回数
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 返答(返信)