Jigar 4 Electronics
Full Member level 5
- Joined
- Apr 28, 2011
- Messages
- 312
- Helped
- 40
- Reputation
- 82
- Reaction score
- 38
- Trophy points
- 1,318
- Location
- Hamilton, ON, Canada
- Activity points
- 3,368
Hello All,
I am using LM4F120 Stellaris Launchpad.
Though this question is not related strictly to this only controller, I want to ask to solve my query which has been born while using this controller!
I am programming my logic and I need a strategy to active a software interrupt when the value of the particular variable is get exceeded by predefined threshold value.
Is it possible?? And when the value is get lower down to that threshold value the interrupt should be disable.
For ex. Variable name is flag
Threshold value Th = 200;
Whenever Flag is more than 200 the interrupt should be active (for ex a timer interrupt have a load value of 1 ms)
& whenever Flag gets lesser then 200 the interrupt should be disable.
Please guide me to develop such logic.
Thanks a lot for your help.
I am using LM4F120 Stellaris Launchpad.
Though this question is not related strictly to this only controller, I want to ask to solve my query which has been born while using this controller!
I am programming my logic and I need a strategy to active a software interrupt when the value of the particular variable is get exceeded by predefined threshold value.
Is it possible?? And when the value is get lower down to that threshold value the interrupt should be disable.
For ex. Variable name is flag
Threshold value Th = 200;
Whenever Flag is more than 200 the interrupt should be active (for ex a timer interrupt have a load value of 1 ms)
& whenever Flag gets lesser then 200 the interrupt should be disable.
Please guide me to develop such logic.
Thanks a lot for your help.