Mainline:Broadcom Kona/BCM590xx/ADC: Difference between revisions

No edit summary
Line 48: Line 48:


The last ADC channel, RTM, is reserved for RTM (Real-Time Measurment) mode.
The last ADC channel, RTM, is reserved for RTM (Real-Time Measurment) mode.
The process for performing an RTM read is as follows:
* In <code>ADCCTRL1</code>: (these can all be performed in one write)
** Set the the <code>RTM_CONVERSION</code> bit to enable RTM mode
** Write the channel number to read to the <code>RTM_CHAN</code> offset
** Write the <code>RTM_START</code> bit to start the RTM read
* Wait for the <code>ADC_RTM_DATA_READY</code> interrupt.
* Perform a standard data read from the RTM ADC channel registers (see [[#Reading the data]]).
* Clear the <code>RTM_CONVERSION</code> bit to disable RTM mode.