Arduino環境にFranclin発振回路利用LCメーターを移し、基板作りしました。Franclin発振回路どんなが動作しているのかLTSPICEで確かめてみることにしました。
At first I made LC meter with PIC MPU, and I diverted it into Arduino environment recently. I made up PCB.
This time I confirmed the operation of Franclin oscillator by 74HCU04.
74HCU04のフランクリン発振回路をLTSPICEでシミュレートしたのはかなり昔です。
Ever I took it up for LTSPICE.
nobcha23.hatenablog.com
あれからPCが二種類ぐらい変わり、数回クラッシュしているので、データは残ってません。まず74HCU04を探さないといけません。以前引用したNXPのサイトは404です。(10年前の書き込みですが、結構アクセスあるようです)
After then my PCs crashed several times and I lost SPICE library. I accesed the site of NXP but in vain they replied 404.
今回やり直しで、色々ググったら、以前のNXP系のデータが見つかりました。次のようにして、.asyと74HC色々ファイルの.libを取り込みシミュレーションしました。
I serched with GOOGLE, and I found the data based on NXP as below.
(1) スケマチックスは次からDLし、74hcu04.asyのファイル名でLTspiceのsymフォルダ内に入れる。
Got data from below site and saved it as 74hcu04.asy into the holder of LTspice's \sym.
http://ltwiki.org/files/LTspiceIV/lib/sym/Dig_Add/74HC/74hcu04.asy
これが回路図データになり、Componentで出てくる。
(2) シミュレーションデータは次のところにあり、74HC.libで74HC全部sym取り込みlibフォルダ内に入れる。
Got data from below site and saved it as 74HC.lib of fully HC data into the holder of LTspice's \lib.
http://ltwiki.org/files/LTspiceIV/lib/sub/74hc.lib
Edit→SPICE Directiveで呼出せるようSPICEdirective指定する。(74hcu04.asyが74hcu04のシミュレーションデータを呼び出す時に参照。)
Set SPICEdirective of .lib 74hc.lib to call up.
.lib 74hc.lib
(3)74hcu04.asyでは供給でんげんに外部から"Vcc"で5Vを与えないといけない。直流電源を追加しVccをラベル指定。
74hcu04.asy asks power supply as "Vcc" so I add DC voltage of 5V.
(4)動作初期条件を与えないと発振開始しないので、Edit→SPICE Directiveで
.ic V(n003)=1Vとした。
It is nessesary to drive the intial condition of the node voltage to set SPICE Directive of .ic V(n003)=1V.
(5)以上をごにょごにょしてとりあえず発振しました。 It worked well.
次にはF1,F2,F3などを求めたり、誤差要因などを試してみたいと思っております。
Afterword I will try to simulate F1, F2, and F3, I would like to confirm the function of LC meter.
本項続く・・・
Continue.