| 전자부품 데이터시트 검색엔진 |
|
STPS1L60 데이터시트(PDF) 21 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STPS1L60 데이터시트(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; } |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |