Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

How to attenuate a square wave signal?

Status
Not open for further replies.

jimbobjones

Newbie level 2
Joined
Oct 25, 2007
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,297
Hello i'm new to the forum.

I need to attenuate a square wave signal from 5v pk to 3v pk.

Is this possible with an opto coupler ?

if not what else can i use?

voltage divider ? or will this corrupt the signal.

The signal is a 5v pk square wave maxF = 50hz generated by an analogue IC that i want to interface with a microcontroller that operates at 3v.
 

Old Nick

Advanced Member level 1
Joined
Sep 14, 2007
Messages
480
Helped
68
Reputation
136
Reaction score
18
Trophy points
1,298
Activity points
4,243
aplitude

you want a 74ls07 open collector buffer. on the o/p pin use a 10K or so pull-up resistor tied to 3V.

I am assuming the signal's lowest voltage is 0V.
 

Borber

Advanced Member level 5
Joined
Dec 31, 1999
Messages
1,602
Helped
234
Reputation
470
Reaction score
111
Trophy points
1,343
Location
on third flor
Activity points
11,862
Re: square wave aplitude

If your squarewave is from 0V to 5V then you can use simple resistor voltage divider composed of 2.2k and 3.3k resistors.
 

Old Nick

Advanced Member level 1
Joined
Sep 14, 2007
Messages
480
Helped
68
Reputation
136
Reaction score
18
Trophy points
1,298
Activity points
4,243
Re: square wave aplitude

Borber said:
If your squarewave is from 0V to 5V then you can use simple resistor voltage divider composed of 2.2k and 3.3k resistors.
It depends where the square wave is coming from. That sort of resistive loading could cause problems in numerous circuits.
 

Borber

Advanced Member level 5
Joined
Dec 31, 1999
Messages
1,602
Helped
234
Reputation
470
Reaction score
111
Trophy points
1,343
Location
on third flor
Activity points
11,862
Re: square wave aplitude

It was said that signal comes out of analog IC. Sink and source currents for analog ICs are greater than 1mA.
 

Old Nick

Advanced Member level 1
Joined
Sep 14, 2007
Messages
480
Helped
68
Reputation
136
Reaction score
18
Trophy points
1,298
Activity points
4,243
Re: square wave aplitude

Sorry I missed the part about the analogue IC.

A voltage divider will work for such a low frequency if there is plenty of current available.
It would be necessary to check that the input resistance of the pin and take it into consideration when picking the values for the divider.

An o/c buffer will provide a more stable and guaranteed (high)voltage level, which will not be sensitive to changes in loading at any input pin. The buffer will however increase the total power consuption of the system, but not by much.
 

Borber

Advanced Member level 5
Joined
Dec 31, 1999
Messages
1,602
Helped
234
Reputation
470
Reaction score
111
Trophy points
1,343
Location
on third flor
Activity points
11,862
Re: square wave aplitude

Input resistance of MCU is much higher than 3.3k and in the case that port is just sensing logical levels precision is not a problem at all. Only a precaution that MCU pin voltage is within allowed range is necessary.
 

jimbobjones

Newbie level 2
Joined
Oct 25, 2007
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,297
Re: square wave aplitude

thats for the help

i'll use a voltage divier before an optocoupler (for isolation)
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top