Leo Hendrawan

difference between SWI and TRAP

Discussion created by Leo Hendrawan on Mar 30, 2006
Latest reply on Mar 31, 2006 by Leo Hendrawan
Hello all,

I am working on a project about RTOS on HCS12 uC. I whave a doubt about what is the difference between SWI and TRAP, as far as I read, both are not affected by I bit in CCR, does someone know what is the difference between both (advantage and disadvantage). The RTOS need a simulated interrupt whent performing context switching.

thansk for any help,