Sunil Kumar

when a project created in MC9S12XDP512 in codewarrior has  Enable interrupts in main what is it

Discussion created by Sunil Kumar on Jun 4, 2007
Latest reply on Jun 4, 2007 by Alban Rampon
hai sir,
 
sub:can you please tell me when a project created in MC9S12XDP512 in codewarrior has  Enable interrupts in main automatically and it creates like this
main()
{
put ur code here;
 
Enable interrupts;
for(;:smileywink:;
}
what is the importance of Enable interrupts what it does actually is it connected in any way to vector.c and ISRS.because of that only interrupts in ISRS will be enabled or what.please tell me.should we keep our entire code before Enable interrupts or we need to keep enable inteerupts in between our code where ever necessary when i keep enable interrupts in my code before tranmit routine and executing its giving message unimplemeted isr[i am using only CAN recive ISr rest all keeping as unimplemented]  what might be problem if i am keeping enable interrupts after the ocde ie as last line i am not getting that error but receiving side interrupts are not enabled what might be the problem please suggest me or atleast expalin about eanble interrupts.
 
thanks inadvance
bye
sunil
 

Outcomes