Changeset 38 for trunk/fw_g473rct/SES/src/ads1260.c
- Timestamp:
- Nov 1, 2025, 5:29:27 PM (32 hours ago)
- File:
-
- 1 edited
-
trunk/fw_g473rct/SES/src/ads1260.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/fw_g473rct/SES/src/ads1260.c
r25 r38 45 45 #include "ads1260.h" 46 46 #include "spi.h" 47 #include "math.h"47 //#include "math.h" 48 48 #include "main.h" 49 49 #include "eeprom.h" 50 50 #include <stdio.h> 51 #include "iwdg.h" 51 52 // --- EXTERNE VARIABLEN -------------------------------------------------------- 52 53 … … 765 766 /* 3*/ HAL_GPIO_WritePin(ADC_START_CONV_GPIO_Port, ADC_START_CONV_Pin, GPIO_PIN_SET); 766 767 HAL_Delay(150); // Delay weil die Vref braucht zeit um sich zu stabilisieren (siehe Datenblatt Seite 9) 768 HAL_IWDG_Refresh(&hiwdg); 767 769 /* 1*/ //HAL_GPIO_WritePin(ADC_POWER_DOWN_GPIO_Port, ADC_POWER_DOWN_Pin, GPIO_PIN_RESET); 768 770 //HAL_Delay(150); // Delay weil die Vref braucht zeit um sich zu stabilisieren (siehe Datenblatt Seite 9) … … 771 773 /* 2*/ HAL_GPIO_WritePin(ADC_RESET_GPIO_Port, ADC_RESET_Pin, GPIO_PIN_RESET); 772 774 HAL_Delay(150); // Delay weil die Vref braucht zeit um sich zu stabilisieren (siehe Datenblatt Seite 9) 775 HAL_IWDG_Refresh(&hiwdg); 773 776 /* 2*/ HAL_GPIO_WritePin(ADC_RESET_GPIO_Port, ADC_RESET_Pin, GPIO_PIN_SET); 774 777 HAL_Delay(150); // Delay weil die Vref braucht zeit um sich zu stabilisieren (siehe Datenblatt Seite 9) 778 HAL_IWDG_Refresh(&hiwdg); 775 779 /* 3*/ HAL_GPIO_WritePin(ADC_START_CONV_GPIO_Port, ADC_START_CONV_Pin, GPIO_PIN_RESET); 776 780 … … 781 785 /* 5*/ ADS_1260_SetExternalReference(&hspi3); 782 786 HAL_Delay(150); 787 HAL_IWDG_Refresh(&hiwdg); 783 788 /* 6*/ ADS_1260_SetDataRate(&hspi3, DATA_RATE_20); 784 789 // /* 7*/ ADS_1260_SetDigitalFilter(&hspi1, FILTER_SINC4); … … 789 794 790 795 ADS_1260_ActivateStatusData(); 796 HAL_IWDG_Refresh(&hiwdg); 791 797 ADS_1260_ActivateLock(); 798 HAL_IWDG_Refresh(&hiwdg); 792 799 793 800 /*10*/ //ADS_1260_SelfOffsetCalibration(&hspi1); 794 801 HAL_Delay(150); 802 HAL_IWDG_Refresh(&hiwdg); 795 803 /*x*/ ads1260DataCoversionState = ADC_STATE_READY_FOR_CONVERSION; 796 804 ADS1260_StartConversion(); 805 HAL_IWDG_Refresh(&hiwdg); 797 806 } 798 807
Note: See TracChangeset
for help on using the changeset viewer.
