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

Small AC Signal input protection

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



Joined: 10 Jan 2019
Posts: 16
Location: Maracaibo, Venezuela

View user's profile Send private message Send e-mail Visit poster's website

Small AC Signal input protection
PostPosted: Fri Sep 27, 2019 1:46 pm     Reply with quote

Hi, I've been reading this https://www.ccsinfo.com/forum/viewtopic.php?p=127332 but still don't sure if it's ok to apply something like this to my purpose.

My ideal signal is a 5Vpp @ 1khz , then biased to 2.5V (with voltage divider and a voltage follower opamp) which is within the limits 0 - 5 V of the PIC.

So I'm trying to protect from signals above 5Vpp but still small signals, like 10Vpp that could take negative values even when biased and also got higher than 5V. What do you suggest?

I wonder if the idea could be done with some diodes, I'm trying to avoid the use of op-amps because my available supply for the circuit is 0V and +5V.

Thanks in advance.
_________________
Luis,
IEEE Member at University of Zulia
Electronics Engineering Student at URBE
newguy



Joined: 24 Jun 2004
Posts: 1904

View user's profile Send private message

PostPosted: Fri Sep 27, 2019 2:42 pm     Reply with quote

Perhaps a TVS (transient voltage suppressor) will work for you?

https://www.digikey.ca/products/en/circuit-protection/tvs-diodes/144?k=&pkeyword=&sv=0&pv1730=i1&sf=0&FV=ffe00090%2C1c0002%2C1f140000&quantity=&ColumnSort=0&page=1&stock=1&pageSize=25
dluu13



Joined: 28 Sep 2018
Posts: 395
Location: Toronto, ON

View user's profile Send private message Visit poster's website

PostPosted: Fri Sep 27, 2019 3:49 pm     Reply with quote

Tvs diodes don't have very sharp corners on the iv curves so they will start conducting before you might expect and changing your input signal

I personally use Schottky diodes like the bat54 or bas70 up to the vdd rail to clamp to vdd+0.3v

Problem is this isn't always foolproof as it depends on your vdd rail having a giant capacitance to absorb the current flowing into it when your Schottky is conducting
temtronic



Joined: 01 Jul 2010
Posts: 9197
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Sep 27, 2019 4:16 pm     Reply with quote

hmm, 'old school' trick is to use a real MC1489 'RS-232' receiver to convert the AC signal into DC. If you're old enough you'll remember, it was used with a PIC in a 'line frequency' measurement unit in Circuit Cellar Ink. It displayed 59.9 Hz on 3 digit LEDs. All machine code (CCS wasn't around back then..)
Well pretty sure it was CCInk... it was 2 decades ago more or less... PICs had windows on them back then and 15 minutes to erase.
Jay
Ttelmah



Joined: 11 Mar 2010
Posts: 19432

View user's profile Send private message

PostPosted: Fri Sep 27, 2019 10:29 pm     Reply with quote

Er. If the only supply is 0 to 5v, and this is powering the op-amp,
then it's output can't swing outside this range, unless it's input is being
massively overdriven, and it's internal circuitry is becoming reverse
biased. You can protect the op-amp from this using diodes:
<//www.analog.com/en/analog-dialogue/articles/op-amp-input-overvoltage-protection.html#>
This does introduce increased load on the signal though.
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Sat Sep 28, 2019 12:54 pm     Reply with quote

dluu13 wrote:
Tvs diodes don't have very sharp corners on the iv curves so they will start conducting before you might expect and changing your input signal

I personally use Schottky diodes like the bat54 or bas70 up to the vdd rail to clamp to vdd+0.3v

Problem is this isn't always foolproof as it depends on your vdd rail having a giant capacitance to absorb the current flowing into it when your Schottky is conducting


The solution is to add a small series resistor between the signal and the protection diodes. I have used this method very successfully for years.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
Ttelmah



Joined: 11 Mar 2010
Posts: 19432

View user's profile Send private message

PostPosted: Sun Sep 29, 2019 12:30 pm     Reply with quote

Some extra comments:

If you clamp using a supply rail, remember the energy has to go
somewhere. If the rail is only powering low current devices, the energy
being delivered by the clamp diodes can raise the rail voltage. There
has to either be something to limit this like a zener, or a large enough
capacitance that the voltage increase is limited and can then be
discharged slowly by the load.

There are some ultra low leakage diodes available that can keep
the current and capacitance imposed on the signal to sensible levels.
Unfortunately Schottky diodes though they have low Vf figures, usually
have much higher leakage than a simple PN junction. So a diode like
a basic 1N914 can be a better clamp for low current signals.

For a complete clamp with low leakage, I've used the ESD9R3 very
successfully on a low current input.

As Asmallri says, If the input is high impedance, and to limit side
effects, series resistance can be your friend, however you clamp.
A resistor in the line limits the current that can flow.
luisjoserod



Joined: 10 Jan 2019
Posts: 16
Location: Maracaibo, Venezuela

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Mon Oct 14, 2019 8:16 am     Reply with quote

Hi, i've been reading you all and make this:

[img]https://imgur.com/2OPZ7MG[/img]

R10 and R11 are for offset,

Can you give me any feed back on my design?

Thanks
_________________
Luis,
IEEE Member at University of Zulia
Electronics Engineering Student at URBE
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Mon Oct 14, 2019 9:14 am     Reply with quote

luisjoserod wrote:
Hi, i've been reading you all and make this:

[img]https://imgur.com/2OPZ7MG[/img]

R10 and R11 are for offset,

Can you give me any feed back on my design?

Thanks


Surely you don't really think anyone is going to open a link like this?
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Oct 14, 2019 11:50 am     Reply with quote

imgur.com is a legitimate image hosting website.
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