CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

noise problem?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
powerstyle
Guest







noise problem?
PostPosted: Thu Feb 10, 2005 3:17 am     Reply with quote

Hii everybody !!!

I constructed a power device using PIC16F877 and some thyristors. It regulates the line voltage to 220 volts in every cycle . Everything was OK at home for hours, but whenever I took the device to a workshop in which lots of machines were running and stopping from time to time, it got stuck ramdomly , WDT worked and afterwards PIC reset. So thyristors got turned off undesirably.

Then I took the device back to home, I touched the ground of the control circuit with PIC by a screwdriver, it reset again.(not always but sometimes!)

when I used (for example) a vacoom cleaner on the same plug (input) or output of the device it rarely got stuck unfortunately.

Control circuit with PIC is completely isoleted from tyristor triggerring (drive) circuits and line potential.

What should I do?
How can I deal with this noise problem?

thanks indeed for every reply.


powerstyle
valemike
Guest







PostPosted: Thu Feb 10, 2005 6:48 am     Reply with quote

In noisy environments, we use a power line filter - e.g. Schaffner FN406-8.4A.

Also, you might want to put a .1uf capacitor on the PIC's MCLR, in addition to the pullup resistor (10k?) to Vdd. This supposedly prevents noise from resetting your PIC.

I'm not a hardware guy, but i'm just sharing what has been done to the systems i've programmed to protect against such noise.
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Thu Feb 10, 2005 8:04 am     Reply with quote

These sorts of problems can be tough! Half the battle is just finding out how to replicate the problem. What PIC are you using and what reset circuit is on it? These days I almost always just stick on a MAX809 reset chip. Some designers opto-isolate all inputs and outputs. But I find that is usually overkill, and if not done correctly it doesn't even fix the problem.

Is there any way you can give us a link to your schematic?
_________________
The search for better is endless. Instead simply find very good and get the job done.
Guest








Time to wake up
PostPosted: Sat Feb 12, 2005 10:38 pm     Reply with quote

SherpaDoug wrote:
Don't blame me.....


Read and learn

http://www.atwatercity.com/cowardice.html
Sherpa Doug
Guest







PostPosted: Sun Feb 13, 2005 7:56 pm     Reply with quote

"Guest" dares not reveal his name while accusing me of cowardice!

From the unrepentantly blue state of Massachusetts,
Sherpa Doug
Yashu



Joined: 08 Oct 2003
Posts: 26

View user's profile Send private message

PostPosted: Mon Feb 14, 2005 1:06 am     Reply with quote

What's your brownout detect config bit burned to?

Also, must agree with valemike's common mode choke recommendation.
pat



Joined: 07 Sep 2003
Posts: 40
Location: Adelaide, Australia

View user's profile Send private message

PostPosted: Mon Feb 14, 2005 8:47 pm     Reply with quote

Doug,

Can you please explain the befefits of the MAX809? The PIC already has a 72ms (I think) power up timer, so what does the MAX809 do?

Thanks

Pat
pat



Joined: 07 Sep 2003
Posts: 40
Location: Adelaide, Australia

View user's profile Send private message

PostPosted: Mon Feb 14, 2005 8:54 pm     Reply with quote

This may be a case of RTFDS (read the F... data sheet) first

It says

Quote:
In addition to issuing a reset to the μP during power-up,
power-down, and brownout conditions, the MAX803/
MAX809/MAX810 are relatively immune to short-duration
negative-going VCC transients (glitches).


Is that all there is to it Doug?

Pat
powerstyle
Guest







solution
PostPosted: Wed Feb 16, 2005 9:08 am     Reply with quote

The answer is at the address below

thanks everybody


http://forum.microchip.com/tm.asp?m=35930
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group