LISA MODEL DESCRIPTION FORMAT 6.1
=================================
Design:   DCMotor_TTL_GRAY OUTPUTS
Doc. no.: DCMotor_TTL GRAY1
Revision: 1
Author:   SIMEON WEBBER
Created:  15/01/05
Modified: 03/03/05

*PROPERTIES,3    
OMEGA=(2*<PI>*<RPM>/60)
PI=3.141592
RPV=(<OMEGA>/<VNOM>)

*MODELDEFS,0    

*PARTLIST,20   
AD1,ADC,ADC,DCPATH="G",PRIMITIVE=ANALOG,RNEG=1,RPOS=100k,TTOL=0.1u,V+=VCC,V-=GND,VHH=1,VHL=1,VTH=0.2,VTL=-0.2
AD2,ADC,ADC,DCPATH="G",PRIMITIVE=ANALOG,RNEG=1,RPOS=100k,TTOL=0.1u,V+=VCC,V-=GND,VHH=1,VHL=1,VTH=0.2,VTL=-0.2
AVS1,AVS,"COS(V(A,B)*<RES>/360*2*PI)",PRIMITIVE=ANALOGUE
AVS2,AVS,"SIN(V(A,B)*<RES>/360*2*PI)",PRIMITIVE=ANALOGUE
C1,CAPACITOR,<MASS>,PRIMITIVE=ANALOGUE
C2,CAPACITOR,1F,PRIMITIVE=ANALOGUE
E1,VCVS,<VNOM>/<OMEGA>,PRIMITIVE=ANALOGUE
G1,VCCS,-1/(<RCOIL>*<RPV>),PRIMITIVE=ANALOGUE
G2,VCCS,-180/<PI>,PRIMITIVE=ANALOGUE
L1,INDUCTOR,<LCOIL>,PRIMITIVE=ANALOGUE
R1,RESISTOR,<RCOIL>,PRIMITIVE=PASSIVE
R2,RESISTOR,<RPV>^2*<RCOIL>*(100/<LOAD>-1),PRIMITIVE=PASSIVE
R3,RES,10k,PRIMITIVE=DIGITAL,PRIMTYPE=RESISTOR
R4,RES,10k,PRIMITIVE=DIGITAL,PRIMTYPE=RESISTOR
U1,NOR_2,NOR_2,INVERT=D0,PRIMITIVE=DIGITAL,TDHLDQ=1n,TDLHDQ=1n,TGQ=500p
U2,NOR_2,NOR_2,INVERT=D1,PRIMITIVE=DIGITAL,TDHLDQ=1n,TDLHDQ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