LPC92* can use your Touchless code to ISP. At least, I have tested it with LPC922.
It seems that Touchless pass two parameter to BOOTROM fuction. Can you provide C function interface to call into BOOTROM directly? I think it will be very helpful. Otherwise, to write ASM module is a must as my method is as below.
STEP1
Create and include into project a file NoTouch.A51:
;
NAME NOTOUCH
PUBLIC NoTouch
SEG_NoTouch SEGMENT CODE
RSEG SEG_NoTouch
ISP_ENTRY EQU 0xFF00
NoTouch:
MOV A,02h
MOV R5,01h
MOV R7,03h
LCALL ISP_ENTRY
RET
END
;
STEP2
Add a line to C file
/**/
extern void NoTouch();
/**/
STEP3
Calling the fuction whenever want to do. For example, I put it in INT0 service and then replace several ISP wire and complicated timing with one button and a single finger.
>>Can you provide C function interface to call into BOOTROM directly?<<
No, no guaranteed way to set registers in C?
>>Otherwise, to write ASM module is a must as my method is as below.<<
What's the big deal?
Erik