通用接口(2)——ADC(RK3399)

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

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值