Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 23, 2024, 10:09:33 10:09


Login with username, password and session length


Pages: [1]
Print
Author Topic: pic noise  (Read 3898 times)
0 Members and 1 Guest are viewing this topic.
terval
Newbie
*
Offline Offline

Posts: 27

Thank You
-Given: 15
-Receive: 6


« on: July 16, 2008, 07:26:59 19:26 »

My question: when i touch fingers in my circuits Pics 18F based micro goes crazy and give some spykes,i  tried with pull ups 10k but it´s the same problem; and reset, Mclr 10 K to VCC some times not work, micro no start software after power on.
Any triks about this, to industrial aplication it´s impossible to work like this.

Regards
Logged
twonuts
Active Member
***
Offline Offline

Posts: 118

Thank You
-Given: 55
-Receive: 42


« Reply #1 on: July 16, 2008, 10:33:06 22:33 »

Don't touch your circuit board.

Also make sure you have decoupling capacitors fitted from VDD to ground on your pic.
Logged
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 4646

Thank You
-Given: 826
-Receive: 4207


There is no evidence that I muted SoNsIvRi


« Reply #2 on: July 16, 2008, 11:46:13 23:46 »

to add to this. you don't say what your ciruit board is. etched pcb, vero/strip board, proto board, or what?.
add to this your layout and your method of powering the board, mains power or battery. the list is endless.
Logged

Note: I stoped Muteing bad members OK I now put thier account in sleep mode
shibuv
Newbie
*
Offline Offline

Posts: 30

Thank You
-Given: 0
-Receive: 7


WWW
« Reply #3 on: July 18, 2008, 01:07:34 13:07 »

you connect a .01 capacitor between VCC and ground pins as near as possible to the chip, make more ground plains in PCB. place ur crystal near to pic


makri
Logged
terval
Newbie
*
Offline Offline

Posts: 27

Thank You
-Given: 15
-Receive: 6


« Reply #4 on: July 18, 2008, 05:09:38 17:09 »

Power suply from mains transformer voltage regulator and all 100nF decoupling capacitor including power and near micro ,using normal soldering board.I thing it´s because  impedeance in Pic micro ports, not  problem avr nor 8051.
Logged
zed
Newbie
*
Offline Offline

Posts: 11

Thank You
-Given: 22
-Receive: 9


« Reply #5 on: July 19, 2008, 11:12:58 11:12 »

Until you show us your code, IMHO, all recommendation is pretty pointless. I can assure you PICs are used in industry applications, like motor control, etc.
Logged
mabd
Junior Member
**
Offline Offline

Posts: 71

Thank You
-Given: 13
-Receive: 16


« Reply #6 on: July 22, 2008, 07:28:40 19:28 »

Did you left some pins free ?!!!!
Logged
terval
Newbie
*
Offline Offline

Posts: 27

Thank You
-Given: 15
-Receive: 6


« Reply #7 on: July 25, 2008, 05:04:44 17:04 »

now it´s better, it was very high clock, by now i saw some industrial electronics using pics. But it´s necessary to prevent high frequency for a specific application. If we can do it lower, better.
Logged
TomJackson69
Active Member
***
Offline Offline

Posts: 218

Thank You
-Given: 26
-Receive: 63


« Reply #8 on: July 26, 2008, 06:12:52 18:12 »

now it´s better, it was very high clock, by now i saw some industrial electronics using pics. But it´s necessary to prevent high frequency for a specific application. If we can do it lower, better.

Not really. What is your high frequency and low frequency? I have used 20MHz and 40MHz with PIC 273, 245, 452, 4550... You said your circuit some times will not start. I think the problem may associated with the capacitors you used with your crystal. I use 18pF to 22pF and they are good. Also I used 56K and 1uF for the MCLR; you may want to have the PIC be stable with the voltage before MCLR goe HI to start your program.

So, please look at:
1. MCLR (resistor and capacitor)
2. Two cap used with the crystal
3. At program start up, use a little delay before setup port-pins
4. Pure DC for power supply. Check your supply (5 Volts or whatever voltage you use) to see if it is clean.
5. Put more than few decoupe caps around the circuit, specially the PIC and other IC (.1uF OK)

You also want to check your other component that may draw too much current when its active. It is good ideal to post your circuit and state detail your problems so other can help. What I said here is only a guess work, I don't know your circuit or what is the environment you are using; so I may not help you at all.

For the problem that when thePIC stops working when you touch the circuit. It may associate with the value of the capacitors connected to the crystal.

Want more help, post your circuit and state your problems in detail.

Good luck,

Tom
Logged

Con Rong Chau Tien
cjeffries1
Senior Member
****
Offline Offline

Posts: 348

Thank You
-Given: 252
-Receive: 176


« Reply #9 on: July 28, 2008, 06:03:00 18:03 »

In my experience of circuit board implementation, noise immunity is nearly always down to board layout, component selection and electrical design. I have read many times people saying that PICs perform better than AVR in noisy environment and vice versa, but the truth is that with proper component selection, component positioning, board layout rules i.e solid analog/digital engineering design experience; there is no difference.
Logged
embromation
Active Member
***
Offline Offline

Posts: 135

Thank You
-Given: 50
-Receive: 478



« Reply #10 on: July 31, 2008, 01:31:49 01:31 »

I had some similar problems...

0. Check with an oscilloscope where the noise occurs.
1. Check the DC source.
2. Check the values of capacitors used in the crystal.
3. In program, use an delay before configure pins (I/O).
4. Put an capacitor the near (between VDC and GND) the PIC (Value recomended is: 100nF)
5. Checks if there is any moisture on the board.
6. Put an GND to metal cap of crystal. (Solder)
7. At the PCB Board, give greater preference to GND, trying to cover the entire layout remainder.
8. It´s recomended the crystal near PIC.

Look:



Visit this sites:
http://www.cvel.clemson.edu/emc/tutorials/decoupling01.html
http://www.cvel.clemson.edu/emc/tutorials/decoupling02.html
http://www.cvel.clemson.edu/emc/tutorials/decoupling03.html

http://www.interfacebus.com/Design_Capacitors.html

Documents:
http://hsi.web.cern.ch/HSI/s-link/devices/g-ldc/decouple.pdf

I hope I have helped him.
Good luck.
« Last Edit: July 31, 2008, 01:42:45 01:42 by embromation » Logged

Share your knowledge!
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC