| |
Jallist Archive Apr 2005
Re: Pic resetting
From: "japus10" <japus13(at)telefonica.net>
Date: 01 Apr 2005 09:03:32 -0000
Hi all,
> > jumping out to the main program will break it. During ISR period
> > you must identify source of interrupt and clear appropriate flag.
> If the flag is not cleared and you execute a retfie the ISR will
> reccur inifinitely ...
This is not correct at all. Not all interrupt flags must be cleared
by software i.e. usart module: "Flag bit TXIF is set when enable bit
TXEN is set. TXIF is cleared by loading TXREG." (you don't need to
clear "by hand" the TXIF).
Regards,
Javi.
|
|