The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Mar 28th, 2024, 2:10pm
Pages: 1
Send Topic Print
Model optocoupler NSL-32SR3 (Read 846 times)
Leonardo
New Member
*
Offline



Posts: 1
Rio de Janeiro, BRAZIL
Model optocoupler NSL-32SR3
Jul 08th, 2019, 2:28pm
 
Hi all

This is my first post in the forum.
I need to model an optocoupler (NSL-32SR3) that reduces its resistance with increasing current. I was able to deduce the mathematical equation from the curve using Excel.
Equation : R = 293,01 * i ^(-0,593)

But since I have little experience in Verilog I do not know how to create an expression that converts the input current to output resistance in the Verilog language.

Below is datasheet´s optocoupler.

Could someone give me some tips?

Thx
Leonardo
Back to top
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1998
Massachusetts, USA
Re: Model optocoupler NSL-32SR3
Reply #1 - Jul 12th, 2019, 7:24am
 
You should look on the paged linked to the "Verilog-AMS" tab above and find a resistor or a controlled source model and learn the basics of writing a Verilog-A model. Start with a simple linear resistor but rename the module to nsl_32sr3 and give it the pin names you want.
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.