How can I do a 10 khz square wave with LtSpice ? - Page 3 - diyAudio
Go Back   Home > Forums > Design & Build > Software Tools
Home Forums Rules Articles diyAudio Store Gallery Wiki Blogs Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

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
Thread Tools Search this Thread
Old 29th August 2011, 01:03 PM   #21
AndrewT is offline AndrewT  Scotland
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
  Reply With Quote
Old 6th December 2012, 06:27 PM   #22
FdW is offline FdW  Netherlands
diyAudio Member
FdW's Avatar
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
  Reply With Quote
Old 11th December 2012, 07:44 PM   #23
FdW is offline FdW  Netherlands
diyAudio Member
FdW's Avatar
Join Date: Feb 2009
Location: Both feet on the ground (near Gouda)
And this works also
Attached Images
File Type: png Square Wave Gen.PNG (60.7 KB, 202 views)
  Reply With Quote
Old 23rd October 2013, 07:39 AM   #24
diyAudio Member
Join Date: Feb 2012
Location: North of Norway
Cool This is how I do it

A bit late, but this is how I do it:
Add a voltage source to your window, set parameters:

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
File Type: jpg 10KhzPulse train01 Oct. 23 09.38.jpg (108.8 KB, 148 views)
Attached Files
File Type: pdf Pulse Source in LTSpice.pdf (121.3 KB, 85 views)

Last edited by toriversen; 23rd October 2013 at 08:04 AM. Reason: some typing errors
  Reply With Quote
Old 29th March 2015, 09:46 PM   #25
diyAudio Member
Join Date: Feb 2010
Googled this. Great methods. Thanks to all!
  Reply With Quote


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LTspice square wave and audio amp test maouna Solid State 2 11th December 2010 09:34 AM
Sine wave - Square & Triangle wave generator using Transistors / OP-Amps lineup Solid State 20 9th October 2006 12:15 AM
10 KHz Square wave output? mura Solid State 17 31st May 2005 12:19 AM

New To Site? Need Help?

All times are GMT. The time now is 10:56 PM.

vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Copyright 1999-2017 diyAudio

Content Relevant URLs by vBSEO 3.3.2