| Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
AN3151 Datasheet(PDF) 21 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3151 Datasheet(HTML) 21 Page - STMicroelectronics |
|
21 / 34 page ![]() AN3151 Firmware implementation Doc ID 17051 Rev 1 21/34 { s16 Proportional_Term, Integral_Term; s16 Error, output_s16; Error = (PID->Reference - Current_String_Input); // Proportional term computation Proportional_Term = PID->Kp_Gain * Error; // Integral term computation Integral_Term = PID->Ki_Gain * Error; if ( (Integral_FirstRow >= 0) && (Integral_Term >= 0) && (PID- >Max_PID_Output == FALSE) ) // freeze integral term in case of over/underflow { if ( (s32)(Integral_FirstRow + Integral_Term) < 0) {Integral_FirstRow = S16_MAX; } or else {Integral_FirstRow += Integral_Term; } } or else if ((Integral_FirstRow <= 0) && (Integral_Term <= 0) && (PID->Min_PID_Output == FALSE) ) { if ( (s32)(Integral_FirstRow + Integral_Term) > 0) { Integral_FirstRow = -S16_MAX; } or else {Integral_FirstRow += Integral_Term; } } or else if ( (Integral_FirstRow <= 0) && (Integral_Term >= 0) ) {Integral_FirstRow += Integral_Term; } or else if ( (Integral_FirstRow >= 0) && (Integral_Term <= 0) ) {Integral_FirstRow += Integral_Term; } |
|
Enlace URL |
| ¿ALLDATASHEET es útil para Ud.? [ DONATE ] |
Todo acerca de Alldatasheet | Publicidad | Contáctenos | Política de Privacidad | Enlace a la hoja de datos | Intercambio de Enlaces | Lista de Fabricantes 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 |