| Electronic Components Datasheet Search |
|
AN3288 Datasheet(PDF) 14 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3288 Datasheet(HTML) 14 Page - STMicroelectronics |
|
14 / 27 page ![]() Firmware design AN3288 14/27 Doc ID 18011 Rev 2 else if(acc<thr2) /* it corresponds to a medium braking effort */ {... TIM1_SetCompare1(PWM2); /* set the PWM duty cycle to 50% */ brk_stat = TRUE; ... } else if(acc<thr1) /* it corresponds to a soft braking effort */ {... TIM1_SetCompare1(PWM1); /* set the PWM duty cycle to 75% */ brk_stat = TRUE; ... } else /* if no braking */ {TIM1_SetCompare1(PWM0); /* PWM duty cycle to 100% set LEDs OFF */ brk_stat = FALSE; } For each deceleration range, the MCU sets the PWM signal duty cycle in order to switch LEDs ON when a braking occurs, and then an internal timer starts to manage the light duration. |
|
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 |