hai i'm working with LPC2148 and keil Real view compiler i want to know how to write Software interrupt Function.. i tried some but met with an error..
i want to know how to define SWI function Call SWI Function
is there anything i want to do with SWI.s please anybody reply with Good example
Hi, did you read the manuals yet? http://www.keil.com/support/man/docs/rlarm/rlarm_ar_swi_func.htm http://www.keil.com/support/man/docs/ca/ca_le_swi.htm There is an example in \KEIL\ARM\EXAMPLES\INTERRUPT\
Thanks i did it...
and i want to know how many Software interrupts we can have..
http://www.keil.com/support/man/docs/armasm/armasm_cihidabi.htm
Syntax
SVC{cond} #immed
immed is an expression evaluating to an integer in the range: * 0 to 2^24-1 (a 24-bit value) in an ARM instruction * 0-255 (an 8-bit value) in a 16-bit Thumb instruction.
immed is ignored by the processor. However, it can be retrieved by the exception handler to determine what service is being requested.
Thanks a lot for replying
With indirect SVC, you can have roughly four billion SVCs. Look up __svc_indirect in the compiler reference manual.
Regards Marcus http://www.doulos.com/arm/