Project

General

Profile

Actions

Feature #8

closed

Implement 4 channel ADC

Added by admin over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
04/04/2017
Due date:
% Done:

0%

Estimated time:

Description

The one channel ADC on the v1 board is replaced by a four channel one on the v2 board.

Modify the implementation to support this


Files

adc084s051.pdf (1.27 MB) adc084s051.pdf foft, 05/11/2017 08:26 PM
Actions #1

Updated by foft over 7 years ago

  • Status changed from New to In Progress

Written initial support based on data sheet and simulated. Not yet built into test core or tried on real hardware.

So far all four channels sampled, but only SIO input connected to core.

Actions #2

Updated by foft over 7 years ago

  • Tracker changed from Bug to Feature
Actions #3

Updated by foft over 7 years ago

  • Assignee set to foft
Actions #4

Updated by foft over 7 years ago

Attached ADC data sheet

Actions #5

Updated by foft over 7 years ago

Now I have the board its clear this needs debugging.

Actions #6

Updated by foft over 7 years ago

Debugged and now working.

PBI and SIO audio will be mixed. For now I'm not feeding MIC_L and MIC_R anywhere - these will be connected to some sampler register. I guess D500 and D501 if the 'replay cartrige mode' is enabled.

Actions #7

Updated by foft over 7 years ago

Sigh, it definitely works but if I read say channel 1 - I still receive input from the other channels

Actions #8

Updated by foft over 7 years ago

Pretty sure this is down to floating inputs. Since there is no driver and low capacitance the input picks up the previous sample stored in the ADC. I checked this out by trying two approaches:
i) Sample a single channel and checking for no crosstalk
ii) Grounding the floating inputs and checking nothing sampled

I also tried out deselecting ADC between frames in case that helped. It didn't, just decreased the same rate a little!

Actions #9

Updated by foft over 7 years ago

So I guess we should have some more passive components here. On the other hand I'm kind of attached to SIO noise down to cable interference. If we fix this too well we may lose that!

Actions #10

Updated by foft over 7 years ago

  • Status changed from In Progress to Closed

Closing since the core support is in place. Noise reduction and sampler connection may be raised as future feature requests.

Actions

Also available in: Atom PDF