| 전자부품 데이터시트 검색엔진 |
|
AN3288 데이터시트(PDF) 17 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3288 데이터시트(HTML) 17 Page - STMicroelectronics |
|
17 / 27 page ![]() AN3288 Special features Doc ID 18011 Rev 2 17/27 Regarding the two new states, while “ACTUATE_FORWARD” is implemented as the state previously reported in the previous thresholds system C algorithm, the state “ACTUATE_REVERSE” has been implemented in the same way but with positive threshold values. The thresholds system code modified for enabling the bidirectional functionality is represented here: /* "FORWARD" direction */ state ACTUATE_FORWARD: if(acc<thr3a) /* it corresponds to the maximum braking effort */ { ... TIM1_SetCompare1(PWM3); /* set the PWM duty cycle to 25% */ brk_stat = TRUE; ... } else if(acc<thr2a) /* it corresponds to a medium braking effort */ {... TIM1_SetCompare1(PWM2); /* set the PWM duty cycle to 50% */ brk_stat = TRUE; ... } ... else /* if no braking */ {TIM1_SetCompare1(PWM0); /* PWM duty cycle to 100% set LEDs OFF */ brk_stat = FALSE; } state= WAIT; break; /*****************************************************************/ /* "REVERSE" direction */ state ACTUATE_REVERSE: if(acc>thr3b) /* it corresponds to the maximum braking effort */ { ... TIM1_SetCompare1(PWM3); /* set the PWM duty cycle to 25% */ |
|
|
링크 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 |