Analog-to-digital converter (ADC)

本文介绍了1.0MSPS的12位A/D转换器,具备多路复用通道,支持单次、连续和断续模式转换,还包含温度传感器功能。它具有可编程采样时间和模拟看门狗,适合检测温度变化而非绝对温度。采样后,EOC标志在13个时钟周期后置位,数据准备就绪。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Overview
3×12-bit, 1.0 MSPS A/D converters are embedded and each ADC has up to 17 multiplexed channels allowing it measure signals from sixteen external and one internal sources,and 3 MSPS in triple interleaved mode
A/D conversion of the various channels can be performed in single, continuous, scan or discontinuous mode.
The analog watchdog feature allows the application to detect if the input voltage goes outside the user-defined high or low thresholds.
The ADC input clock is generated from the inter-connection logic clock.
Characteristics
(1) ADC sampling rate: 1 MSPS for 12-bit resolution
(2) Programmable sampling time
(3) 16 external analog inputs and 1 channel for internal temperature sensor or for VBAT
(4) Converts a single channel or scans a sequence of channels
(5) Single mode converts selected inputs once per trigger
(6) Continuous mode converts selected inputs continuously
(7) Discontinuous mode
(8) Analog watchdog
(9) ADC supply requirements: 3.0V to 3.6V, and typical power supply voltage is 3.3V
(10) ADC input range: VSSA ≤VIN ≤VREFP

Pins and internal signals
ADC internal signals
在这里插入图片描述
ADC pins definition
在这里插入图片描述
Temperature sensor
The temperature sensor can be used to measure the ambient temperature of the device. The sensor output voltage can be converted into a digital value by ADC. The sampling time for the temperature sensor is recommended to be set to at least 10μs.
The output voltage of the temperature sensor changes linearly with temperature. Because there is an offset, varies from chip to chip due to process variation, the internal temperature sensor is more suited for applications that detect temperature variations instead of absolute temperature.

ADC block pins
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
ADC input signals vs package pins
在这里插入图片描述
在这里插入图片描述
ADC characteristics
在这里插入图片描述
ADC timing diagram

After the start of ADC conversion and after 13 clock cycles, the EOC flag is set and the 12-bit Data is ready.
在这里插入图片描述
在这里插入图片描述

### 模数转换器 (ADC) 的工作原理 模数转换器(Analog-to-Digital Converter, ADC)是一种电子设备,其主要功能是将连续变化的模拟信号转化为离散的数字信号。这一过程通常分为几个阶段:采样、量化和编码。 #### 采样 在采样过程中,输入的模拟信号被周期性地测量并记录下来。根据奈奎斯特定理[^1],为了不失真地重建原始信号,采样的频率必须至少是最高频成分的两倍以上。如果采样率不足,则会出现混叠现象,从而导致失真的数字化数据。 #### 量化 经过采样后的数值仍然是无限精度的实数值。因此,在此步骤中,这些值会被映射到有限数量级上的整数值上。这个过程不可避免地引入了一定量误差——即所谓的量化噪声。减少这种误差的方法之一就是增加位分辨率(bit resolution),使得每单位电压对应更少的数量级别差额。 #### 编码 最后一步是对量化的结果进行二进制形式表示以便于计算机处理。不同的ADC可能采用不同类型的编码方式如偏移二进制(offset binary),格雷码(gray code)等来实现最佳效率与性能表现。 ### 应用领域 #### 数据采集系统 在一个典型的数据获取环境中,传感器产生的物理量通过放大电路调理之后送入ADC模块完成向数字域转变的任务。随后由微控制器或其他处理器进一步分析计算得出所需参数信息。 #### 音频处理 音频文件录制时也需要借助高精度ADC把麦克风接收到的声音波形转变为可以存储播放的形式保存起来。同样道理适用于视频图像捕捉装置当中色彩亮度对比度等各种光学特性指标都需要经历类似的转化流程才能最终呈现给观众观看体验良好效果的画面质量。 ```python import numpy as np def adc_simulation(analog_signal, bit_resolution=8): max_value = 2 ** bit_resolution - 1 digital_values = [] for sample in analog_signal: quantized_sample = int((sample / np.max(analog_signal)) * max_value) digital_values.append(quantized_sample) return digital_values analog_input = [0.1, 0.3, 0.7, 0.9] digital_output = adc_simulation(analog_input) print(digital_output) ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值