微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 硬件电路设计 > TI模拟硬件电路设计 > ADS1298与MSP430通讯

ADS1298与MSP430通讯

时间:10-02 整理:3721RD 点击:

您好,我买了你们的ADS1298,现打算用MSP430F149来控制它,请问有无相关的SPI控制代码以及心电信号数据传输的代码,以便在此基础上进行开发

你好!

I have attached some of our source code for the ADS1298. Note that this code will not compile, as it needs to be modified to work in your specific application. However, it should point you in the right direction to get your ADS1298 configured and running.

File summaries:

init_ADS1x9x.c,  ADS1x9x_Device_Status.c, ADS1x9x_Functions.c, and ADS1x9x_SPI_Functions.c: These files provide functions for initializing and operating the ADS1298. These files should give you a good idea of the flow required to configure the device.

F5438_ADS1x9x_Device_Interface.c, F5438_Modular_EVM_IO_Functions.c: These files provide some of the application-specific functions that support the code in the ADS1x9x files. This is just an example of how we implemented it on our MSP430F5438 board, you will need to setup the pins, interrupts, etc. for your specific application.

ADS1x9x_Main_Shell.c: This is a shell for the main file of the project. It should give you an idea of how the functions provided in the above files are used to operate the device.

Please keep in mind that the code I posted for the MSP430 and ADS1298 is not meant to compile. It is meant to give you an idea of the flow required to configure and use the ADS1298. You will need to rewrite portions of the code (especially the code that deals with specific IO pins, which will likely be different in your application). You will also need to add the includes for msp430x54x.h and any other files as needed for your specific application. Finally, you should include your own support functions such as for the SPI interface so that you can communicate with the ADS1298.

Thank you

qi tang,你好!我也买了ADS1298R的PDK,期待与您一起讨论!我的邮箱是chine3000@163.com

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top