18 October 2012, 21:05 | #41 | ||
Registered User
Join Date: Mar 2009
Location: moon
Posts: 373
|
Quote:
Quote:
|
||
18 October 2012, 23:44 | #42 | |
Registered User
Join Date: Jun 2010
Location: PL?
Posts: 2,745
|
Quote:
Oh no, they are (PWM) simply different way to have DAC - if PWM DAC have variable Vref it will work as PAM (Pulse Amplitude Modulation) - PWM after integration (low pass filtering) will produce normal analog signal, exactly same as other DAC's - in fact this is one of the so called 1bit converters (PWM and Delta Sigma). http://www.rane.com/note137.html Hmmm now seems i don't understand. Value stored in AUDxDAT (word - 2 bytes - 2 samples) are repeated when DMA hardware is not capable to provide requested by Paula new data - this will produce variable level 2 pulse signals - if value for this samples will be same only DC level will be produced at the Paula output and this can be used as a reference to be modulated (variable level) by 6 bit value in AUDxVOL (assumption that AUDxVOL will be feed by samples converted to 6 bit however this is very inefficient method due sampling rate limitation - mentioned by Toni 3.58MHz/64/2 = approx 28kHz). |
|
19 October 2012, 00:22 | #43 | |
Registered User
Join Date: Mar 2009
Location: moon
Posts: 373
|
Quote:
If you want to predict how the volume mechanism affects the sound, you have to look at what it does to the waveform, which is amplitude modulation with a pulse wave. I think we're talking past eachother. The point was to figure out how the volume mechanism works, so the volume register had a constant value, not what you assume. |
|
19 October 2012, 14:16 | #44 | |
Registered User
Join Date: Jun 2010
Location: PL?
Posts: 2,745
|
Quote:
PWM DAC converter is one of many DAC's and DAC's can be connected in series - check multiplying DAC: http://www.national.com/assets/en/other/ms101157.pdf "Multiplying DAC: In a sense, every DAC is a multiplying DAC since the output voltage (or current) is equal to the reference voltage times a constant determined by the digital input code divided by 2n (n is the number of bits of resolution). In a two quadrant multiplying DAC the reference voltage or the digital input code can change the output voltage polarity. If both the reference voltage and the digital code change the output voltage polarity, four quadrant multiplication exists." Oh - is this mean that you are not allowed to change AUDxVOL multiple time per second - perhaps 28000 times per second? |
|
19 October 2012, 14:40 | #45 | ||
Registered User
Join Date: Mar 2009
Location: moon
Posts: 373
|
Quote:
Quote:
The hardware registers can be written to as often as you like. A constant value was simply the best way to figure out how the volume mechanism works. |
||
19 October 2012, 16:02 | #46 | ||
Registered User
Join Date: Jun 2010
Location: PL?
Posts: 2,745
|
Quote:
Quote:
btw most of the 1 bit DAC's (even thos high end audio 16 bit converters) are in real life "purelly digital" (like second order DS converters) I think it can't be updated more frequently than 3.58MHz/64 or you start loosing values (no time for PWM to convert one value - at least 64 cycles required) - this was my point that for AUDxVOL sample rate is 3.58MHz/64 and max allowed frequency is 3.58MHz/128. |
||
19 October 2012, 18:14 | #47 | ||
Registered User
Join Date: Mar 2009
Location: moon
Posts: 373
|
Quote:
Quote:
Oh, now I see that you want to feed a signal to the volume register! Updating the volume more frequently than the PWM period will result in an irregular pulse wave. If you want to feed it a signal with frequencies up to 1/128th of the Paula clock without getting amplitude modulation artifacts, you have to synchronise the register writes with the PWM counter reset as well. The question is why anyone would want to do that. |
||
19 October 2012, 22:13 | #48 | ||
Registered User
Join Date: Jun 2010
Location: PL?
Posts: 2,745
|
Is there any official source for this information?
Quote:
Quote:
|
||
19 October 2012, 22:20 | #49 |
Registered User
Join Date: Mar 2009
Location: moon
Posts: 373
|
Only the hints in the HRM that I mentioned in the summary, which is why Toni did measurements to confirm the theory.
You tell me, I don't know what you want to achieve. |
19 October 2012, 23:28 | #50 | |
Registered User
Join Date: Jun 2010
Location: PL?
Posts: 2,745
|
Quote:
stereo sound, 8 bit between 64 and 96 ksps. |
|
19 October 2012, 23:46 | #51 | |
Registered User
Join Date: Mar 2009
Location: moon
Posts: 373
|
Quote:
You can achieve that by writing to AUDxDAT using the CPU. Doing that will constantly reset the volume counter, so the volume mechanism won't work. Set the volume to 64 to avoid weird results. |
|
20 October 2012, 00:24 | #52 | |
Registered User
Join Date: Jun 2010
Location: PL?
Posts: 2,745
|
Quote:
Without processing interrupts? Just write data by Copper to AUDxDAT? |
|
20 October 2012, 00:32 | #53 |
Registered User
Join Date: Mar 2009
Location: moon
Posts: 373
|
You want to see original chip schematics from Commodore? Good luck with that.
As long as data gets to the register at the right rate it doesn't matter. |
20 October 2012, 15:52 | #54 | ||
Registered User
Join Date: Jun 2010
Location: PL?
Posts: 2,745
|
Quote:
http://siliconzoo.org/tutorial.html http://siliconpr0n.org/wiki/doku.php http://visual6502.org/wiki/index.php?title=Main_Page ( http://visual6502.org/wiki/index.php...our_collection ) http://uvicrec.blogspot.nl/2012/07/s...17r-clock.html perhaps in some future... Quote:
Now You saying that i can set AUDxPER (like 40), set 64 in AUDxVOL and with Copper send all required data and i can ignore interrupts. Is that OK? |
||
20 October 2012, 16:05 | #55 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,801
|
|
20 October 2012, 16:15 | #56 | |
Registered User
Join Date: Mar 2009
Location: moon
Posts: 373
|
Quote:
Wow, they still exist? If only the community could get their hands on them... |
|
20 October 2012, 18:24 | #57 | |
Registered User
Join Date: Jun 2010
Location: PL?
Posts: 2,745
|
Quote:
I saw this and i even ask Her about details but no reply - it is sad that She probably will not do anything with these schematics and they will be lost until She or someone decide to make home sale - perhaps then, sad but true... For now we must do educated guess for how things works - machine seen from programmer point of view can be completely different than HW point of view... |
|
20 October 2012, 18:28 | #58 | |
Registered User
Join Date: Jun 2010
Location: PL?
Posts: 2,745
|
Quote:
I've read HRM and from my understanding interrupts must be correctly processed - CPU is to slow to deal with such things. AFAIR some Commodore documentation for their IC's was lost - perhaps this can be part of this lost documentation (this is strange how you can loose chip documentation)... |
|
20 October 2012, 18:44 | #59 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
Quote:
It is clearly shown in HRM audio state diagram |
|
20 October 2012, 18:51 | #60 | |
Registered User
Join Date: Jan 2012
Location: USA
Posts: 372
|
Quote:
All that seems to happen with faster rates is that the output isn't gated off for the higher volume values as the counter is reset too quickly. For smaller values, the counter should still reach zero at the faster output rates. For example, if the output rate is slightly above 56K, then there are still about 62 volume levels. If the output rate is above 100K, then there are about 30 levels. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
USB Flash Disk Low-Level Format | prowler | support.Hardware | 53 | 03 August 2012 21:39 |
Low level format utility for the A1200 | Fabie | support.Hardware | 20 | 11 January 2010 19:13 |
I'm stuck on the final level (level 3) of Ghostbusters II. | Ironclaw | support.Games | 34 | 24 October 2007 07:19 |
When to low level format | Galaxy | support.Hardware | 6 | 30 January 2007 12:39 |
Low Level Format??? | Djay | support.Hardware | 4 | 01 March 2003 20:58 |
|
|