milan.rajik
Banned
- Joined
- Apr 1, 2013
- Messages
- 2,524
- Helped
- 540
- Reputation
- 1,078
- Reaction score
- 524
- Trophy points
- 1,393
- Activity points
- 0
I am doing a project with PIC18F45K22. All the registers are configured properly. I am testing the project in both Proteus and EasyPIC7. I see a strange problem. When the code inside while(1) executes all the status LEDs, PUMP relay etc... turn as expected but after the while(1) is exected successively then the first statement in while(1) loop which is ADC_Read(x) instruction makes all LEDs and PUMP to turn OFF. What might be the problem ? The ststud LEDs and PUMP if ON has to remain in that state but due to this it blinks once everytime the ADC is read.