-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDigital Differentiator Test.asc
62 lines (62 loc) · 1.84 KB
/
Digital Differentiator Test.asc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Version 4
SHEET 1 1768 880
WIRE 336 -16 208 -16
WIRE 528 -16 432 -16
WIRE 528 0 528 -16
WIRE 336 16 304 16
WIRE -400 32 -528 32
WIRE -256 32 -400 32
WIRE 608 64 592 64
WIRE 816 64 752 64
WIRE 16 80 -80 80
WIRE 208 80 208 -16
WIRE 208 80 16 80
WIRE -256 96 -336 96
WIRE 656 128 656 112
WIRE 704 128 704 112
WIRE 704 128 656 128
WIRE -528 144 -528 32
WIRE 704 144 704 128
WIRE 208 160 208 80
WIRE 528 160 528 128
WIRE 528 160 208 160
FLAG -528 224 0
FLAG -432 448 0
FLAG -432 368 CLK
FLAG -336 96 CLK
FLAG 16 80 adc_out
FLAG -400 32 in
FLAG 304 16 clk
IOPIN 304 16 In
FLAG 816 64 out
FLAG 704 144 0
SYMBOL voltage -528 128 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value SINE(0 1 {0.5/pi} 0 0)
SYMBOL voltage -432 352 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value PULSE(-1 1 0 100ns 100nS {0.5/Fs} {1/Fs})
SYMBOL SpecialFunctions\\sample -176 64 R0
WINDOW 3 -77 113 Left 2
SYMATTR Value Vhigh=100kv Vlow=-100kv
SYMATTR InstName A1
SYMBOL z-1 384 -16 R0
SYMATTR InstName X1
SYMBOL gain 656 64 R0
WINDOW 3 -27 0 Left 1
SYMATTR Value {Fs}
SYMATTR InstName E2
SYMBOL diff2b 528 64 R0
SYMATTR InstName U1
TEXT 224 448 Left 2 !.param Fs=1kHz ; Discrete Time Sample Rate
TEXT 224 472 Left 2 !.tran {3*2*pi}
TEXT 184 -128 Left 2 ;DISCRETE TIME DIFFERENTIATOR
TEXT -552 -416 Left 2 ;Input is a 1V sine wave with a frequency of 1 rad/sec. Derviative ouput is a 1V cosine wave (correct magnitute).\nDiscrete sampling rate is 1 kHz.
TEXT -552 -328 Left 2 ;NOTE: Through experimentation, the Sample and Hold block appears to clip its output\nto be wetween Vhigh and Vlow, which default to +/-20V. Hence, these should be explicitly\nset to large values (such as +/-100 kV) to aviod issues.
TEXT -552 536 Left 2 ;Copyright (C) 2022 John Vedder. MIT License.
RECTANGLE Normal 768 208 160 -160 1
RECTANGLE Normal 496 -240 -560 -352 2