|
|||||||
| Home | Forums | Articles | Gallery | Blogs | Register | Donations | FAQ | Calendar | Search | Today's Posts | Mark Forums Read | Search |
| Class D Switching Power Amplifiers and Power D/A conversion |
|
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 |
|
|
#11 |
|
diyAudio Member
Join Date: Dec 2003
Location: Munich
|
High Pafi,
the 5us is the max allowed step size. The spice algorithm uses smaller steps, whereever needed. Even if you do not limit them 5us. But without limit the simulation sometimes gets unstable and convegrence is poor. Also the steps which psice really choose depend in a some way on that max limit.... You can see if the are to big when you check the traces, there the 800ns dead are perfectly displayed..... |
|
|
|
#12 |
|
diyAudio Member
Join Date: Dec 2003
Location: Munich
|
ok, some screen shots
At small signal levels the HF of the switching is of course making a noise floor which is higher than the audio signal. But this noise floor has its fundamental at 70kHz and should not be the resaon for the undesired signal with a frequency of 14kHz.... OK, I must sleep now... Bye Markus |
|
|
|
#13 | ||
|
Account Disabled
|
Hi,
Quote:
A time step of 5uS must give you some ugly waves though, should try at least in the nano range for a THD test. If you can simulate with less harmonics you'll regain alot of the simulation speed you lost by alterting the time step like that. Seven harmonics is alot faster than 10 for example. Which brings us back to the question....how many is usefull? There is another option in the THD settings "print values in the output file every X seconds", any recommendations for that? Hi Subwo1 Quote:
Very good, thank you. Chris |
||
|
|
|
#14 |
|
diyAudio Member
Join Date: May 2004
Location: Budapest
|
Marcus!
I didn't mean 0,1% distortion, I mean 0,1% accuracy. (0,1% of the amplitude of triangle. This means 1% distortion at 10% output level.) You can use higher modulation freq. to lower the simulation time. The distortion doesn't depend on frequency too much. (If there is no feedback.) (I have a Celeron 366, and I have never had any serious problem on simulation time.) |
|
|
|
#15 |
|
diyAudio Member
Join Date: Dec 2003
Location: Munich
|
...somehow the screenshots got lost
trying again... |
|
|
|
#16 | |
|
Account Disabled
|
Hi Pafi,
Good seeing you, Quote:
Good point about speeding up simulations times by increasing frequency, it does do wonders. However when I do THD simulations I use 1khz "center" frequency in order to try and maintain some standard in conjuction with everyone elses tests, this way I have a better feeling regarding the value of the results. What do you think? Would there be any reason to use other "center" frequencies as well, aside from simulation speed? Thank you, Chris PS: Some good movies on tonight so I'm out for a little while at least, yet thank all participants, and am very glad this thread is off to a great start! |
|
|
|
|
#17 |
|
diyAudio Member
Join Date: May 2004
Location: Budapest
|
Hi Chris!
Assuming the error is constant, distortion is inverse proportional to signal level. 0,1% at full load is just an estimation based on phase-amplitude conversion of triangle-wave. T/2=7us means peak-to-peak, therefore 7 ns means 0,1% error (+/-6dB )"Would there be any reason to use other "center" frequencies as well, aside from simulation speed?" Definitely! For example Markus use 200 Hz, because he make the amp for a sub-bass box. Other reasons can be found (professional high-speed OPAs measured at 1 or 5 MHz), but I have to sleep too now! Markus! OK, spice may use smaller time-steps, but you can never know if they are small enough. |
|
|
|
#18 |
|
diyAudio Member
Join Date: Dec 2003
Location: Munich
|
Hi Pafi!
... hope you had a better sleep,,, ![]() Thanks, you are right. To allow 5us step is to huge. The traces in the probe window are looking fine, but the FFT is running mad.... For me it is not obvious, why the FFT is giving really crazy results (not only some single percent wrong, but 40%.. !!!), while the probe traces are looking fine.... Anyway I reduced the step size to 5ns and spice world is looking more or less reasonable now. I am attaching the new output-text-file. THANKS A LOT! Markus P.S. My simulation philsophy: For the first steps I am going to investigate the principle. Here I often use ideal components, from which I know their behaviour very well. Also this helps to speed up simulation and I can spend the processors math power to simulate fundamental circuit properties like the planned switching, dead time etc... With that model then I am typically just playing around. Picking 100 harmonics instead of 10 was also just "playing". In the past I often found real weaknesses, before they could blow the real circuit later. But of course sometimes you are getting tricked by simulation... as it happened to me yesterday... OK, I will keep in mind: Even if the probe traces are looking fine, even then the steps can still be to huge.... By the way: I was wondering about Randy Slone's Audio Amplifier construction manual, some months ago. He is showing tons of simulation results, where already the probe traces are showing obviously long simulation steps (especially chapter 7, cross over distorsion).... |
|
|
|
#19 |
|
diyAudio Member
Join Date: May 2004
Location: Budapest
|
Hi Markus!
You're welcome! I just woke up. :-) I like simulating with ideal components or simplified modells for first step too! At PWM this is the most I can, because no simulaton program capable of simulate well my real circuit. (At least I don't know one.) In continous operation time step is not so big problem. If time step is 1/500 of period, then simulation is perfect. (In PWM too, but here the period is the carrier's one, instead of base-band signal!) I think explanation of bad result is that FFT algorithm can't handle varying time-steps. It need all of the points. Or sampling rate was too small. It must be over 200*f_carrier (yes, 14 MHz at least)! If you were filter first, then sampling rate could be lower. |
|
|
|
#20 |
|
Account Disabled
|
Hi,
I had implemented additional output filtering in my simulation using one the ABM low pass block. It did it's job that was evident from viewing the output, had placed cut off around 50Khz. With my circuit harmonic distortion should be flat, then you see a peak at the switching frequency, I found it curious this additional filtering didn't remove this switching distortion from the FFT results? Or any of it's harmonics after it. Spice weakness? Also, it's clear to me I need to read up on acoustics and frequency domain signal analysis, Can anyone recommend a good link for that sort of info? Thanks, Chris |
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| line-array vs conventional point-source/ distorsions issues | crazyhub | Multi-Way | 26 | 2nd July 2007 12:03 AM |
| How about a round-up of Class A kit power amps, or collectable vintage class A? | Brisso57 | Solid State | 4 | 14th February 2007 10:30 AM |
| Class D Vs Class I (Balanced Current Amplifier) | rmsaudio | Class D | 28 | 29th September 2006 07:03 AM |
| Zen v4 and bass distorsions ... | Stabist | Pass Labs | 4 | 24th September 2002 11:59 PM |
| New To Site? | Need Help? |
| Page generated in 0.13334990 seconds (86.14% PHP - 13.86% MySQL) with 11 queries |