par****com
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.

che****com

Hi,Please refer to Section 6.2 for this part. Thank you
par****com
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?

par****com
Hello! Could you help me?🙄
che****com

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));
}
par****com
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.

wen****com
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.
par****com



par****com
Hello! Could you help me?🙄
liu****com
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.
par****com
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?
Open WeChat, use "Scan" to follow.