We are using C8050F060 microcontroller in our product says pyrometer(non contact temperature measuring instrument), we installed pyrometer on the Induction furnace at casting industry, it was working well but occasionally some time it hanged up (keypad not work, oled display hang, digital communication RS485 stop, analog output 4 to 20mA stop) after reset the pyrometer, its all functions are working well. So can you suggest why this microcontroller hanged?
we installed pyrometer on the Induction furnace at casting industry,
after reset the pyrometer, its all functions are working well.
Could you let us know the part number of the pyrometer/sensor. What clock you are using, external or internal? do you see error when the issue happen, what part of code the system hanged up/stuck?
Please also share the pdf format schematic if possible.
Based on the limited information, it was hard to figure out he root cause.
Thank you JIM-C and delu for your reply.
Actually we are using C8051F060 microcontroller, not C8050F060.
We already used internal watchdog timer and it is working well, but the microcontroller stuck/hanged, when we reset its power it is working.
There is no any high current track passed nearer to it.
I thing controller hanged due to external crystal oscillator (24.576Mhz) will stop to work , but I am not sure.
Same microcontroller we are using in other products but not facing this type of problems.
Anybody suggest why this microcontroller hanged up?
There are 2 possible reasons for most microcontrollers to hang:
When your, usually working, field devices go offline suddenly and never get online without any traceable bug in the embedded or internet connection issues. The device has stopped outputting messages on the debug port. Stopped responding to commands through any interface. And when only way to make things work is a hard reboot. Then one of the culprits to suspect is power transients / electrical noise that is making the MCU hang.
Generally, this is very much dependent on the PCB layout & the Ground Plane. In addition, you should couple power supply lines with local bypass capacitor close to MCU pins. It is also important to create a proper proper isolation distance between the AC and DC sections of circuit.
If you cannot change your PCB design a possible solutions is:
Thanks for your suggestions, the problem is not solved. Please help me, how to solve it.
We connected below interfaces with c8051f060 micro controller
1. E2prom via I2c
2. OLED display via spi, connecting 150mm ffc cable between OLED and uC.
3. 16 bit external DAC via spi
4. Rs485 via uart
5. Keypad and Leds via gpio
6. ADC1 and ADC2 using internal reference voltage.
In our office, the device is working well and not facing hanging problem, but installed the device in the field (specially on induction machine) we are facing hanging problem. I know that is due to transients voltage or electro magnatic field, but how can I check it? I tried to create same problem in our office but didn't create it, can I create the same problem in my office?
If you need more details, please inform me.
Please suggest how can I solve this hanging problem.