SARADC
The ADC is a 6-channel signal-ended 10-bit Successive Approximation Register (SAR) A/D
Converter. It uses the supply and ground as it reference which avoid use of any external
reference. It converts the analog input signal into 10-bit binary digital codes at maximum
conversion rate of 1MSPS with 13MHz A/D converter clock.
RK3399的adc模块从概念以及速率可以得出,该模块是中速AD。
相关配置及文件
CONFIG_ROCKCHIP_SARADC
相关文件:
kernel/drivers/iio/adc/rockchip_saradc.c
kernel/Documentation/devicetree/bindings/iio/adc/rockchip-saradc.txt
static const struct iio_chan_spec rockchip_rk3399_saradc_iio_channels[] = {
ADC_CHANNEL(0, "adc0"),
ADC_CHANNEL(1, "adc1"),
ADC_CHANNEL(2, "adc2"),
ADC_CHANNEL(3, "adc3"),
ADC_CHANNEL(4, "adc4"),
ADC_CHANNEL(5, "adc5"),
};
static const struct rockchip_saradc_da

本文详细介绍了RK3399平台中的SARADC模块,包括其作为10位逐次逼近寄存器ADC的特点,最大转换速率可达1MSPS。文中还提供了配置示例和设备树配置,以及如何通过sys文件系统读取ADC数据。
最低0.47元/天 解锁文章
566

被折叠的 条评论
为什么被折叠?



