Hello.
I' using PIC 16F877A on EasyPIC7.
My code tells the chip to switch on RB5 when the pulse start and to switch it off when voltage on RA3 is greater then voltage on RA0 (using comparator module)
When I supply the easyPIC board with usb (the same I use to program) everyting goes well. It works properly.
When I use an external power supply to the board, 12 V DC, RB5 does not switch off anymore when voltage on RA3 overcomes voltage on RA0.
The only thing I see is that with USB supply the voltage on the board , and on the chip, is 5,14 V and with external supply to the board, the voltage is 5,01 V.
Any suggestion to explain this strange (for me) behaviour will be appreciated.
Thanks a lot in advance.
I' using PIC 16F877A on EasyPIC7.
My code tells the chip to switch on RB5 when the pulse start and to switch it off when voltage on RA3 is greater then voltage on RA0 (using comparator module)
When I supply the easyPIC board with usb (the same I use to program) everyting goes well. It works properly.
When I use an external power supply to the board, 12 V DC, RB5 does not switch off anymore when voltage on RA3 overcomes voltage on RA0.
The only thing I see is that with USB supply the voltage on the board , and on the chip, is 5,14 V and with external supply to the board, the voltage is 5,01 V.
Any suggestion to explain this strange (for me) behaviour will be appreciated.
Thanks a lot in advance.