LTSpice, 10MHz Pierce oscillator uses a single NPN transistor Emitter output


https://wp.me/ph3BR-2hT

距離上次學習 LTSpice 大約半年, 換到別台電腦要再次使用就沒了, 需要再次下載安裝.

繼續用免費的工具 LTspice (http://ltspice.linear-tech.com/software/LTspiceXVII.exe), 可是找不到下載的網站? 原來 Analog Device 已經完全併購了 Linear Technology, 當然網站結構也開始更改了. 所以要到新的網站下載, http://ltspice.analog.com/software/LTspiceXVII.exe, 很新鮮, 2018-SEP-09 才更新的.

上次試驗, OSC 輸出在三極管的C腳, 這次實驗用E腳, 看看頻率的限制有何改變, 因為上次16MHz 就上不去了. 線路圖抄這個 https://www.elprocus.com/crystal-oscillator-circuit-and-working/

LTSpice 源碼

10MHz_Xtal_OSC_NPN_E_output.asc


Version 4
SHEET 1 1040 680
WIRE 688 -32 -32 -32
WIRE -128 64 -192 64
WIRE -32 64 -32 -32
WIRE -32 64 -48 64
WIRE 80 64 -32 64
WIRE 400 64 176 64
WIRE 688 144 688 -32
WIRE -192 176 -192 64
WIRE -128 176 -192 176
WIRE -32 176 -32 64
WIRE -32 176 -64 176
WIRE -16 176 -32 176
WIRE 128 176 128 128
WIRE 128 176 48 176
WIRE 192 176 128 176
WIRE 400 176 400 64
WIRE 400 176 272 176
WIRE 576 176 400 176
WIRE 576 208 576 176
WIRE -192 272 -192 176
WIRE -192 272 -208 272
WIRE -80 272 -192 272
WIRE 128 272 128 176
WIRE 128 272 0 272
WIRE 576 320 576 288
WIRE 688 320 688 224
WIRE -192 368 -192 272
WIRE -112 368 -192 368
WIRE 128 368 128 272
WIRE 128 368 -48 368
WIRE -192 400 -192 368
FLAG -192 400 0
FLAG 576 320 0
FLAG 128 176 Vb
FLAG 688 320 0
SYMBOL npn 176 128 M270
SYMATTR InstName Q1
SYMATTR Value 2N3904
SYMBOL Misc\\xtal -48 352 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName 10MHz_Xtal
SYMATTR Value 100pf
SYMATTR SpiceLine Rser=10 Lser=0.01 Cpar=5e-011
SYMBOL res 288 160 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 34 55 VTop 2
SYMATTR InstName R3
SYMATTR Value 470k
SYMBOL voltage 576 192 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 5v
SYMBOL cap -64 160 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C1
SYMATTR Value 470pf
SYMBOL res 16 256 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 470k
SYMBOL cap 48 160 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C2
SYMATTR Value 100pf
SYMBOL res 672 128 R0
SYMATTR InstName R_LOAD
SYMATTR Value 10k
SYMBOL res -32 48 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R2
SYMATTR Value 5k
TEXT 224 280 Left 2 !.tran 0 0.4ms 0 0.01ms uic
TEXT 224 312 Left 2 ;Pierce Xtal Oscillator\none more resistor used but Emitter output signal\nxiaolaba, 2018-OCT-04
TEXT 280 -128 Left 2 ;simulation notes:\nR3, lower than 200k, no oscillation, the higher, fast start up\nC1, 220pf- 1200pf\nXtal, act as a capacitor

模擬圖

REF:

https://xiaolaba.wordpress.com/2018/03/09/10mhz-pierce-oscillator-uses-a-single-npn-transistor/

https://www.elprocus.com/crystal-oscillator-circuit-and-working/

 

2018-NOV-05

實驗, 按照之前做的模擬搭麵包板, 結果不行, 不知道啥原因, 既然不行就亂改一通, 哈, 結果成了, 而且零件更少, 主要是在2N3904 的EC之間放一個小電容, 太大不行, 太小也不行, 實驗結果是18PF 到47PF之間. 手邊有其他的零件, 順道試試看用其他晶體管, 要用12MHZ XTAL, 看來這個電路和零件的選用, 2N3904是最好的選擇, 而且, 10MHZ-27MHZ都有震盪輸出, 反觀XTAL頻率往下就不行了, 更之前那個有分別. 可能是麵包板有寄生電容的原因, 有時間再焊接一個成品看看結果. 電路圖和實驗的數據.

xiaolaba_HC908JB8_12MHZ_OSC

 

網路也有教學, 用 PNP 設計震盪電路的, 下次有機會再來實驗一下.

http://www.tpub.com/neets/book9/35f.htm

列印一個存檔, 方便日後參考, 因為互聯網天天在變連接常常失效 PNP_XTAL_OSCILLATOR_DESIGN

當然, 先用 LTspice 試試看, 好像不能維持震盪, 源碼


Version 4
SHEET 1 1040 680
WIRE -144 -112 -304 -112
WIRE -48 -112 -144 -112
WIRE 64 -112 -48 -112
WIRE 240 -112 64 -112
WIRE -304 -80 -304 -112
WIRE -144 -80 -144 -112
WIRE -48 -80 -48 -112
WIRE 64 -80 64 -112
WIRE 160 -80 64 -80
WIRE 96 0 64 0
WIRE 160 0 160 -16
WIRE 160 0 96 0
WIRE -144 16 -144 -16
WIRE -48 16 -48 0
WIRE -48 16 -144 16
WIRE 64 16 64 0
WIRE 160 16 64 16
WIRE -304 32 -304 0
WIRE 64 32 64 16
WIRE 240 32 240 -112
WIRE 160 48 160 16
WIRE -48 80 -48 16
WIRE -16 80 -48 80
WIRE 0 80 -16 80
WIRE -48 112 -48 80
WIRE 64 144 64 128
WIRE 160 144 160 112
WIRE 160 144 64 144
WIRE 64 192 64 144
WIRE 64 192 -48 192
WIRE 240 192 240 96
WIRE 240 192 64 192
WIRE 320 192 240 192
WIRE 416 192 384 192
WIRE 64 208 64 192
WIRE 64 320 64 288
FLAG -304 32 0
FLAG 64 320 0
FLAG 416 192 OSC
IOPIN 416 192 Out
FLAG -16 80 Vb
FLAG 96 0 Vc
SYMBOL Misc\\xtal 224 32 R0
SYMATTR InstName 10MHz_Xtal
SYMATTR Value 100pf
SYMATTR SpiceLine Rser=10 Lser=0.01 Cpar=5e-011
SYMBOL res 80 16 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName Re
SYMATTR Value 100k
SYMBOL voltage -304 -96 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 5v
SYMBOL cap 144 -80 R0
SYMATTR InstName Ce
SYMATTR Value 470pf
SYMBOL res 80 304 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName Rc
SYMATTR Value 1k
SYMBOL cap 144 48 R0
SYMATTR InstName C1
SYMATTR Value 10pf
SYMBOL res -32 16 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName Rb
SYMATTR Value 10k
SYMBOL pnp 0 128 M180
WINDOW 0 54 28 Left 2
WINDOW 3 48 62 Left 2
SYMATTR InstName Q2
SYMATTR Value 2N3906
SYMBOL cap -160 -80 R0
WINDOW 0 -31 4 Left 2
WINDOW 3 -59 58 Left 2
SYMATTR InstName C2
SYMATTR Value 470pf
SYMBOL res -32 208 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName Rf
SYMATTR Value 10k
SYMBOL cap 384 176 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName Cout
SYMATTR Value 100pF
TEXT -320 320 Left 2 !.tran 0 0.3ms 0 0.05ms uic
TEXT -312 -384 Left 2 ;Pierce Xtal Oscillator, PNP common base config\none more resistor, Collector output signal\nxiaolaba, 2018-NOV-06\nREF: http://www.tpub.com/neets/book9/35f.htm
TEXT -312 -256 Left 2 ;simulation notes:\nR3, lower than 200k, no oscillation, the higher, fast start up\nC1, 220pf- 1200pf\nXtal, act as a capacitor

模擬的圖畫

10MHz_Xtal_OSC_PNP_C_output

 

.

.

既然先前的設計沒有震盪, 那就亂亂改, 加入一個RFC 看, 好像維持震盪了


Version 4
SHEET 1 1040 680
WIRE -144 -112 -304 -112
WIRE -48 -112 -144 -112
WIRE 64 -112 -48 -112
WIRE 240 -112 64 -112
WIRE 496 -112 240 -112
WIRE 64 -96 64 -112
WIRE -304 -80 -304 -112
WIRE -144 -80 -144 -112
WIRE -48 -80 -48 -112
WIRE 64 0 64 -16
WIRE 96 0 64 0
WIRE 160 0 160 -16
WIRE 160 0 96 0
WIRE 240 16 240 -112
WIRE -304 32 -304 0
WIRE -144 32 -144 -16
WIRE -48 32 -48 0
WIRE -48 32 -144 32
WIRE 64 32 64 0
WIRE 496 48 496 -112
WIRE -48 80 -48 32
WIRE -16 80 -48 80
WIRE 0 80 -16 80
WIRE -48 96 -48 80
WIRE 64 144 64 128
WIRE 160 144 160 112
WIRE 160 144 64 144
WIRE -48 192 -48 176
WIRE 64 192 64 144
WIRE 64 192 -48 192
WIRE 240 192 240 80
WIRE 240 192 64 192
WIRE 320 192 240 192
WIRE 416 192 320 192
WIRE 496 192 496 128
WIRE 496 192 480 192
WIRE 512 192 496 192
WIRE 496 224 496 192
WIRE 64 304 64 272
WIRE 496 304 64 304
WIRE 64 320 64 304
FLAG -304 32 0
FLAG 64 320 0
FLAG 512 192 OSC
IOPIN 512 192 Out
FLAG -16 80 Vb
FLAG 96 0 Ve
FLAG 320 192 Vc
SYMBOL Misc\\xtal 224 16 R0
SYMATTR InstName 10MHz_Xtal
SYMATTR Value 100pf
SYMATTR SpiceLine Rser=10 Lser=0.01 Cpar=5e-011
SYMBOL voltage -304 -96 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 5v
SYMBOL cap 144 -80 R0
SYMATTR InstName Ce
SYMATTR Value 10pf
SYMBOL res 80 288 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName Rc
SYMATTR Value 30k
SYMBOL cap 144 48 R0
SYMATTR InstName C1
SYMATTR Value 5pF
SYMBOL res -32 16 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName Rb
SYMATTR Value 200k
SYMBOL pnp 0 128 M180
WINDOW 0 54 28 Left 2
WINDOW 3 48 62 Left 2
SYMATTR InstName Q2
SYMATTR Value 2N3906
SYMBOL cap -160 -80 R0
WINDOW 0 -31 4 Left 2
WINDOW 3 -59 58 Left 2
SYMATTR InstName C2
SYMATTR Value 10pf
SYMBOL res -32 192 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName Rf
SYMATTR Value 20k
SYMBOL cap 480 176 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName Cout
SYMATTR Value 100pF
SYMBOL ind 80 0 R180
WINDOW 0 36 80 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName L1
SYMATTR Value 470焙
SYMBOL res 480 208 R0
SYMATTR InstName RL
SYMATTR Value 47k
SYMBOL res 480 32 R0
SYMATTR InstName R_pull_up
SYMATTR Value 270k
TEXT -320 320 Left 2 !.tran 0 10ms 0 5ms uic
TEXT -312 -384 Left 2 ;Pierce Xtal Oscillator, PNP common base config\none more resistor, Collector output signal\nxiaolaba, 2018-NOV-06\nREF: http://www.tpub.com/neets/book9/35f.htm
TEXT -312 -256 Left 2 ;simulation notes:\nL1, 220uH-470uH above, a must\nRf, Rc, fine tuned for lowest operation current 300uA below

模擬的圖畫

10MHz_Xtal_OSC_PNP_fine_tuned

.

.

.

雖然上面那可可一震盪, 但是震盪幅度自只有1.5V左右, 不太滿意, 再來嘗試很正宗的電容三點式震盪電路, 果然這個模擬結果有比較震盪大幅度3.5V, 據說設計是 COMMON EMITTER PIERCE XTAL OSCILLATOR, 看來比較好.

源碼和模擬圖如下, 實際結果就要到下次搭棚才曉得, 震盪器這東西, 實在很弔詭.


Version 4
SHEET 1 1040 680
WIRE 240 -160 -144 -160
WIRE -48 -112 -304 -112
WIRE 64 -112 -48 -112
WIRE 112 -112 64 -112
WIRE 496 -112 112 -112
WIRE 64 -96 64 -112
WIRE 64 -96 0 -96
WIRE -304 -80 -304 -112
WIRE 0 -80 0 -96
WIRE 240 -80 240 -160
WIRE 240 -80 160 -80
WIRE -48 -48 -48 -112
WIRE 0 0 0 -16
WIRE 64 0 64 -16
WIRE 64 0 0 0
WIRE 112 16 112 -112
WIRE 160 16 160 -16
WIRE 160 16 112 16
WIRE 240 16 240 -80
WIRE -304 32 -304 0
WIRE 64 32 64 0
WIRE 160 48 160 16
WIRE 496 48 496 -112
WIRE -144 80 -144 -160
WIRE -48 80 -48 32
WIRE -48 80 -144 80
WIRE -16 80 -48 80
WIRE 0 80 -16 80
WIRE -48 96 -48 80
WIRE 160 144 160 112
WIRE 240 144 240 80
WIRE 240 144 160 144
WIRE -48 192 -48 176
WIRE 64 192 64 128
WIRE 64 192 -48 192
WIRE 240 192 240 144
WIRE 240 192 64 192
WIRE 320 192 240 192
WIRE 416 192 320 192
WIRE 496 192 496 128
WIRE 496 192 480 192
WIRE 512 192 496 192
WIRE 496 224 496 192
WIRE 64 304 64 272
WIRE 496 304 64 304
WIRE 64 320 64 304
FLAG -304 32 0
FLAG 64 320 0
FLAG 512 192 OSC
IOPIN 512 192 Out
FLAG -16 80 Vb
FLAG 320 192 Vc
SYMBOL Misc\\xtal 224 16 R0
SYMATTR InstName 10MHz_Xtal
SYMATTR Value 100pf
SYMATTR SpiceLine Rser=10 Lser=0.01 Cpar=5e-011
SYMBOL voltage -304 -96 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 5v
SYMBOL cap 144 -80 R0
SYMATTR InstName Ce
SYMATTR Value 100pf
SYMBOL res 80 288 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName Rc
SYMATTR Value 47k
SYMBOL cap 144 48 R0
SYMATTR InstName C1
SYMATTR Value 47pf
SYMBOL res -32 48 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName Rb
SYMATTR Value 470k
SYMBOL pnp 0 128 M180
WINDOW 0 54 28 Left 2
WINDOW 3 48 62 Left 2
SYMATTR InstName Q2
SYMATTR Value 2N3906
SYMBOL res -32 192 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName Rf
SYMATTR Value 470k
SYMBOL cap 480 176 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName Cout
SYMATTR Value 100pF
SYMBOL res 480 208 R0
SYMATTR InstName RL
SYMATTR Value 47k
SYMBOL res 480 32 R0
SYMATTR InstName R_pull_up
SYMATTR Value 100k
SYMBOL res 48 -112 R0
SYMATTR InstName Re
SYMATTR Value 1k
SYMBOL cap -16 -80 R0
SYMATTR InstName C2
SYMATTR Value 100pf
TEXT -320 320 Left 2 !.tran 0 300us 0 50us uic
TEXT -312 -416 Left 2 ;Pierce Xtal Oscillator, PNP common emitter config\none more resistor, Collector output signal\nxiaolaba, 2018-NOV-06\nhttp://www.interfacebus.com/pierce-oscillator-circuit-operation.html
TEXT -312 -280 Left 2 ;simulation notes:\nRb/Rf set base voltage\nRe, set emitter current\nRc, set collector current, 300uA below

10MHz_Xtal_OSC_PNP_COMMON_EMITTER

To Be Continued…

廣告

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com 標誌

您的留言將使用 WordPress.com 帳號。 登出 /  變更 )

Google+ photo

您的留言將使用 Google+ 帳號。 登出 /  變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 /  變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 /  變更 )

連結到 %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.