| Electronic Components Datasheet Search |
|
UM1561 Datasheet(PDF) 15 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM1561 Datasheet(HTML) 15 Page - STMicroelectronics |
|
15 / 39 page ![]() UM1561 Data sensing section for the closed loop control Doc ID 023556 Rev 1 15/39 6 Data sensing section for the closed loop control The firmware implemented for the closed loop control needs a good sensing procedure in order to regulate the bus voltage to inject sinusoidal current to the grid and also for the input control of the DC-DC converter that performs an MPPT control. The accuracy of the control block is also very important in order to achieve system efficiency. DataSensing.c: The .c file defines all functions useful in managing the data sensing section, in particular: ● DS_Init(PDS_TypeDef_t pDSInit); ● DS_SendCommand(DS_Commands_t cmd); ● DS_GetStatus(); ● DS_GetData(); ● DS_GetConfiguration(PDS_TypeDef_t pDSInit); ● DS_RefreshDisplay(DS_Error_t err); ● DS_SetAcquistionEvent(PFN_ON_ACQUISTION pfFn). DS_Init(..): This function includes the init code for the ADC1 e ADC2 configuration: DS_Error_t DS_Init(PDS_TypeDef_t pDSInit) { DS_Error_t nRet; nRet = DS_ERROR_INVALID_PARAMETER; if (pDSInit) { nRet = DS_ERROR_ON_INIT; if (DataSensing.State != DS_Running) { DataSensing.Init.Counter = pDSInit->Counter; DataSensing.Init.DataRegister = pDSInit->DataRegister; DataSensing.Init.RegisterSize = pDSInit->RegisterSize; DataSensing.Init.OnAcquisition = pDSInit->OnAcquisition; DataSensing.State = DS_Stopped; /*Init peripherals */ DS_GPIO_Configuration(); DS_TIMx_Configuration(); DS_DMA_Configuration(); DS_ADCx_Configuration(); nRet = DS_ERROR_NONE; } |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |