User Tools

Site Tools


hardware:audio

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
hardware:audio [2025/03/01 20:37] – [Effective sample rate] clydehardware:audio [2025/04/08 15:53] (current) – [The DAC] clyde
Line 23: Line 23:
 The DAC is not directly writable by the ACP. Any write by the ACP to an address at $8000 or above will also be mirrored to a buffer register. This buffer register is copied to the DAC at every IRQ signal.  The DAC is not directly writable by the ACP. Any write by the ACP to an address at $8000 or above will also be mirrored to a buffer register. This buffer register is copied to the DAC at every IRQ signal. 
  
 +Sample bytes written to the DAC should be unsigned, where zero represents the lowest voltage it can output and 255 represents the highest.
 ==== Audio Control Registers ==== ==== Audio Control Registers ====
  
Line 44: Line 45:
 Here's a table with some example rate settings close to some commonly used sample rates Here's a table with some example rate settings close to some commonly used sample rates
  
-^ Hex ^ Sample Rate (Hz)   ^ Closest Common Rate  ^  Difference ^ +^ Hex ^ Sample Rate (Hz)   ^ Closest Common Rate  ^  Difference ^ ACP cycles per sample 
-| **$FF** | **13983** |  N/A  | N/A   | +| **$FF** | **13983** |  N/A (Lowest setting)  | N/A   | 1024 
-| **$EF** | **15980** | 16000 | 19.9  | +| **$EF** | **15980** | 16000 | 19.9  | 896 
-| **$D0** | **22233** | 22050 | 183.2 | +| **$D0** | **22233** | 22050 | 183.2 | 644 
-| **$B7** | **31960** | 32000 | 39.8  | +| **$B7** | **31960** | 32000 | 39.8  | 448 
-| **$A8** | **44192** | 44100 | 91.9  | +| **$A8** | **44192** | 44100 | 91.9  | 324 
-| **$A5** | **47099** | 32000 | 900.7 :( | +| **$A5** | **47099** | 32000 | 900.7 :( | 304 
-| **$94** | **87306** | 88200 | 894.0 :( | +| **$94** | **87306** | 88200 | 894.0 :( | 164 
-| **$92** | **96744** | 96000 | 744.5 :( |+| **$92** | **96744** | 96000 | 744.5 :( | 148 |
  
  
hardware/audio.1740861451.txt.gz · Last modified: 2025/03/01 20:37 by clyde