> My usb device is not powered by usb bus. I am applying the external power to it.
Yes I know that. Powered ones obviously power off when unplugged and reset-and-start when plugged in. I was asking you you wanted to emulate that with your device.
> What I do not know is that in which usb interrupt status should I reset the CPU.
Find some example code for USB on Freescale parts. See what they do.
I assume you're meaning the interrupts in "20.4.1.5 OTG Interrupt Status Register (OTG_INT_STAT)"? There's only 5 active bits, and they're pretty well described. Since you've said you're a "B Device" then I'd guess "B_SESS_CHG - This bit is set when a change in VBUS is detected on a B device.". But it wouldn't take you long to see which ones work by trial and error.
The interrupt tells you something has changed. You then have to look at the status bits behind the interrupt to see if it was for the voltage going on or off, in this case the bits in "20.4.1.7 Interrupt Status Register (OTG_STAT)". You don't have to enable the interrupt if your code can work by polling though.
Tom