How can I do a 10 khz square wave with LtSpice ? - Page 3 - diyAudio
Go Back   Home > Forums > Design & Build > Software Tools

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
Reply
 
Thread Tools Search this Thread
Old 29th August 2011, 01:03 PM   #21
AndrewT is online now 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.
  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, 93 views)
  Reply With Quote
Old 23rd October 2013, 07:39 AM   #24
diyAudio Member
 
Join Date: Feb 2012
Location: Tromso, 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, 42 views)
Attached Files
File Type: pdf Pulse Source in LTSpice.pdf (121.3 KB, 19 views)

Last edited by toriversen; 23rd October 2013 at 08:04 AM. Reason: some typing errors
  Reply With Quote

Reply


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 12:20 PM.


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

Content Relevant URLs by vBSEO 3.3.2