Help! :) Error with FSR0 and MPLAB-C18?
Jeff Meyer email (remove spam text)
It seems that I am encountering an error in MPLAB-C18. I have a procedure
that has a parameter passed to it. That parameter is used as an index into
an array of structures. If that procedure is interrupted, when the
interrupt handler returns, the wrong index is used to finish the
assignments. For example, if this is the code that is running (ID is the
parameter, and is equal to 1 before the interrupt):
** Interrupt occurs here **
When the return from interrupt occurs, ID is now 0. So the code ends up
indexing the wrong element of the array...
Anybody else seen anything like this? What should I post to help out?
Rockwell Collins, Inc.
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email mitvma.mit.edu with SET PICList DIGEST in the body listserv
See also: www.piclist.com/techref/microchip/languages.htm?key=mplab
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the