| |
ready.
Registered: Feb 2003 Posts: 441 |
SID A/D conversion (POT-X, POT-Y)
Hi everybody,
I'd like to find some information about the proper usage of the analog inputs of the SID. I'm trying to do some audio acquisition for CD, microphone, ect. into the pot-x pot-y inputs of the SID. Do I need any special hardware between the audio source and the SID input (joystick port pin 5 and pin 9)?
thanx,
Ready. |
|
| |
Graham Account closed
Registered: Dec 2002 Posts: 990 |
The SID A/D converters are too slow for audio sampling. |
| |
Oswald
Registered: Apr 2002 Posts: 5086 |
some more info on what u want to achieve would help. ATMO it sounds like you want to digitize sounds for a CD with sid. |
| |
ready.
Registered: Feb 2003 Posts: 441 |
Yes, my first scope was to attach a microphone to the A/D converter, but a microphone signal was too weak and I didn't have an amplifier ready to be used. So I attached the output of a radio (headphone output)into the SID A/D converter, using the following rountine:
LDA #$FF
STA $D406
STA $D406+7
STA $D406+14
LDA #$49
STA $D404
STA $D404+7
STA $D404+14
here
lda $d41a ; A/D input value
lsr lsr lsr lsr
sta $d418 ;volume value
jmp here
After adjusting the radio volume, I managed to have a replay of the input sound, but it was quite crappy. I wonder if it is crappy because of the routine or because of the A/D input converting too slowly.
How did the digitalizers for C64 worked back in the 80s? What C64 input did they use?
thanx,
Ready. |
| |
Scout
Registered: Dec 2002 Posts: 1570 |
here
lda $d41a ; A/D input value
lsr
lsr
lsr
lsr
sta $d418 ;volume value
jmp here
shouldn't it be:
here
lda $d41a ; A/D input value
sta temp
lsr
lsr
lsr
lsr
sta $d418 ;volume value
ldx #$<some delayvalue>
dex
bne *-1
temp = *+1
lda #$00
and #$0f
sta $d418
jmp here
Quote:
How did the digitalizers for C64 worked back in the 80s? What C64 input did they use?
Digitalizers? Samplers!
You had to stick 'em in your userport so far as I know they didn't use the SID as a A/D converter.
EDIT:
Disabling IRQ's (SEI) and turning off the screen (using $d011...duh!) improves sample replay. |
| |
ready.
Registered: Feb 2003 Posts: 441 |
Thanx Scout,
I guess that the bad quality of the samples I acquired is only due to the slowness of the SID A/D converters.
Ready. |
| |
Style
Registered: Jun 2004 Posts: 498 |
samplers used their own ADC chips and were connected via userport, cart port or sometimes even the joystick ports (I had a covox voice master that did that).
|
| |
ready.
Registered: Feb 2003 Posts: 441 |
mmmh, joy port....and what pin did they use?
Ready. |
| |
Raf
Registered: Nov 2003 Posts: 343 |
joy port allows just to read na incoming nibble - that's all you need for C64 sampler :)
www.vulture.c64.org |
| |
Mace
Registered: May 2002 Posts: 1799 |
Quote:
here
lda $d41a ; A/D input value
sta temp
lsr
lsr
lsr
lsr
sta $d418 ;volume value
ldx #$<some delayvalue>
dex
bne *-1
temp = *+1
lda #$00
and #$0f
sta $d418
jmp here
The STA TEMP and AND#$0F is useless when reading $D41A, as $D41A holds a value between 0 and 255 and not a double nibble of a 'compressed' sample. |
| |
Scout
Registered: Dec 2002 Posts: 1570 |
Ah! Handy to know that...! |
... 4 posts hidden. Click here to view all posts.... |
Previous - 1 | 2 - Next |