How can I do a 10 khz square wave with LtSpice ? - Page 3 - diyAudio
 How can I do a 10 khz square wave with LtSpice ?
 User Name Stay logged in? Password
 Home Forums Rules Articles diyAudio Store Gallery Wiki Blogs Register Donations FAQ Calendar Search Today's Posts Mark Forums Read Search

 Software Tools SPICE, PCB CAD, speaker design and measurement software, calculators

 Please consider donating to help us continue to serve you. Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
 29th August 2011, 02:03 PM #21 diyAudio Member   Join Date: Jul 2004 Location: Scottish Borders It's only a square wave. JCX shows how much one needs to know before one can learn anything from LTspice. Simply learning how to operate LTspice is near the end of the learning required. __________________ regards Andrew T. Sent from my desktop computer using a keyboard
 6th December 2012, 07:27 PM #22 diyAudio Member     Join Date: Feb 2009 Location: Both feet on the ground (near Gouda) This is what I use ;PULSE({{ogen}+{vgen}} {{ogen}-{vgen}} {250m/{fgen}} 0 0 {450m/{fgen}} {1/{fgen}}) .param fgen 10k; Frequency .param vgen 100m; Volts .param ogen 300m; Offset volts __________________ Zion; LinkedIn; SignatureOrigin; ElectronicsPictures; ParadiseBuilders
diyAudio Member

Join Date: Feb 2009
Location: Both feet on the ground (near Gouda)
And this works also
Attached Images
 Square Wave Gen.PNG (60.7 KB, 186 views)

diyAudio Member

Join Date: Feb 2012
Location: North of Norway
This is how I do it

A bit late, but this is how I do it:

PULSE(-2 2 0 0.1p 0.1p 0.05m 0.1m)
.tran 1ms

This gives you a square pulse source, with an p-p amplitude of 4 volts (+2, -2)

The attached pdf explains how to do it in detail. (I've made it for myself to remember)

Typical output is shown in the picture.
Attached Images
 10KhzPulse train01 Oct. 23 09.38.jpg (108.8 KB, 134 views)
Attached Files
 Pulse Source in LTSpice.pdf (121.3 KB, 73 views)

Last edited by toriversen; 23rd October 2013 at 09:04 AM. Reason: some typing errors

 29th March 2015, 10:46 PM #25 diyAudio Member   Join Date: Feb 2010 Googled this. Great methods. Thanks to all!

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are Off Pingbacks are Off Refbacks are Off Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post maouna Solid State 2 11th December 2010 10:34 AM lineup Solid State 20 9th October 2006 01:15 AM mura Solid State 17 31st May 2005 01:19 AM

 New To Site? Need Help?

All times are GMT. The time now is 11:20 AM.