You need to use EasyEDA editor to create some projects before publishing
AC Analysis broken because "AC 1 0" is incorrectly appended to ALL Voltage sources
1573 3
andyfierman 4 years ago
AC Analysis is broken because "AC 1 0" is being incorrectly appended to ALL Voltage sources ignoring how they are configured in the schematic. This is an example simulation but all simulation netlists I have looked at recently show the same bug. [https://easyeda\.com/editor\#mode=sim\,id=\|8aae27aaf8d64096b407367892960681](https://easyeda.com/editor#mode=sim,id=%7C8aae27aaf8d64096b407367892960681) Adding "AC {amplitude} {phase}" to a voltage source enables it to be used as the signal source for an AC Analysis and normally _it is this source and this source only_ that is then used for creating a Bode or frequency response plot. There are occasions where more then one source may be used but that is very unusual. * The choice of which source to append "AC {amplitude} {phase}" to has to be left up to the user and MUST not be automated. In particular it must NOT be appended in such a way that the user cannot see or edit it!
Comments
dillon 4 years ago
 only SIN souce  has AC ? PWL and DC and any other no need to have such souce?
Reply
andyfierman 4 years ago
The AC option is required for any AC Analysis because it is the way in which spice runs a frequency domain sweep. Any Independent Voltage (V) or Current (I) Source may have the AC option appended to it. Except for the DC Offset supplied by the source, the AC option has nothing to do with how that V or I Sources are configured so the AC option can be appended to any DC/SIN/PULSE/EXP/SFFM/PWL configured V or I Source. The AC option cannot be applied to B, E, F, G or H sources. * Because of this bug it is not possible to set these simulation up in EasyEDA so here are some screenshots of sims in LTspice. I can send the LTspice files if required. This is a very simple example of the AC option appended to a V and an I source. Because the I source has a 1k load the AC option is set to 1mA (AC 1m 0) so that the voltage across R2 is 1V, the same as the AC 1 0 source created in V1. This makes both plots identical: ![image.png](//image.easyeda.com/pullimage/rZ4rZEEXi0V4rRpsDF8mvsDezciCJV66EZZxDsRq.png) And this series of sim screenshots demonstrates what goes wrong if you assign the AC option to all sources in a circuit: This is a "conventional" frequency response of gain and phase from input to output so the AC option is applied to the input source I1 only: ![image.png](//image.easyeda.com/pullimage/iekeIpU0oQMUa7W8UFlhf8IUNHugqRjKa80WXBCk.png) This is the same circuit but measuring power supply rejection so the AC option is applied to the power supply V1 only: ![image.png](//image.easyeda.com/pullimage/sIIDvAGA0J1ZEDAJbjmduuEaN7RJkrtUhS94qdDH.png) But this shows that the results are meaningless if the AC option is applied to both the input and the supply sources, which is what is happeining at the moment in EasyEDA: ![image.png](//image.easyeda.com/pullimage/3vcV2AETYvKRe5cN5mU12IVC2TGqmDUnkNrrI7ve.png) The appending of the AC option can only be chosen by the user because it is they who decide what they want to plot. It cannot be assumed which source or type of source that the AC option will be appended to. * Therefore appending of the AC option can not and must not be automated. I can send the LTspice files if required. The use of the AC option is explained in more detail here: [https://docs\.google\.com/document/u/1/d/1OWZVVFRAe\_2NW3WratpkA\_SGuHa5AcRow5ZRfvcoVTU/pub\#h\.vx1227](https://docs.google.com/document/u/1/d/1OWZVVFRAe_2NW3WratpkA_SGuHa5AcRow5ZRfvcoVTU/pub#h.vx1227)
Reply
andyfierman 4 years ago
AC\_Analysis\_02c\.asc above is effectively demonstrating the same thing that is happening to my AC Sweep bug example above in: [https://easyeda\.com/editor\#mode=sim\,id=\|8aae27aaf8d64096b407367892960681](https://easyeda.com/editor#mode=sim,id=%7C8aae27aaf8d64096b407367892960681)
Reply
Login or Register to add a comment
goToTop
你现在访问的是EasyEDA海外版,建议访问速度更快的国内版 https://lceda.cn(需要重新注册)
如果需要转移工程请在个人中心 - 工程 - 工程高级设置 - 下载工程,下载后在https://lceda.cn/editor 打开保存即可。
有问题联系QQ 3001956291 不再提醒
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus-@1x -mockplus-

Cookie Notice

Our website uses essential cookies to help us ensure that it is working as expected, and uses optional analytics cookies to offer you a better browsing experience. To find out more, read our Cookie Notice