Raady Here
Full Member level 5
![Full Member level 5](/styles/images/ranks/flevel2.gif)
Hi ,
I am trying to check what kind of reset is being done. Reference manual said "when voltage falls below certain thershold it triggers LVD interrupt".
So I programmed as it counts how many times it got reset and prints what kind of reset had happened ?(code below)
On press on external reset(MCLR) it should display what kind of reset had happened so far. ( In attachment).
1) My count for "LVD", increasing continuously until the voltage is raised back high above the threshold value, though I expect it to be raising once only.
2) I placed BOR to happen at 2.7v , i dropped voltage below , so it incremented once. and again on power on BOR incremented once .
But _LVDInterrupt shouldn't be raised on power on. What should I modify for that to happen or does it happen every time I power on.
3) When the current falls below the range, LVD triggers flag and even after clearing it is continuously resetting , and even switching off my LCD display until I press EXTR.
How can I modify ? Every thing is working fine with out LVDInterrupt .
Regards,
Raady.
![prtscr.jpg prtscr.jpg](https://www.edaboard.com/data/attachments/34/34746-894f20eb7bcb99f82a72bd9c8abd1cbe.jpg)
I am trying to check what kind of reset is being done. Reference manual said "when voltage falls below certain thershold it triggers LVD interrupt".
So I programmed as it counts how many times it got reset and prints what kind of reset had happened ?(code below)
On press on external reset(MCLR) it should display what kind of reset had happened so far. ( In attachment).
1) My count for "LVD", increasing continuously until the voltage is raised back high above the threshold value, though I expect it to be raising once only.
2) I placed BOR to happen at 2.7v , i dropped voltage below , so it incremented once. and again on power on BOR incremented once .
But _LVDInterrupt shouldn't be raised on power on. What should I modify for that to happen or does it happen every time I power on.
3) When the current falls below the range, LVD triggers flag and even after clearing it is continuously resetting , and even switching off my LCD display until I press EXTR.
How can I modify ? Every thing is working fine with out LVDInterrupt .
Regards,
Raady.
![prtscr.jpg prtscr.jpg](https://www.edaboard.com/data/attachments/34/34746-894f20eb7bcb99f82a72bd9c8abd1cbe.jpg)