[资料分享] ADS1231和ADS1230 DRDY/DOUT引脚的接法

[复制链接]
 楼主| 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 精品课全集,给你全方位的技能策划~~←←

2841

主题

19330

帖子

110

粉丝
快速回复 在线客服 返回列表 返回顶部