I have to get data from ucb1400 adc. Does anyone accomplish this ?
>From specs clear what have to be done, but how ? I assume its already
done in driver, but can anyone demostrate c/c++ code how to get
access(read/write) to ucb1400 registers ?
>The ADC is controlled through the AC97 interface, but the UCB1400
contains internal logic to ease the control of the ADC and to minimize
the number of AC97 frame read/write actions.
The ADC is activated by the AE bit in the ADC Control register (0x66).
The ADC circuitry, including the track and hold circuitry does not
consume any power as long as this bit is reset. The analog input
multiplexer is controlled by the AI[2:0] bits and the ADC is actually
started with the AS bit in the ADC Control register (0x66).
A complete ADC control sequence consists of several phases. First the
ADC has to be enabled; secondly, the input selector must be set to the
proper input; thirdly, the ADC conversion has to be started; and
finally, the ADC result has to be read from the ADC Data register