Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

will PIC work in adverse circumstances

Status
Not open for further replies.

sijincool

Member level 2
Joined
Feb 10, 2010
Messages
43
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,286
Location
india
Activity points
1,611
i had to use a pic16f873a along with a transformer(6A) in the same case(metal box).for controlling a set of relays(5A,12V).
the functional test was ok and it worked fine in the lab for 4 days continously but when it is released as aproduct we continously got complaints of "PIC hangs".

when it is reset the system works fine again.

my question is would there be any interference in the working of PIC due to the magnectic field/or temperature(in lab we tested upto 60 degrees)/power fluctuations.

or what else may be the problem

pls help me
thanks in advance
 

Hi,
Noise may be affecting the PIC if it is not well decoupled. Or if the power supply is not well filtered (there is too much ripple).

Hope this helps.
Tahmid.
 

    sijincool

    Points: 2
    Helpful Answer Positive Rating
Noise can effect any digital circuits and a microcontroller is no exception.

1. Place decoupling capacitors on the powersupply pins of the microcontroller as
close as possible to the chip.
2. Another important thing to consider when switching relays is to use a recirculation
diode with the relay, otherwise the flyback voltages may reset/hang the
microcontroller.

If it is possible to share the schematic of you circuit then i may be in a better position to help.

Regards.
 

    sijincool

    Points: 2
    Helpful Answer Positive Rating
PIC devices are ver sensitive and highly affected by EMI's and RFI's. I have personally faced similar problems as you.
 

thanks for the reply.

i have already checked it.

1)i used filter capacitors as u said
2)used 1n4007 flayback diodes even though i am using a uln2003D (they say inbuild fly back diode)
3) grounded all unused pins
4) grounded the body of Xtal oscilator

still the problem remains.

:(

Added after 3 minutes:

is there any solutions.

like any other microcontrollers...


one more thing i noted is that iam currently using the DIP pic package.

in some SMD packages they label it as industrial.

will it solve my problem???
any guess?
 

I think that the problem lies with the design and not with the MCU or package.
What is the value of pull up resistor on the MCLR pin?Have you decoupled the MCLR pin through a capacitor?Have you enabled Brown out detect? What is the frequency of the oscillator that you are using?
The layout of the oscillator section on the PCB is also critical.
Regards.
 

sijincool said:
in some SMD packages they label it as industrial.

will it solve my problem???
any guess?

No. That is simply a wider temperature range version.
 

HI

I order to mak it works well in an out side the LAB environment you will need to add some protection components:

1) Add a reset and watch dog external IC - like TPS3828 from TI
(also remember to hit the watch dog so he want barks and reset your micro)

2) Add decoupling capacitor on every VCC pin of the micro

3) Add some Bead inductor in series with the power line who feed the micro

All the best

Bobi

The microcontroller specialist
 

    sijincool

    Points: 2
    Helpful Answer Positive Rating
Also you may consider using optocouplers at the outputs of the MCU, used for switching relays. Put them between MCU's outputs and ULN2003.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top