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.

Microcontroller switching affects other parts of circuit

Status
Not open for further replies.

BenzT

Junior Member level 3
Joined
Mar 24, 2017
Messages
27
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
224
Hi,

I am switching the port D of the PIC microcontroller at 50KHz.

while(1)
{
LATD = 0xFF
DelayUs(10);
LATD = 0x00
DelayUs(10);
}

But the PORT D pins are not connected in circuit. They are free only.

But i am getting some high frequency, high amplitude noise in other part of the circuit ( analog amplifier ). If i commented the above program, there is no noise in the analog section.

I tried the above program for PORT E also, there too heavy switching noise presents on analog amplifier.

Why the microcontroller pin switching affects my other circuit?
 

Presumed your report is correct, no switching pin externally connected, there will be still power supply and ground switching spikes due to port pin capacitance. With insufficient power supply bypassing, the noise spreads allover the circuit.
 
  • Like
Reactions: BenzT

    BenzT

    Points: 2
    Helpful Answer Positive Rating
Well i have connected 0.1uF at the power pins of all the IC's. Also have connected 10uF electrolytic capacitor at the input and output of 7805 IC.
 

Well i have connected 0.1uF at the power pins of all the IC's.

You have to spread some ceramic capacitors along analog power supply section, not only close to IC's. Anyway, it is likelly having issue with grounding plane, perhaps not well sized or even analog and digital components not sepparated within distanced regions of the board.
 

But the PORT D pins are not connected in circuit. They are free only.

Very likely a layout problem; if the port D pin is not connected to any circuit part, please pull it up/down and your problem will magically disappear (hopefully!).

Pin left unconnected (unloaded) is not a good design habit but anyway check that the power supply is well bypassed.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top