m1anh said:Hi,
I would expect to see 150mVDC or 300mVAC at OSC2.
I would not try an measure OSC1, as the loading will most likely stop the xtal.
I have always used HS mode for 4MHZ XTAL with 15pf caps to GND.
Is the XTAL good?, Do you have a spare?
I also find enabling the power-up timer and Brown-out help remove a lot of problems.
Change:
__CONFIG(WDTDIS & XT & UNPROTECT); to..
__CONFIG(HS & WDTDIS & PWRTEN & BOREN & UNPROTECT);
Do you have the correct IC selected?
Also ask yourself?
Q. Have you ever put more than 5.5V into the circuit in error?
Q. Have you ever reversed the PSU polarity by accident?
If so, the chips most likely dead!.
It always a good idea to add an idiot diode to prevent the common mistake.
If you can not afford the voltage drop, place it across the supply in reverse so it conducts when the power is reversed, AND be SURE to put a small fuse before the diode. 100mA. Also an LED can be added so you know you have not blown the fuse.
Where is the supply voltage coming from, is it a good clean supply?
Be carefully of SMPS, some can create very fast spikes that are invisible to a DVM and most slow scopes, but deadly to PIC's
I find putting a 7805 reg on the PCB / breadboard helps.
My feeling from the info give, is the XTAL is not OSC, or an issue with the Power Up reset.
Note: if you are using a variable Desk PSU, are you setting the voltage then apply the power or winding it up with the output on? This can effect the POR.
Hope this helps.
Please let us know if you have fixed it?
Ian.
peacezim said:I strongly suspect that the programmer TopWin is not correct(even though it shows "Write complete" after programming).
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?