Friends,
I have assembled a code for experiment purpose which works fine. During testing the project a peculiar behaviour of the microcontroller was noticed. While powering up the circuit from battery, there was interruption of power supply due to poor connectivity causing some small spark between the battery terminal and the connecting wire to the circuit. After connecting the power properly/tightly, it is seen that the working of the MCU is erratic. I thought, that was due to fault in my code. I disconnected the supply and re-connected carefully such that no interruption/spark takes place. Now the MCU works fine. Again I, intentionally, made some interruption/spark in supply wire and saw the erratic operation of the MCU. Is it natural for MCU to work wrong if there is any interruption/spark in powering it up? Incidentally, please note that using a capacitor (470uF/ 16V) across the supply rails the problem was overcome.
Regards
swapan
I have assembled a code for experiment purpose which works fine. During testing the project a peculiar behaviour of the microcontroller was noticed. While powering up the circuit from battery, there was interruption of power supply due to poor connectivity causing some small spark between the battery terminal and the connecting wire to the circuit. After connecting the power properly/tightly, it is seen that the working of the MCU is erratic. I thought, that was due to fault in my code. I disconnected the supply and re-connected carefully such that no interruption/spark takes place. Now the MCU works fine. Again I, intentionally, made some interruption/spark in supply wire and saw the erratic operation of the MCU. Is it natural for MCU to work wrong if there is any interruption/spark in powering it up? Incidentally, please note that using a capacitor (470uF/ 16V) across the supply rails the problem was overcome.
Regards
swapan