adpd-drivers icon indicating copy to clipboard operation
adpd-drivers copied to clipboard

Example Code ADPD108

Open Swentscha opened this issue 7 years ago • 1 comments

Hello everybody,

Currently I work with the ADPD108 in the Arduino IDE. I also want to use the ADPD108 to output the ECG signal of the AD8232 via Time Slot A and the PPG signal via Time Slot B. In the example published here, the HW_Global_Init() is called for the hardware initialization. The contained functions of the HW_Global_Init() are not described in the AdpdDrv. c. I tried to write the functions myself but it was quite difficult because I don't know exactly what happens in the Hw_Global_Init(). The functions are shown below. I hope somebody can help me.

`void HW_Global_Init() { SystemClock_Config(); HAL_Init(); GPIO_Init(); ADC_TIA_MODE();
} void GPIO_Init() // GPIO Pins for Interrupt { pinMode(25, INPUT); //GPIO0 pinMode(26, INPUT); //GPIO1 AdpdDrvRegWrite(0x11, 0x0065); AdpdDrvRegWrite(0x06, 0x0F00); // set the Threshhold of the FIFO AdpdDrvRegWrite(0x01, 0x0060);// Set the FIFO_INT_MASK AdpdDrvRegWrite(0x02, 0x0105); // Set the GPIO Pin Low and drive and set GPIO0 enable } void HAL_Init() { AdpdDrvRegWrite(0x10, 0x0001); // Program Mode }

void SystemClock_Config() { AdpdDrvRegWrite(0x4B, 0x80); } void ADC_TIA_MODE () // ADPD108 TIA_ADC_MODE { AdpdDrvRegWrite(0x43, 0xAE65); AdpdDrvRegWrite(0x45, 0xAE65); }`

Swentscha avatar Dec 17 '18 07:12 Swentscha

Same question. I am using ADPD 1080

HunterTom94 avatar Mar 06 '21 03:03 HunterTom94