| 전자부품 데이터시트 검색엔진 |
|
UM0324 데이터시트(PDF) 75 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0324 데이터시트(HTML) 75 Page - STMicroelectronics |
|
75 / 105 page ![]() UM0324 Library functions 75/105 ENC_Get_Average_Speed TIMx_UP_IRQHandler - interrupt routine Synopsis s16 ENC_Get_Average_Speed(void) Description This function returns the average rotor speed in Hz.The value returned is given with 0.1Hz resolution, which means that 1234 is equal to 123.4 Hz. Input None Output Signed 16 bits Functions called ENC_Get_Speed() Note The averaging is done with the values stored in ‘Speed_Buffer[]’. The size of this buffer is set through the ‘SPEED_BUFFER_SIZE’ statement, which must be equal to a power of 2 to allow the use of the shift operation for divisions. This routine returns the mechanical frequency of the rotor. To find the electrical speed, use the following conversion: electrical frequency = mechanical frequency * number of pole pairs Synopsis void TIMx_UP_IRQHandler(void) Description This is the encoder timer (TIMER 0, 1 or 2) update routine. An interruption is generated whenever an overflow/underflow of the counter value occurs (TIM_CNT). The ‘Encoder_Timer_Overflow’ variable is then incremented. Functions called None Note This is an interrupt routine. See also STR750 Datasheet: Synchronizable Standard Timer. |
|
링크 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 |