Searching \ for 'Interrupt problem' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/microchip/ints.htm?key=interrupt
Search entire site for: 'Interrupt problem'.

Truncated match.
PICList Thread
'Interrupt problem'
1997\04\29@121148 by FrankT

picon face
I use 3 interrupts with the 16c74, I2C,Timer1 and Timer0

Timer 0 is a system timer wich interrupts every ms
Timer 1 is used with the compare register to generate a frequency signal on
a port pin. The signal
can be changed and switched on/off via i2c.
I2c interrupt decodes the received mixed mode I2C command.

This works fine for some time, but after some actions I don't return in my
main loop? What can cause this ?

Frank Temmerman

1997\04\29@123808 by Miller, Steve

flavicon
face
>I use 3 interrupts with the 16c74, I2C,Timer1 and Timer0

>Timer 0 is a system timer wich interrupts every ms
>Timer 1 is used with the compare register to generate a frequency signal
on
>a port pin. The signal
>can be changed and switched on/off via i2c.
>I2c interrupt decodes the received mixed mode I2C command.

>This works fine for some time, but after some actions I don't return in
my
>main loop? What can cause this ?

>Frank Temmerman


Frank,

The most common reason for this is that interrupts are occurring
simultaneously and you are not handling this condition properly.

1.  Look carefully on how you are handling interrupts occurring within
interrupts and the piority that you are using.

2.  Physically disable one interrupt at a time and see if the problem
goes away.  If you find that disabling one or more interrupts keeps the
code running, then look at those areas of the interrupt handler code.

Good Luck.

----- Steve

1997\04\30@003132 by tjaart

flavicon
face
FrankT wrote:
>
> I use 3 interrupts with the 16c74, I2C,Timer1 and Timer0
>
> Timer 0 is a system timer wich interrupts every ms
> Timer 1 is used with the compare register to generate a frequency signal on
> a port pin. The signal
> can be changed and switched on/off via i2c.
> I2c interrupt decodes the received mixed mode I2C command.
>
> This works fine for some time, but after some actions I don't return in my
> main loop? What can cause this ?
>
> Frank Temmerman

Check to see if your ISR is not longer than any of the timer interrupt
periods. This will keep your program in the ISR forever.

--
Friendly Regards

Tjaart van der Walt
spam_OUTtjaartTakeThisOuTspamwasp.co.za
_____________________________________________________________
| Another sun-deprived R&D Engineer slaving away in a dungeon |
|             WASP International  http://wasp.co.za           |
|             GSM and GPS value-added applications            |
|  Voice : +27-(0)11-622-8686   |   Fax : +27-(0)11-622-8973  |
|_____________________________________________________________|


'Interrupt problem'
1997\05\02@042810 by Jon Mills
flavicon
face
It sounds like it could be a stack overflow problem to me..

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