CN / EN
CN / EN

Ask a New Question

Design Support

If you need one-on-one support for confidential technical issues with your project, please click on "Contact Us" below.

ECG signal on CH310X-EVK GH3220T

par****com

2024-03-06 22:05

Hello! I'm using CH310X-EVK and trying to get ECG signal. In the document GH(M)3x2x_EVK_Tool_User_Guide_Rev.2.8.pdf I could not find discription for this page. Could you sent it to me or write in which document I can find it. Thanks a lot.

0 Favorites

0 Likes

14 Answers

che****com

Goodix Employee
2024-03-08 09:52

Hi,Please refer to Section 6.2 for this part. Thank you

0 Comments

0 Likes

0 Favorites

Your comment

par****com

2024-03-11 17:01

Hello!

Section 6.2 I checked one more time. But description for page HOST_INTF is not quite full.

That is all I found there. Where can I find more details for leadoff_treshold or fifo_water_line?

0 Comments

0 Likes

0 Favorites

Your comment

par****com

2024-03-13 22:10

Hello! Could you help me?🙄

0 Comments

0 Likes

0 Favorites

Your comment

che****com

Goodix Employee
2024-03-14 09:39

Hi,

About FIFO_WATER_LINE, it means that if the number of sampling points exceeds this set value, an interruption will be generated, such as the heart rate function. We assume that only one slot is used, the sampling rate is 25HZ, and 1 PD is used. So if FIFO_WATER_LINE is set to 25, it means that the chip will report an interrupt to HOST for 1S.

In addition, as for Lead off, our current program adopts software to achieve IQ demodulation, and the specific threshold setting can be referred to the following code. In addition, do you need to use our IC for any project? If you have any suggestions, please contact us at sales@goodix.com, and relevant technical support supporting materials can also be better obtained. Please refer to and know, thank you

void GH3X2X_ConfigLeadOffThr(GU32 uIQAmpThr, GU32 uIQAmpDiffThr,GU32 uValThr)

{

g_nLeadOffDetIqAmpThr = uIQAmpThr;

g_lLeadOffDetIqAmp = ((long long)g_nLeadOffDetIqAmpThr * 20 * ADC_OFFSET / ADCREF/1000*IQ_NUM*1000/winAmpCoef);

g_lLeadOffDetIqAmpThrRaw = (g_lLeadOffDetIqAmp*g_lLeadOffDetIqAmp);

g_lLeadOffDetIqAmpFrThrRaw = (g_lLeadOffDetIqAmp*g_lLeadOffDetIqAmp / 20 / 20);


g_nLeadOffDetIqAmpDiffThr = uIQAmpDiffThr;

g_lLeadOffDetIqAmpDiff = ((long long)g_nLeadOffDetIqAmpDiffThr * 20 * ADC_OFFSET / ADCREF/1000*IQ_NUM*1000/winAmpCoef);

g_lLeadOffDetIqAmpDiffThrRaw = (g_lLeadOffDetIqAmpDiff*g_lLeadOffDetIqAmpDiff);

g_lLeadOffDetIqAmpDiffFrThrRaw = (g_lLeadOffDetIqAmpDiff*g_lLeadOffDetIqAmpDiff / 20 / 20);


g_nLeadOffDetValThr = uValThr;

g_LeadOffDetValThrRaw = (g_nLeadOffDetValThr * (20 * ADC_OFFSET / ADCREF));

}

0 Comments

0 Likes

0 Favorites

Your comment

par****com

2024-03-15 19:29

Thanks a lot for answer. Present time our company is assuming to use your chip in our device. What for was bought EVK. We try to get some ECG signal, and quite successfully do but still have some questions.

When the electrods is applied to skin and we can see ECG signal the Lead State is OFF. We tried some configurations of electrods and Lead State most time is OFF.

0 Comments

0 Likes

0 Favorites

Your comment

wen****com

2024-03-18 10:16

Hi,

About Lead Status on EVK, please make sure lead function is opened in configuration and SDK.

For configuration:

1. make sure LEAD_ON adn LEAD_OFF is enable in 'enable_event' part of ‘HOST_INTF’

2. make sure 'DETECT_ENABLE' is enable in 'lead_detect' part of "SAMPLE"

For SDK: make sure __FUNC_TYPE_ECG_ENABLE__ is set to 1 .

The process of ECG sampling typically involves the following steps:

1. load ecg configuraiton and click 'start' to start ecg, Lead State is OFF.

2. When all electrods are applied to skin, Lead State is On and start ECG sampling, and ecg signal is showed on the screen

3. When finger is removed from the electrode, Lead State is OFF and stop ECG sampling.

0 Comments

0 Likes

0 Favorites

Your comment

par****com

2024-03-18 17:50

Hello! Thanks for the answer. I tried advanced setting and haven't get any signal. Settings are below in pic. May be it needs to correct some? As for "For SDK: make sure __FUNC_TYPE_ECG_ENABLE__ is set to 1 ." - haven't found this place.

0 Comments

0 Likes

0 Favorites

Your comment

par****com

2024-03-25 16:53

Hello! Could you help me?🙄

0 Comments

0 Likes

0 Favorites

Your comment

liu****com

2024-03-26 11:23

Hello,

you can find the macro definition "__FUNC_TYPE_ECG_ENABLE__" at line 75 in the gh_demo_config.h file in the SDK package. Then, you can use the Keil project "cardiffa-evk\STM32_F412\Projects\STM32F412G-Discovery\CardiffEvkDemo\MDK-ARM_WithDrvSrc\Project.uvprojx" from the SDK package to compile and download it to the EVK board.

0 Comments

0 Likes

0 Favorites

Your comment

par****com

2024-03-26 22:21

Hello!

I've checked __FUNC_TYPE_ECG_ENABLE__ is set to 1, but I still can't get Lead State is ON and ECG signal with recommended settings.

Have you seen my settings? What should I change to get an ECG signal?

0 Comments

0 Likes

0 Favorites

Your comment

You can answer questions after logging in, please or register

Your Voice Matters
Contact Sales

Scan to follow

Open WeChat, use "Scan" to follow.