blob: bc6954b3481819f45901f6717ab13f8bd662536b (
plain)
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
|
AC-DC Linear Regulator
.inc ./lib/generic.lib
.inc ./lib/regulators.lib
* Transformation
Vac acp1 acp2 sin(0 155.6 50)
Xt acp1 acp2 acs1 acs2 TRANSFORMER Lout=1.19
* Rectification
Xr acs1 acs2 in gnd RECTIFIER
* Filtering
C1 in gnd 100u
C2 in gnd 100u
C3 in gnd 10u
* Regulation
Xrv in gnd out LM7805
Rl out gnd 100
.control
set filetype ascii
tran 100us 35ms
shell mkdir -p results
wrdata results/voltages.raw v(acs1,acs2) v(in) v(out)
shell gnuplot ac2dc_linear.gnuplot
.endc
.end
|