Analog Switch Subcircuit

I posted this to the LTspice group, but thought it might be of interest here... a 4016 switch...

(Caution the MOS devices are single line, so fix it up if your copy wraps.)

.SUBCKT ANALOGSW X Y CONT VDD GND M_MP6 N_2 N_1 VDD VDD PMOS L=1u W=285u AD=0.43n AS=0.52n PD=0.326m PS=0.392m NRD=3.509m NRS=3.509m M_MN8 N_2 N_1 GND 0 NMOS L=1u W=57u AD=0.09n AS=0.17n PD=72.69u PS=0.132m NRD=17.544m NRS=17.544m M_MN7 X N_3 Y 0 NMOS L=1u W=360u AD=0.55n AS=0.82n PD=0.424m PS=0.625m NRD=2.778m NRS=2.778m M_MP5 X N_2 Y VDD PMOS L=1u W=1260u AD=0.00u AS=0.00u PD=1.382m PS=1.579m NRD=0.794m NRS=0.794m M_MP14 N_3 N_4 VDD VDD PMOS L=1u W=285u AD=0.43n AS=0.52n PD=0.326m PS=0.392m NRD=3.509m NRS=3.509m M_MN16 N_3 N_4 GND 0 NMOS L=1u W=57u AD=0.09n AS=0.17n PD=72.69u PS=0.132m NRD=17.544m NRS=17.544m M_MP7 N_4 CONT VDD VDD PMOS L=1u W=180u AD=0.27n AS=0.30n PD=0.213m PS=0.234m NRD=5.556m NRS=5.556m M_MN9 N_4 CONT GND 0 NMOS L=1u W=36u AD=0.05n AS=0.08n PD=48.37u PS=62.53u NRD=27.778m NRS=27.778m M_MP9 N_1 N_4 VDD VDD PMOS L=1u W=180u AD=0.27n AS=0.30n PD=0.213m PS=0.234m NRD=5.556m NRS=5.556m M_MN11 N_1 N_4 GND 0 NMOS L=1u W=36u AD=0.05n AS=0.08n PD=48.37u PS=62.53u NRD=27.778m NRS=27.778m .MODEL NMOS NMOS (LEVEL=3 VTO= 0.600 UO=515.0 TOX= 15.0N

  • NSUB= 4.46E+16 NFS = 5.6E+12 VMAX= 7.7E+05 ETA=0.022 KAPPA= 0.00
  • THETA=0.092 DELTA= 3.09 XJ = 0.59U RSH = 725.0 LD = 0.135U
  • CGDO= 3.0E-10 CGSO= 3.0E-10 AF= 1.0 KF= 7.5E-29 CJ = 4.3E-04
  • MJ = 0.350 CJSW= 3.8E-10 MJSW= 0.290 PB = 0.710)
** .MODEL PMOS PMOS (LEVEL=3 VTO=-0.700 UO=180.0 TOX= 15.0N
  • NSUB= 7.19E+16 NFS = 1.1E+12 VMAX= 7.8E+05 ETA=0.033 KAPPA=83.50
  • THETA=0.161 DELTA= 1.54 XJ = 0.00U RSH = 996.0 LD = 0.095U
  • CGDO= 2.7E-10 CGSO= 2.7E-10 AF= 1.0 KF= 1.4E-30 CJ = 3.6E-04
  • MJ = 0.280 CJSW= 3.0E-10 MJSW= 0.380 PB = 0.450)
** .ENDS ANALOGSW ...Jim Thompson
--
| James E.Thompson, CTO                            |    mens     |
| Analog Innovations, Inc.                         |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| Phoenix, Arizona  85048    Skype: Contacts Only  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon at http://www.analog-innovations.com |    1962     |
             
I love to cook with wine.     Sometimes I even put it in the food.
Reply to
Jim Thompson
Loading thread data ...

.....................

I ocassionally used the improved CD4066 and 74HC4066 in the past. Any chance of adapting your model to these devices?

Reply to
pimpom

Even though Motorola no longer exists (at least that division) I'll have to check the dates and see when the NDA's run out :-)

However, as you may remember from my 74HC4051,2,3 schematic posting, these are quite hairy models at the device level.

I'll ponder doing these as behavioral models... easier convergence and faster simulations... that's why LTspice is so "fast"... mostly behavioral rendering of parts. ...Jim Thompson

--
| James E.Thompson, CTO                            |    mens     |
| Analog Innovations, Inc.                         |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| Phoenix, Arizona  85048    Skype: Contacts Only  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon at http://www.analog-innovations.com |    1962     |
             
      The only thing bipartisan in this country is hypocrisy
Reply to
Jim Thompson

I found the following which looks like I re-did it to modern 4066 specifications....

**************************************************************** *.SUBCKT 54HC4066 1 2 3 4 5 ; Symbol Dependent .SUBCKT 54HC4066 2 3 7 1 10 ; Pick Order of your choice *
  • PSPICE original node numbering
  • 1 ANALOG INPUT
  • 2 ANALOG OUTPUT
  • 3 CONTROL
  • 4 VDD (POSITIVE SUPPLY)
  • 5 VSS (NEGATIVE SUPPLY)
*
  • My node numbering:
  • 2 ANALOG INPUT
  • 3 ANALOG OUTPUT
  • 7 CONTROL
  • 1 VDD
  • 10 VSS
  • RGN 9 4A 600 ; POLY RGP 5 5A 600 ; POLY MP1 8 7 1 1 PMOS L=4.4u W=57.2U AD=484P AS=484P PD=131U PS=131U
  • NRD=0.0175 NRS=0.0175 MP2 4 8 1 1 PMOS L=4.4u W=84.7U AD=722P AS=722P PD=187U PS=187U
  • NRD=0.0118 NRS=0.0118 MP3 5 4 1 1 PMOS L=4.4u W=169.4U AD=1436P AS=1436P PD=355U PS=355U
  • NRD=0.0059 NRS=0.0059 MP4 9 8 1 1 PMOS L=4.4u W=169.4U AD=1436P AS=1436P PD=355U PS=355U
  • NRD=0.0059 NRS=0.0059 MN1 8 7 10 10 NMOS L=4.4u W=31.9U AD=272P AS=272P PD=81U PS=81U
  • NRD=0.0313 NRS=0.0313 MN2 4 8 10 10 NMOS L=4.4u W=31.9U AD=272P AS=272P PD=81U PS=81U
  • NRD=0.0313 NRS=0.0313 MN3 5 4 10 10 NMOS L=4.4u W=63.8U AD=544P AS=544P PD=145U PS=145U
  • NRD=0.0156 NRS=0.0156 MN4 9 8 10 10 NMOS L=4.4u W=63.8U AD=544P AS=544P PD=145U PS=145U
  • NRD=0.0156 NRS=0.0156 MNOUT 2 4A 3 10 NMOS L=4.4u W=545.05U AD=4632P AS=4632P PD=1107U
  • PS=1107U NRD=0.0018 NRS=0.0018 MPOUT 2 5A 3 1 PMOS L=4.4u W=1795.75U AD=15266P AS=15266P PD=3609U
  • PS=3609U NRD=0.0006 NRS=0.0006
* ****** CHANGED RSH TO REFLECT FELDBAUMER'S RD/RS CALCULATIONS ******
  • .MODEL NMOS NMOS LEVEL=3 VTO=0.768 TOX=3.87E-8 NSUB=1.75E16
  • XJ=5.0E-7 LD=1.5E-7 UO=583 VMAX=2.35E5 DELTA=2.58
  • THETA=0.0368 ETA=4.0E-2 KAPPA=0.66 RSH=485 NFS=8.75E11
  • CGSO=3.745E-10 CGDO=3.745E-10 PB=0.80 CJ=3.958E-4
  • MJ=0.47 CJSW=4.15E-10 MJSW=0.43 TPG=1
  • .MODEL PMOS PMOS LEVEL=3 VTO=-0.794 TOX=3.87E-8 NSUB=6.59E15
  • XJ=1.7E-7 LD=1.5E-7 UO=222.2 VMAX=6.788E5 DELTA=2.25
  • THETA=0.1146 ETA=0.268 KAPPA=61.9 RSH=2250 NFS=2.05E12
  • CGSO=4.106E-10 CGDO=4.106E-10 PB=0.75 CJ=2.392E-4
  • MJ=0.49 CJSW=2.270E-10 MJSW=0.45 TPG=-1
*********************************************************************
  • .ENDS 54HC4066 ...Jim Thompson
--
| James E.Thompson, CTO                            |    mens     |
| Analog Innovations, Inc.                         |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| Phoenix, Arizona  85048    Skype: Contacts Only  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon at http://www.analog-innovations.com |    1962     |
             
      The only thing bipartisan in this country is hypocrisy
Reply to
Jim Thompson

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.