Searching \ for '[PIC]: Interrupt routin interferes with normal exe' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/ints.htm?key=interrupt
Search entire site for: 'Interrupt routin interferes with normal exe'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: Interrupt routin interferes with normal exe'
2003\05\07@070453 by Silvio Baccari

flavicon
face
I'm using C18 compiler with 18F452 , but some time the execution of
interrupt conflict with execution of the "normal" code not in the ISR.
I have used the directive:

#pragma interrupt high_isr save =
PRODL,PRODH,BEXP,AEXP,AARGB0,AARGB1,AARGB2,AARGB3,BARGB0,BARGB1,BARGB2,BARGB3

Is there another solution for this type of problem?

Silvio

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads

2003\05\07@105932 by Tal

flavicon
face
What do you mean by 'interfering' ? What happens the the 'normal' code ?

I cannot give you an 18F specific answer but there are many things that
can go wrong, for example, if both
Access the same resource (I/O, memory variable, etc) at the same time
(unless it is done right), the interrupt routing cause stack overflow,
etc.

Tal

> {Original Message removed}

2003\05\07@134224 by Ned Konz

flavicon
face
On Wednesday 07 May 2003 04:04 am, Silvio Baccari wrote:
> I'm using C18 compiler with 18F452 , but some time the execution of
> interrupt conflict with execution of the "normal" code not in the
> ISR. I have used the directive:
>
> #pragma interrupt high_isr save =
> PRODL,PRODH,BEXP,AEXP,AARGB0,AARGB1,AARGB2,AARGB3,BARGB0,BARGB1,BAR
>GB2,BARGB3
>
> Is there another solution for this type of problem?

What do you mean by "conflict"?

Note that there are some errata with regards to using both the high
and low priority interrupts at the same time.

--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads

2003\05\08@024916 by Kari Lehikko

flavicon
face
I don't know what revision of the compiler you are using, but some older
revisions had some trouble with indirect addressing registers. If you
are using an older version, please upgrade to latest or at least use
large memory model & 16-bit stack.

IMHO better is to use:
#pragma interrupt high_isr
save=PRODL,PRODH,section(.tmpdata),section("MATH_DATA")

- .tmpdata has to be saved if you call a C-function from the interrupt
function.
- MATH_DATA has to be saved if you use floating point variables in any
way during interrupts

New manual has quite good instructions how to make interrupts, download
it from the website.

Regards,

Kari Lehikko
Finland

Silvio Baccari wrote:
{Quote hidden}

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

More... (looser matching)
- Last day of these posts
- In 2003 , 2004 only
- Today
- New search...