skmdmasud
Member
Hi..
My circuit around 10% of the time hangs when powering up by connecting the transformer at 220ac wall outlet or when the wall plug is loose.
The sequence of my uC start up:
1. Shows greeting message
2. Shows time from RTC
3. Turns on a relay
4. LOOP (show time and wait for button press)
As my uC starts some time i see the greetings message in the LCD display and some times there is no display but the relay starts operating and some times there is nothing.
90% of the time it works fine.
![uc.JPG uc.JPG](https://www.electro-tech-online.com/data/attachments/54/54711-46188047133bb98593cef08cdddeae8e.jpg)
![RTC.JPG RTC.JPG](https://www.electro-tech-online.com/data/attachments/54/54712-95c3cc87ea5aac87e942dcea27487997.jpg)
![overall.jpg overall.jpg](https://www.electro-tech-online.com/data/attachments/54/54713-2af10680fd2433ca2e68944a9729902d.jpg)
How to solve this behavior. Once it reaches step 4 it keeps on functioning as expected.
My circuit around 10% of the time hangs when powering up by connecting the transformer at 220ac wall outlet or when the wall plug is loose.
The sequence of my uC start up:
1. Shows greeting message
2. Shows time from RTC
3. Turns on a relay
4. LOOP (show time and wait for button press)
As my uC starts some time i see the greetings message in the LCD display and some times there is no display but the relay starts operating and some times there is nothing.
90% of the time it works fine.
![uc.JPG uc.JPG](https://www.electro-tech-online.com/data/attachments/54/54711-46188047133bb98593cef08cdddeae8e.jpg)
![RTC.JPG RTC.JPG](https://www.electro-tech-online.com/data/attachments/54/54712-95c3cc87ea5aac87e942dcea27487997.jpg)
![overall.jpg overall.jpg](https://www.electro-tech-online.com/data/attachments/54/54713-2af10680fd2433ca2e68944a9729902d.jpg)
How to solve this behavior. Once it reaches step 4 it keeps on functioning as expected.
Last edited: