打印

DSP28335的AD外部参考基准值软件设置

[复制链接]
1105|3
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
迷足少年|  楼主 | 2015-8-19 16:15 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
The ADC resets to the ADC off state. When powering up the ADC, use the following sequence:
1. If external reference is desired, enable this mode using bits 15-14 in the ADCREFSEL Register. This
mode must be enabled before band gap is powered.
2. Power up the reference, bandgap, and analog circuits together by setting bits 7-5 (ADCBGRFDN[1:0],
ADCPWDN) in the ADCTRL3 register.
3. Before performing the first conversion, a delay of 5 ms is required.

跟据手册所说,若是利用外部基准,则对ADCREFSEL寄存器进行配置进行配置,但是必须在带隙上电之前配置。所以我在

InitAdc()程序里进行配置,配置如下:

AdcRegs.ADCREFSEL.bit.REF_SEL = 1; //选择外部参考电压为2.048v
AdcRegs.ADCTRL3.all = 0x00E0; // Power up bandgap/reference/ADC circuits
DELAY_US(ADC_usDELAY); // Delay before converting ADC channels

请高手指教,为什么结果跟内部3v参考时,结果一样?

相关帖子

沙发
zhangmangui| | 2015-8-19 22:07 | 只看该作者
15-14 in the ADCREFSEL  应该是2bit把

使用特权

评论回复
板凳
guxiansheng| | 2015-8-27 10:55 | 只看该作者
代理销售全系列TI(DSP)   XILINX  可以提供全方位技术支持:
QQ:2355711248

使用特权

评论回复
地板
zhangbo1985| | 2015-8-27 18:02 | 只看该作者
设置的时候注意数据的位数关系的。

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

2

主题

3

帖子

0

粉丝