Module cr1

Source
Expand description

TIM1 control register 1

Structs§

CR1rs
TIM1 control register 1

Enums§

ARPE
Auto-reload preload enable
CEN
Counter enable Note: External clock, gated mode and encoder mode can work only if the CEN bit has been previously set by software. However trigger mode can set the CEN bit automatically by hardware.
CKD
Clock division This bit-field indicates the division ratio between the timer clock (CK_INT) frequency and the dead-time and sampling clock (tDTS)used by the dead-time generators and the digital filters (ETR, TIx): Note: tDTS = 1/fDTS, tCK_INT = 1/fCK_INT.
CMS
Center-aligned mode selection Note: Switch from edge-aligned mode to center-aligned mode as long as the counter is enabled (CEN=1) is not allowed
DIR
Direction Note: This bit is read only when the timer is configured in Center-aligned mode or Encoder mode.
OPM
One pulse mode
UDIS
Update disable This bit is set and cleared by software to enable/disable UEV event generation. Counter overflow/underflow Setting the UG bit Update generation through the slave mode controller Buffered registers are then loaded with their preload values.
URS
Update request source This bit is set and cleared by software to select the UEV event sources. Counter overflow/underflow Setting the UG bit Update generation through the slave mode controller

Type Aliases§

ARPE_R
Field ARPE reader - Auto-reload preload enable
ARPE_W
Field ARPE writer - Auto-reload preload enable
CEN_R
Field CEN reader - Counter enable Note: External clock, gated mode and encoder mode can work only if the CEN bit has been previously set by software. However trigger mode can set the CEN bit automatically by hardware.
CEN_W
Field CEN writer - Counter enable Note: External clock, gated mode and encoder mode can work only if the CEN bit has been previously set by software. However trigger mode can set the CEN bit automatically by hardware.
CKD_R
Field CKD reader - Clock division This bit-field indicates the division ratio between the timer clock (CK_INT) frequency and the dead-time and sampling clock (tDTS)used by the dead-time generators and the digital filters (ETR, TIx): Note: tDTS = 1/fDTS, tCK_INT = 1/fCK_INT.
CKD_W
Field CKD writer - Clock division This bit-field indicates the division ratio between the timer clock (CK_INT) frequency and the dead-time and sampling clock (tDTS)used by the dead-time generators and the digital filters (ETR, TIx): Note: tDTS = 1/fDTS, tCK_INT = 1/fCK_INT.
CMS_R
Field CMS reader - Center-aligned mode selection Note: Switch from edge-aligned mode to center-aligned mode as long as the counter is enabled (CEN=1) is not allowed
CMS_W
Field CMS writer - Center-aligned mode selection Note: Switch from edge-aligned mode to center-aligned mode as long as the counter is enabled (CEN=1) is not allowed
DIR_R
Field DIR reader - Direction Note: This bit is read only when the timer is configured in Center-aligned mode or Encoder mode.
DIR_W
Field DIR writer - Direction Note: This bit is read only when the timer is configured in Center-aligned mode or Encoder mode.
OPM_R
Field OPM reader - One pulse mode
OPM_W
Field OPM writer - One pulse mode
R
Register CR1 reader
UDIS_R
Field UDIS reader - Update disable This bit is set and cleared by software to enable/disable UEV event generation. Counter overflow/underflow Setting the UG bit Update generation through the slave mode controller Buffered registers are then loaded with their preload values.
UDIS_W
Field UDIS writer - Update disable This bit is set and cleared by software to enable/disable UEV event generation. Counter overflow/underflow Setting the UG bit Update generation through the slave mode controller Buffered registers are then loaded with their preload values.
UIFREMAP_R
Field UIFREMAP reader - UIF status bit remapping
UIFREMAP_W
Field UIFREMAP writer - UIF status bit remapping
URS_R
Field URS reader - Update request source This bit is set and cleared by software to select the UEV event sources. Counter overflow/underflow Setting the UG bit Update generation through the slave mode controller
URS_W
Field URS writer - Update request source This bit is set and cleared by software to select the UEV event sources. Counter overflow/underflow Setting the UG bit Update generation through the slave mode controller
W
Register CR1 writer