Go Back   Home > Forums > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

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

How can I do a 10 khz square wave with LtSpice ?
How can I do a 10 khz square wave with LtSpice ?
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
Reply
 
Thread Tools Search this Thread
Old 29th August 2011, 01:03 PM   #21
AndrewT is offline AndrewT  Scotland
R.I.P.
 
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.
  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)
How can I do a 10 khz square wave with LtSpice ?
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)
How can I do a 10 khz square wave with LtSpice ?
And this works also
Attached Images
File Type: png Square Wave Gen.PNG (60.7 KB, 225 views)
  Reply With Quote
Old 23rd October 2013, 07:39 AM   #24
toriversen is offline toriversen  Norway
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, 172 views)
Attached Files
File Type: pdf Pulse Source in LTSpice.pdf (121.3 KB, 98 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
kelp is offline kelp
diyAudio Member
 
Join Date: Feb 2010
Googled this. Great methods. Thanks to all!
  Reply With Quote

Reply


How can I do a 10 khz square wave with LtSpice ?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

Forum Jump

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 06:54 PM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 15.00%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Copyright ©1999-2018 diyAudio
Wiki