Not applicable
Feb 09, 2012
02:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 09, 2012
02:35 AM
I'd like to do more fine grained interrupt masking, such as only setting EADC = 0 while reading from the variable my ISR stores the conversion result in.
My question is, will an interrupt be lost while EADC is disabled or will it be serviced once EADC is enabled again?
So far I've done all that masking with EA. But I'd prefer to make such locks not only as short, but also as narrow scoped as possible.
EADC = 0;
adc7_copy = adc7;
EADC = 1;
My question is, will an interrupt be lost while EADC is disabled or will it be serviced once EADC is enabled again?
So far I've done all that masking with EA. But I'd prefer to make such locks not only as short, but also as narrow scoped as possible.
Labels
- Labels:
-
XC800
3 Replies
Not applicable
Feb 09, 2012
10:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 09, 2012
10:49 AM
I've done some reading and now I think I'll get the desired result if I set IMODE = 1.
Not applicable
Feb 09, 2012
09:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 09, 2012
09:16 PM
Yes, IMODE=1 is exactly what you need in this case
Not applicable
Feb 10, 2012
01:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 10, 2012
01:54 AM
Thank you for the confirmation!