I didn't check the Data Sheet for the 16F877A to see whether it has an HLVD module or not. If it does, you can easily use the technique I described in an article on this forum to check the supply voltage. Check it out at: http://www.picbasic.co.uk/forum/cont...oltage-monitor . It has schematic, layout, code, et al. Hope this helps.
Bookmarks