Offset and amplitude in Sim mode Signal Generator is implemented incorrectly.
This Bug Report relates to:
https://easyeda.com/forum/topic/Signal-Generator-4d7e7398caba40f1a262469332a38dd9
Offset in the Rectangular and Triangle Wave outputs is not implemented correctly.
Both outputs of both waveforms are implemented using PULSE() sources.
The low and high level output voltage of a PULSE() Source is defined by the INITIAL and ON parameters respectively.
For an output with a peak to peak Amplitude, A, that swings equally A/2 above and A/2 below the Offset value, O, the expressions used to add an offset to the Pulse and Triangle Wave outputs should be:
INITIAL=O-A/2
ON=O+A/2
Offset in the Sine Wave output is implemented in an unexpected way.
For a function generator with two outputs in anitphase and a single offset control it would normally be expected that the same offset would be applied to both outputs and not - as is implemented at present - that one output would have a positive offset and the other a negative offset.
The Sine Wave outputs are implemented using the SINE() Source.
The offset of a SINE() output voltage is defined by the DCOFFSET parameter:
The expression to control the offset for both SINE() outputs should be:
DCOFFSET = O
The Amplitude of the Sine Wave output is double that of the Rectangular and Triangle Wave outputs.
The AMPLITUDE parameter of the SINE() Source represents the Peak value and not the Peak-to-Peak value.
Therefore for the Sine Wave output to give the same Peak-to-Peak swing as the outputs defined by PULSE() Sources, the expression for the SINE() Source Amplitude should be:
AMPLITUDE=A/2
For detailed information on SINE() and PULSE() signal sources in LTspice, please study:
https://easyeda.com/editor#mode=sim,id=5e3d25de3492487b88275e38c4620239
and:
https://easyeda.com/editor#mode=sim,id=d49a7278feef4be2b72d851765f3acbb
and for more information about sources:
https://docs.google.com/document/u/1/d/1OWZVVFRAe_2NW3WratpkA_SGuHa5AcRow5ZRfvcoVTU/pub#h.bq0i7caw31bh
Reply
Sign In Or Register Comment after
No comments yet. Be the first to comment!