Interfacing DA14580 with ECG Monitoring Module on ADC

9个帖子/ 0新
Last post
herochua617
Offline
最后一次露面:3年11个月前
Joined:2017-01-18 12:46
Interfacing DA14580 with ECG Monitoring Module on ADC

Hi there,

I having some difficulties in these few things:

1. I want to connecthttps://www.sparkfun.com/products/12650到DA14580开发套件。开发。套件只有4个ADC频道,因为我使用SPI通信,我有我的p0_3和p0_0用尽。通过右边,我只需要1个ADC端口,从AD8232模块的输出和来自DEV的2个数字IO。成套工具。我在BLE_APP_PERITWAL中看到了KEIL文件,发现我需要从GPIO.c.配置。DA14580开发了。套件为AD8232模块提供2个数字IO引脚?以及如何为ADC和Digital IO配置引脚?

2. Can the ATT and GATT functions allow me to use BLE scanner to receive real time information to obtain the ECG waveform and Heart rate reading? If cannot, any recommendation application that allow me to display my data through android platform or any equivalent software if not using android platform? (for remote monitoring purposes)

Thank you!

Device:
mt_dialog.
Offline
最后一次露面:2 months 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi herochua617,

Hi herochua617,

1) I am not sure i get the question, the pins that have ADC functionallity are predefined, from PORT0 the pins 0,1,2,3, only on those pins the ADC can be connected. The pins that you are mentioning are only used for the booting procedure, after the device has booted you can configure and use those pins as you would like, the booting procedure is controlled by the Boot ROM code, you dont have to worry about setting those pins to SPI yourself. You just have to set in your fw the configuration for the pins that you would like to use. You can switch the configuration of the pins just by invoking the function GPIO_ConfigurePin() and the settings you would like.

2) The SDK will allow you to connect to a BLE android phone and exchange data using the ATT/GATT/GAP protocol and receive real time information from your sensor, you can check the app_ble_peripheral that implements a custom profile in order to send custom data from your device to the phone. Yes the BLE scanner would be a solution to check the notification characteristic updating on your phone with your ADC measurements.

谢谢mt_dialog.

herochua617
Offline
最后一次露面:3年11个月前
Joined:2017-01-18 12:46
亲爱的mt_dialog,

亲爱的mt_dialog,

Thanks and you've answered me well for both questions, However, just to be sure, for the question in number 1, did you mean that the pin configuration (shown in the attach picture) need to be connected only before the device boot? After the device booted, I am allowed to remove all those connections, and I can burn my code into the dev. kit as I wish without connecting them, correct me if I am wrong.

其他问题:BLE_APP_PERITELAL_580中的C文件或H文件,如果我想配置GPIO引脚,我需要从?有这么多文件。我知道配置PIN变量已经在GPIO.C和GPIO.H中设置。如果我想使用ADC端口和GPIO端口,我需要代码在哪里?或者我需要进行自定义个人资料?用于为ECG信号配置ADC引脚,请使用本文档(RW-BLE-PRF-HRP-IS)进行此操作 - 心率概况?

mt_dialog.
Offline
最后一次露面:2 months 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi herochua617,

Hi herochua617,

对不起,我无法弄清楚从第一篇文章中粘贴的图片中,我上一篇文章中提到的是什么是SPI引脚只使用在引导过程中,我无法预测在引导引脚上连接了ADC传感器将在将程序下载到Sysram(我认为它是OK)上的任何影响。当系统启动时,如果OTP中没有任何内容,则配置和使用POR 0的引脚,以便为580找到用于下载代码的外部模块(当我提到引脚配置时,我指的是引导加载程序的代码您FW在set_pad_functions()函数中才能为您的引脚分配函数和状态),因此您要下载代码的引脚应该与外部内存连接,后下载代码完成后然后,您的FW应该重新配置那些引脚(从FW中的Set_Pad_Functions()函数),以便在FW想要的任何配置中使用。我希望明确。

在启动期间和唤醒期间处理引脚配置的文件和函数是user_periph_setup.c文件中的periph_init()函数。如果您想要阅读附加的ADC,您必须配置与ADC传感器连接的引脚作为PID_ADC引脚(选中SET_PAD_FUNCHICES(),以便查看引脚的配置方式)。配置PIN后,通常您将设置ke_timer以定期读取ADC值。为了将值发送到您的中心,您可以从自定义配置文件开始或使用HRPS,它是SIG合格的配置文件。您提到的文档描述了HRP协议,在配置ADC时无需做任何事情,它只描述了HRP SIG配置文件。

谢谢mt_dialog.

herochua617
Offline
最后一次露面:3年11个月前
Joined:2017-01-18 12:46
Hi,

Hi,

Thank you very much! I have been searching around for example regarding the set_pad_functions() to see how the pins are configured. But I could not find any related example. If you don't mind, do you have any example that I can start with? I have already downloaded the whole sdk 5.0.3.

mt_dialog.
Offline
最后一次露面:2 months 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi herochua617,

Hi herochua617,

The set_pad_functions() is a function used throughout the SDK in all the SDK examples and the reference designs, if you make a search in any example that includes BLE functionallity you will be able to find this function, or you can search the GPIO_ConfigurePin() directly.

谢谢mt_dialog.

herochua617
Offline
最后一次露面:3年11个月前
Joined:2017-01-18 12:46
Hi MT_dialog,

Hi MT_dialog,

我做过针保留和别针configuration with defining the pins in both user_periph_setup.h* and user_periph_setup.c* but I am unable to read the data from ADC yet. (refer to the attachment) But I do want the data to be obtained through BLE from the smartphone. I did heard from you that I need to do something with the ke_timer is it? Do you have any example that I can refer too>? I found that this link kind of related toohttps://support.dialog-semicondiondiondum/faq/how-use-ketimer-发出.......

Besides that, I would like to display my data through Tera Term using UART communication. Which part of the coding should I changed?

我很遗憾地麻烦你,但我有一点知识在使用DA14580开发套件时,我有我的项目进入我的项目..
Thank you!

mt_dialog.
Offline
最后一次露面:2 months 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi herochua617,

Hi herochua617,

You have to set up a kernel timer in order to trigger the ADC to measure, you can have a look at the adc example in the peripheral_examples in order to see how to operate the ADC and you can also have a look at the ble_app_peripheral example in order to check how to setup a kernel timer (in the function user_custs1_ctrl_wr_ind_handler() function the app_easy_timer() will setup a kernel timer and from that function you can declare a callback function in order to read your ADC in specific intervals). Regarding the printing you can define the CFG_PRINTF definition in the da1458x_config_basic.h function and use the arch_console.h file and the arch_printf() function in order to start printing the values of your ADC. Also please have a look at the UM-B-050 and the UM-B-051 documents in order to have a better grasp of the SDK5. You will be able to find those documents on the support portal in the Documents Tab in the Software Development kit.

谢谢mt_dialog.

herochua617
Offline
最后一次露面:3年11个月前
Joined:2017-01-18 12:46
亲爱的mt_dialog,谢谢!

亲爱的mt_dialog,

谢谢!