piclist 2000\05\25\183130a >
Thread: Stupid things to avoid when using UDATA_OVR
www.piclist.com/techref/microchip/memory.htm?key=data
flavicon
face BY : Quitt, Walter email (remove spam text)



Folks when writing PIC assembly:

Do NOT mix variables declared UDATA_OVR that
are used in interrupt and non-interrupt level code!
That bug took some time to figure out!
I was trying to be too clever this time......

Now I use overlayed variables ONLY in non-real
time (non-interrupt code.)  The file registers (variables)
used in interrupt service routines are either just UDATA
or UDATA_SHR.

I have yet figure out if UDATA will go down into or over
UDATA_SHR space if you run out of UDATA space.  Guess
we'll see.

GL, Walt...

<C212BEDAC97AD3118C450060080A4A2E05C60D@ALMA>

See also: www.piclist.com/techref/microchip/memory.htm?key=data
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Stupid things to avoid when using UDATA_OVR

month overview.

new search...