Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/01/06 16:27
Read: times


 
#110984 - Better results if...
Responding to: ???'s previous message
Mark,
You'll get better results if you format your code so it's easier to read for others. All you have to do is use (pre) before the code segment and (/pre) after the code segment, but instead of using "(" and ")" use "<" and ">".

Jon

SET_WE	EQU	08H		;enable writing
F1	EQU	0D1H
FMCON	EQU	0E4H
FMDATA	EQU	0E5H
KEY	EQU	0FFH
KEYVAL	EQU	96H		;IAP request key value
;
;
	RSEG	?PR?_iap_write?LPC9xxIAPLIB
;
_iap_write:
				; name = R7, value = R5
	LCALL	iap_feedwd	; feed watchdog if needed
	LCALL	iap_disableint	; disable interrupts if needed
	MOV	R0,#KEY		; IAP authorization key.
	MOV	@R0,#KEYVAL
	CLR	F1		;specify IRAM
	MOV	FMCON,#SET_WE	;enable HARD write
	MOV	FMDATA,@R0	;set HARD key
	LCALL	IAP_WRITE	; call iap routine
	LCALL	iap_enableint	; enable interrupts if needed
	LJMP	iap_exit	; put status in iap_status and exit


List of 3 messages in thread
TopicAuthorDate
IAP LPC9xx problem            01/01/70 00:00      
   Better results if...            01/01/70 00:00      
   Use the keil debugger            01/01/70 00:00      

Back to Subject List