The ADS1261 driver on the official website uses the relatively old TIVA driver code architecture, and does not provide a complete project. There are also some minor bugs. This article will explain how to use the latest SimpleLink Platform MCU and drive the ADS1261 based on the latest TI-RTOS architecture . At the end of this article, a complete project example [ ] will be given. The example can also be used to drive other TI Δ∑ ADCs that support SPI interface with slight modifications.
The ADS126x family of ADCs are precision 40kSPS ΔΣ analog-to-digital converters with programmable gain amplifiers (PGA), precision voltage references, internal fault monitors, and AC excitation for bridge sensors. They provide a high-precision single-chip solution for the most demanding measurements, including weigh scales and resistance temperature detectors (RTDs).
查看详情
Figure 1. ADS1261 internal block diagram
The CC2652R is part of the SimpleLink microcontroller (MCU) platform, which includes Wi-Fi, Bluetooth low energy , Sub-1 GHz, Thread, Zigbee, 802.15.4, and host MCUs that share an easy-to-use common development environment with a single-core software development kit (SDK) and a rich tool set. With the one-time integration of the SimpleLink platform, any combination of devices in the portfolio can be added to your design, allowing 100% code reuse when design requirements change.
CC2652 Launchpad is the development board for CC2652R , including an emulator. If this is your first time using it, please refer to the following steps to learn how to use it.
Step 1: Purchase a CC26X2R1 LaunchPadStep
2: Download the SimpleLink CC13x2 and CC26x2 SDKStep
3: Get started with SimpleLink Academy
This article uses IAR for development. The relevant version information can be found in the release_notesxx.html of the corresponding SDK, as shown below:
IAR Embedded Workbench:EWARM-8.32.2
SDK version: simplelink_cc13x2_26x2_sdk_3_20_00_68 [Please download and install before opening the project]
查看详情
In addition, the ADS1261EVM used can also be purchased from TI-STORE.
ADS1261EVM
|
CC2652LP
|
illustrate
|
/CS
|
PART_30
|
SPI – CS Chip Select
|
SCLK
|
PART_29
|
SPI – CLK
|
FROM
|
PART_28
|
SPI – Master-Out Slave-In [Master: CC2652R , Slave: ADS1261 ]
|
DOUBT
|
PART_27
|
SPI – Master-in Slave-out [Master: CC2652R , Slave: ADS1261 ]
|
/DRYS
|
PART_26
|
ADS1261 output – Data ready indication, low active
|
/RST
|
PART_25
|
ADS1261 input – reset, active low
|
STR
|
PART_21
|
ADS1261 input – start conversion, active high
|
/PWDN
|
PART_15
|
ADS1261 input – Control to enter low power mode, low active
|
As shown in the figure below, use Dupont wires to connect the ADS1261EVM (left) and CC2652LP (right) according to the table above. In addition, add a jumper cap [yellow box] to JP1 of the ADS1261EVM to bypass the TM4C129 on the EVM.
查看详情
Figure 2. Wiring diagram
|