打印
[资料分享]

ADS1231和ADS1230 DRDY/DOUT引脚的接法

[复制链接]
704|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
xyz549040622|  楼主 | 2019-12-23 20:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 xyz549040622 于 2019-12-23 21:04 编辑

The device is rather simple, and follows SPI Mode 1 protocol. This device does not have a CS, so the communication interface is always enabled. The ADS1231 is pin controlled using GPIO.

To read data from the ADS1231, you monitor the falling edge of the dual function pin DRDY/DOUT (MISO). You would then send 3 bytes of SCLKs to retrieve the conversion data. For the Tiva microcontroller, you set up the SSI peripheral for SPI mode, and initiate the SCLKs by writing to the TX buffer (even though there is no input pin for MOSI) and reading the contents of the RX buffer following transmission. You should find plenty of examples for setting up the SSI peripherals.

If you connect the DRDY/DOUT pin to 2 inputs on the micro in parallel (MISO input pin and a GPIO pin setup as an input) you can monitor the GPIO input as a falling edge interrupt on the GPIO. When there is a high to low transition on DRDY/DOUT the ADS1231 has new conversion data available to be read from the device. The GPIO interrupt should trigger the read from the ADS1231.

使用特权

评论回复

相关帖子

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

本版积分规则

个人签名:qq群: 嵌入式系统arm初学者 224636155←← +→→点击-->小 i 精品课全集,21ic公开课~~←←→→点击-->小 i 精品课全集,给你全方位的技能策划~~←←

2782

主题

19267

帖子

104

粉丝