There are interfaces in corr for talking to katadcs and iadcs. I'll soon be 
adding SFP+ (for ROACH-2 mezzanine cards) and KAT's new 10-bit 1.8GSa/s ADC.

You'll probably want to dig through the datasheets of each ADC to better 
understand what these do. There're a couple of paragraphs explaining how to use 
these interfaces here: https://casper.berkeley.edu/wiki/Corr

If you want to understand the register mapping, you should probably dig through 
corr's source code. I don't know of any other CASPER documentation. I tried to 
add comments like this:

#register 0x00:
# 0-1:  standby modes
# 2     Chip version test bit. Not implemented on A/B versions (C only). Ignore.
# 3     Demux mode (0= 1:1; 1=1:2)
# 4-5   Analogue input select (11 = indep, 10= input I, 00 = input Q)
# 6-7   Clk select (10 = clkI to both, 00 = clkI to I and clkIn to Q)
# 8     Decimation
# 9     Always zero
# 10-11 Calibration (01 = keep last value, 00=zero gain and DC offset, 11 = 
perform new calibration)
# 12-13 Control wait bit calibration (11 for >500MSps, 10 for 250-500MSps, 01 
for 125-250MSps, 00 for <125Msps)
# 14    DMUX (0=Fs/4, 1=Fs/2)
# 15    NA


Jason 


On 30 Aug 2012, at 23:18, Gopal Narayanan wrote:

> Hello Casperites,
> 
> I read with interest Hong Chen's memo on the external adjustment of the
> iADC board at:
> 
> https://casper.berkeley.edu/wiki/External_Adjustment_for_the_Atmel_iADC
> 
> I am most interested in the ability to control, calibrate and compensate
> the ADC board with controlling the iadc_controller device file. Is there
> documentation in the following aspects of the CASPER ecosystem,
> specifically for ADC boards. I would appreciate pointers on finding
> either code segments or real documentation on these:
> 
>    * Aspects of the iADC board registers. How to activate these
> registers? You seem to be reading 128 bytes each time you read from the
> file system handle 'iadc_controller'. Where are the docs for these?
>    * Are there equivalent instructions for other ADC boards like KatADC?
>    * How exactly do devices like iadc_controller get created? Pointers
> to where in the source code to look at would be great!
>    * I would appreciate general pointers as to where the file system
> handles for things seen in listdev() are created? For eg.
> sys_clkcounter, etc.?
> 
> Thanks in anticipation for your help!
> 
> Gopal
> 
> -- 
> Gopal Narayanan                          Ph #: (413) 545 0925
> Department of Astronomy                  e-mail: [email protected]
> University of Massachusetts              Amherst MA 01003
> 


Reply via email to