STM8S/A Standard Peripherals Drivers: TIM2_Registers_Bits_Definition

STM8S/A

STM8S/A Standard Peripherals Drivers
TIM2_Registers_Bits_Definition

Defines

#define TIM2_ARRH_ARR   ((uint8_t)0xFF)
#define TIM2_ARRL_ARR   ((uint8_t)0xFF)
#define TIM2_CCER1_CC1E   ((uint8_t)0x01)
#define TIM2_CCER1_CC1P   ((uint8_t)0x02)
#define TIM2_CCER1_CC2E   ((uint8_t)0x10)
#define TIM2_CCER1_CC2P   ((uint8_t)0x20)
#define TIM2_CCER2_CC3E   ((uint8_t)0x01)
#define TIM2_CCER2_CC3P   ((uint8_t)0x02)
#define TIM2_CCMR_CCxS   ((uint8_t)0x03)
#define TIM2_CCMR_ICxF   ((uint8_t)0xF0)
#define TIM2_CCMR_ICxPSC   ((uint8_t)0x0C)
#define TIM2_CCMR_OCM   ((uint8_t)0x70)
#define TIM2_CCMR_OCxPE   ((uint8_t)0x08)
#define TIM2_CCR1H_CCR1   ((uint8_t)0xFF)
#define TIM2_CCR1L_CCR1   ((uint8_t)0xFF)
#define TIM2_CCR2H_CCR2   ((uint8_t)0xFF)
#define TIM2_CCR2L_CCR2   ((uint8_t)0xFF)
#define TIM2_CCR3H_CCR3   ((uint8_t)0xFF)
#define TIM2_CCR3L_CCR3   ((uint8_t)0xFF)
#define TIM2_CNTRH_CNT   ((uint8_t)0xFF)
#define TIM2_CNTRL_CNT   ((uint8_t)0xFF)
#define TIM2_CR1_ARPE   ((uint8_t)0x80)
#define TIM2_CR1_CEN   ((uint8_t)0x01)
#define TIM2_CR1_OPM   ((uint8_t)0x08)
#define TIM2_CR1_UDIS   ((uint8_t)0x02)
#define TIM2_CR1_URS   ((uint8_t)0x04)
#define TIM2_EGR_CC1G   ((uint8_t)0x02)
#define TIM2_EGR_CC2G   ((uint8_t)0x04)
#define TIM2_EGR_CC3G   ((uint8_t)0x08)
#define TIM2_EGR_UG   ((uint8_t)0x01)
#define TIM2_IER_CC1IE   ((uint8_t)0x02)
#define TIM2_IER_CC2IE   ((uint8_t)0x04)
#define TIM2_IER_CC3IE   ((uint8_t)0x08)
#define TIM2_IER_UIE   ((uint8_t)0x01)
#define TIM2_PSCR_PSC   ((uint8_t)0xFF)
#define TIM2_SR1_CC1IF   ((uint8_t)0x02)
#define TIM2_SR1_CC2IF   ((uint8_t)0x04)
#define TIM2_SR1_CC3IF   ((uint8_t)0x08)
#define TIM2_SR1_UIF   ((uint8_t)0x01)
#define TIM2_SR2_CC1OF   ((uint8_t)0x02)
#define TIM2_SR2_CC2OF   ((uint8_t)0x04)
#define TIM2_SR2_CC3OF   ((uint8_t)0x08)

Define Documentation

#define TIM2_ARRH_ARR   ((uint8_t)0xFF)

Autoreload Value (MSB) mask.

Definition at line 932 of file stm8s.h.

#define TIM2_ARRL_ARR   ((uint8_t)0xFF)

Autoreload Value (LSB) mask.

Definition at line 933 of file stm8s.h.

#define TIM2_CCER1_CC1E   ((uint8_t)0x01)

Capture/Compare 1 output enable mask.

Definition at line 922 of file stm8s.h.

Referenced by TI1_Config(), TIM2_CCxCmd(), TIM2_OC1Init(), and TIM2_SelectOCxM().

#define TIM2_CCER1_CC1P   ((uint8_t)0x02)

Capture/Compare 1 output Polarity mask.

Definition at line 921 of file stm8s.h.

Referenced by TI1_Config(), TIM2_OC1Init(), and TIM2_OC1PolarityConfig().

#define TIM2_CCER1_CC2E   ((uint8_t)0x10)

Capture/Compare 2 output enable mask.

Definition at line 920 of file stm8s.h.

Referenced by TI2_Config(), TIM2_CCxCmd(), TIM2_OC2Init(), and TIM2_SelectOCxM().

#define TIM2_CCER1_CC2P   ((uint8_t)0x20)

Capture/Compare 2 output Polarity mask.

Definition at line 919 of file stm8s.h.

Referenced by TI2_Config(), TIM2_OC2Init(), and TIM2_OC2PolarityConfig().

#define TIM2_CCER2_CC3E   ((uint8_t)0x01)

Capture/Compare 3 output enable mask.

Definition at line 925 of file stm8s.h.

Referenced by TI3_Config(), TIM2_CCxCmd(), TIM2_OC3Init(), and TIM2_SelectOCxM().

#define TIM2_CCER2_CC3P   ((uint8_t)0x02)

Capture/Compare 3 output Polarity mask.

Definition at line 924 of file stm8s.h.

Referenced by TI3_Config(), TIM2_OC3Init(), and TIM2_OC3PolarityConfig().

#define TIM2_CCMR_CCxS   ((uint8_t)0x03)

Capture/Compare x Selection mask.

Definition at line 917 of file stm8s.h.

Referenced by TI1_Config(), TI2_Config(), and TI3_Config().

#define TIM2_CCMR_ICxF   ((uint8_t)0xF0)

Input Capture x Filter mask.

Definition at line 914 of file stm8s.h.

Referenced by TI1_Config(), TI2_Config(), and TI3_Config().

#define TIM2_CCMR_ICxPSC   ((uint8_t)0x0C)

Input Capture x Prescaler mask.

Definition at line 913 of file stm8s.h.

Referenced by TIM2_SetIC1Prescaler(), TIM2_SetIC2Prescaler(), and TIM2_SetIC3Prescaler().

#define TIM2_CCMR_OCM   ((uint8_t)0x70)

Output Compare x Mode mask.

Definition at line 915 of file stm8s.h.

Referenced by TIM2_ForcedOC1Config(), TIM2_ForcedOC2Config(), TIM2_ForcedOC3Config(), TIM2_OC1Init(), TIM2_OC2Init(), TIM2_OC3Init(), and TIM2_SelectOCxM().

#define TIM2_CCMR_OCxPE   ((uint8_t)0x08)

Output Compare x Preload Enable mask.

Definition at line 916 of file stm8s.h.

Referenced by TIM2_OC1PreloadConfig(), TIM2_OC2PreloadConfig(), and TIM2_OC3PreloadConfig().

#define TIM2_CCR1H_CCR1   ((uint8_t)0xFF)

Capture/Compare 1 Value (MSB) mask.

Definition at line 935 of file stm8s.h.

#define TIM2_CCR1L_CCR1   ((uint8_t)0xFF)

Capture/Compare 1 Value (LSB) mask.

Definition at line 936 of file stm8s.h.

#define TIM2_CCR2H_CCR2   ((uint8_t)0xFF)

Capture/Compare 2 Value (MSB) mask.

Definition at line 938 of file stm8s.h.

#define TIM2_CCR2L_CCR2   ((uint8_t)0xFF)

Capture/Compare 2 Value (LSB) mask.

Definition at line 939 of file stm8s.h.

#define TIM2_CCR3H_CCR3   ((uint8_t)0xFF)

Capture/Compare 3 Value (MSB) mask.

Definition at line 941 of file stm8s.h.

#define TIM2_CCR3L_CCR3   ((uint8_t)0xFF)

Capture/Compare 3 Value (LSB) mask.

Definition at line 942 of file stm8s.h.

#define TIM2_CNTRH_CNT   ((uint8_t)0xFF)

Counter Value (MSB) mask.

Definition at line 927 of file stm8s.h.

#define TIM2_CNTRL_CNT   ((uint8_t)0xFF)

Counter Value (LSB) mask.

Definition at line 928 of file stm8s.h.

#define TIM2_CR1_ARPE   ((uint8_t)0x80)

Auto-Reload Preload Enable mask.

Definition at line 888 of file stm8s.h.

Referenced by TIM2_ARRPreloadConfig().

#define TIM2_CR1_CEN   ((uint8_t)0x01)

Counter Enable mask.

Definition at line 892 of file stm8s.h.

Referenced by TIM2_Cmd().

#define TIM2_CR1_OPM   ((uint8_t)0x08)

One Pulse Mode mask.

Definition at line 889 of file stm8s.h.

Referenced by TIM2_SelectOnePulseMode().

#define TIM2_CR1_UDIS   ((uint8_t)0x02)

Update DIsable mask.

Definition at line 891 of file stm8s.h.

Referenced by TIM2_UpdateDisableConfig().

#define TIM2_CR1_URS   ((uint8_t)0x04)

Update Request Source mask.

Definition at line 890 of file stm8s.h.

Referenced by TIM2_UpdateRequestConfig().

#define TIM2_EGR_CC1G   ((uint8_t)0x02)

Capture/Compare 1 Generation mask.

Definition at line 910 of file stm8s.h.

#define TIM2_EGR_CC2G   ((uint8_t)0x04)

Capture/Compare 2 Generation mask.

Definition at line 909 of file stm8s.h.

#define TIM2_EGR_CC3G   ((uint8_t)0x08)

Capture/Compare 3 Generation mask.

Definition at line 908 of file stm8s.h.

#define TIM2_EGR_UG   ((uint8_t)0x01)

Update Generation mask.

Definition at line 911 of file stm8s.h.

#define TIM2_IER_CC1IE   ((uint8_t)0x02)

Capture/Compare 1 Interrupt Enable mask.

Definition at line 896 of file stm8s.h.

#define TIM2_IER_CC2IE   ((uint8_t)0x04)

Capture/Compare 2 Interrupt Enable mask.

Definition at line 895 of file stm8s.h.

#define TIM2_IER_CC3IE   ((uint8_t)0x08)

Capture/Compare 3 Interrupt Enable mask.

Definition at line 894 of file stm8s.h.

#define TIM2_IER_UIE   ((uint8_t)0x01)

Update Interrupt Enable mask.

Definition at line 897 of file stm8s.h.

#define TIM2_PSCR_PSC   ((uint8_t)0xFF)

Prescaler Value (MSB) mask.

Definition at line 930 of file stm8s.h.

#define TIM2_SR1_CC1IF   ((uint8_t)0x02)

Capture/Compare 1 Interrupt Flag mask.

Definition at line 901 of file stm8s.h.

#define TIM2_SR1_CC2IF   ((uint8_t)0x04)

Capture/Compare 2 Interrupt Flag mask.

Definition at line 900 of file stm8s.h.

#define TIM2_SR1_CC3IF   ((uint8_t)0x08)

Capture/Compare 3 Interrupt Flag mask.

Definition at line 899 of file stm8s.h.

#define TIM2_SR1_UIF   ((uint8_t)0x01)

Update Interrupt Flag mask.

Definition at line 902 of file stm8s.h.

#define TIM2_SR2_CC1OF   ((uint8_t)0x02)

Capture/Compare 1 Overcapture Flag mask.

Definition at line 906 of file stm8s.h.

#define TIM2_SR2_CC2OF   ((uint8_t)0x04)

Capture/Compare 2 Overcapture Flag mask.

Definition at line 905 of file stm8s.h.

#define TIM2_SR2_CC3OF   ((uint8_t)0x08)

Capture/Compare 3 Overcapture Flag mask.

Definition at line 904 of file stm8s.h.

STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com