hi Yan,YAN-1 said:Hello everyone. I was wondering, can a 20MHz crystal operating a PIC be defective in such a way that the PIC operates normally for some time and then the program gets stuck for a while and then over again? Or is it that crystals either operate perfectly or are completely damaged and my problem is not with the crystal? Thanks a lot.
Crystals are pretty fragile. Dropping it could have changed it's resonant frequency, made it intermittent, etc.
YAN-1 said:Thank you people for your replies. Well turns out that the program wasn't getting stuck at certain points. Instead, the PIC was restarting on its own when it reaches a certain part of the code. The PIC is part of a board that controls a car robot. When the gas is pressed and the wheels start turning, the PIC automatically restarts, releasing the gas pedal (the program of this PIC starts with an order to release gas and hold for 20 seconds). Now the 5 volts for this board are obtained from the +5 V rail of the computer power supply on the car that is operating a motherboard. But yesterday I discovered that when I operate the board from a separate power supply, the problem doesn't happen and the PIC doesn't restart! Any ideas? The computer power supply seems to be working fine and the computer it is driving faces no problems at all. Could there be a problem with its 5V rail only?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?