Skip to main content
add source
Source Link
Velvet
  • 5k
  • 5
  • 18
  • 32
TIM5->SMCR |= 0b01011 << TIM_SMCR_TS_Pos; TIM5->SMCR |= 0b0100 << TIM_SMCR_SMS_Pos; 

TIMx_SMCR.TS (and TIMx_SMCR.SMS) are not continuous bitfields, for historical reasons:

enter image description here

Source: RM0433 Reference Manual

TIM5->SMCR |= 0b01011 << TIM_SMCR_TS_Pos; TIM5->SMCR |= 0b0100 << TIM_SMCR_SMS_Pos; 

TIMx_SMCR.TS (and TIMx_SMCR.SMS) are not continuous bitfields, for historical reasons:

enter image description here

TIM5->SMCR |= 0b01011 << TIM_SMCR_TS_Pos; TIM5->SMCR |= 0b0100 << TIM_SMCR_SMS_Pos; 

TIMx_SMCR.TS (and TIMx_SMCR.SMS) are not continuous bitfields, for historical reasons:

enter image description here

Source: RM0433 Reference Manual

Source Link
wek
  • 246
  • 1
  • 3

TIM5->SMCR |= 0b01011 << TIM_SMCR_TS_Pos; TIM5->SMCR |= 0b0100 << TIM_SMCR_SMS_Pos; 

TIMx_SMCR.TS (and TIMx_SMCR.SMS) are not continuous bitfields, for historical reasons:

enter image description here