STM8S/A Standard Peripherals Drivers: TIM3_Registers_Bits_Definition

STM8S/A

STM8S/A Standard Peripherals Drivers
TIM3_Registers_Bits_Definition

Defines

#define TIM3_ARRH_ARR   ((uint8_t)0xFF)
#define TIM3_ARRL_ARR   ((uint8_t)0xFF)
#define TIM3_CCER1_CC1E   ((uint8_t)0x01)
#define TIM3_CCER1_CC1P   ((uint8_t)0x02)
#define TIM3_CCER1_CC2E   ((uint8_t)0x10)
#define TIM3_CCER1_CC2P   ((uint8_t)0x20)
#define TIM3_CCMR_CCxS   ((uint8_t)0x03)
#define TIM3_CCMR_ICxF   ((uint8_t)0xF0)
#define TIM3_CCMR_ICxPSC   ((uint8_t)0x0C)
#define TIM3_CCMR_OCM   ((uint8_t)0x70)
#define TIM3_CCMR_OCxPE   ((uint8_t)0x08)
#define TIM3_CCR1H_CCR1   ((uint8_t)0xFF)
#define TIM3_CCR1L_CCR1   ((uint8_t)0xFF)
#define TIM3_CCR2H_CCR2   ((uint8_t)0xFF)
#define TIM3_CCR2L_CCR2   ((uint8_t)0xFF)
#define TIM3_CNTRH_CNT   ((uint8_t)0xFF)
#define TIM3_CNTRL_CNT   ((uint8_t)0xFF)
#define TIM3_CR1_ARPE   ((uint8_t)0x80)
#define TIM3_CR1_CEN   ((uint8_t)0x01)
#define TIM3_CR1_OPM   ((uint8_t)0x08)
#define TIM3_CR1_UDIS   ((uint8_t)0x02)
#define TIM3_CR1_URS   ((uint8_t)0x04)
#define TIM3_EGR_CC1G   ((uint8_t)0x02)
#define TIM3_EGR_CC2G   ((uint8_t)0x04)
#define TIM3_EGR_UG   ((uint8_t)0x01)
#define TIM3_IER_CC1IE   ((uint8_t)0x02)
#define TIM3_IER_CC2IE   ((uint8_t)0x04)
#define TIM3_IER_UIE   ((uint8_t)0x01)
#define TIM3_PSCR_PSC   ((uint8_t)0xFF)
#define TIM3_SR1_CC1IF   ((uint8_t)0x02)
#define TIM3_SR1_CC2IF   ((uint8_t)0x04)
#define TIM3_SR1_UIF   ((uint8_t)0x01)
#define TIM3_SR2_CC1OF   ((uint8_t)0x02)
#define TIM3_SR2_CC2OF   ((uint8_t)0x04)

Define Documentation

#define TIM3_ARRH_ARR   ((uint8_t)0xFF)

Autoreload Value (MSB) mask.

Definition at line 1041 of file stm8s.h.

#define TIM3_ARRL_ARR   ((uint8_t)0xFF)

Autoreload Value (LSB) mask.

Definition at line 1042 of file stm8s.h.

#define TIM3_CCER1_CC1E   ((uint8_t)0x01)

Capture/Compare 1 output enable mask.

Definition at line 1034 of file stm8s.h.

Referenced by TI1_Config(), TIM3_CCxCmd(), TIM3_OC1Init(), and TIM3_SelectOCxM().

#define TIM3_CCER1_CC1P   ((uint8_t)0x02)

Capture/Compare 1 output Polarity mask.

Definition at line 1033 of file stm8s.h.

Referenced by TI1_Config(), TIM3_OC1Init(), and TIM3_OC1PolarityConfig().

#define TIM3_CCER1_CC2E   ((uint8_t)0x10)

Capture/Compare 2 output enable mask.

Definition at line 1032 of file stm8s.h.

Referenced by TI2_Config(), TIM3_CCxCmd(), TIM3_OC2Init(), and TIM3_SelectOCxM().

#define TIM3_CCER1_CC2P   ((uint8_t)0x20)

Capture/Compare 2 output Polarity mask.

Definition at line 1031 of file stm8s.h.

Referenced by TI2_Config(), TIM3_OC2Init(), and TIM3_OC2PolarityConfig().

#define TIM3_CCMR_CCxS   ((uint8_t)0x03)

Capture/Compare x Selection mask.

Definition at line 1029 of file stm8s.h.

Referenced by TI1_Config(), and TI2_Config().

#define TIM3_CCMR_ICxF   ((uint8_t)0xF0)

Input Capture x Filter mask.

Definition at line 1026 of file stm8s.h.

Referenced by TI1_Config(), and TI2_Config().

#define TIM3_CCMR_ICxPSC   ((uint8_t)0x0C)

Input Capture x Prescaler mask.

Definition at line 1025 of file stm8s.h.

Referenced by TIM3_SetIC1Prescaler(), and TIM3_SetIC2Prescaler().

#define TIM3_CCMR_OCM   ((uint8_t)0x70)

Output Compare x Mode mask.

Definition at line 1027 of file stm8s.h.

Referenced by TIM3_ForcedOC1Config(), TIM3_ForcedOC2Config(), TIM3_OC1Init(), TIM3_OC2Init(), and TIM3_SelectOCxM().

#define TIM3_CCMR_OCxPE   ((uint8_t)0x08)

Output Compare x Preload Enable mask.

Definition at line 1028 of file stm8s.h.

Referenced by TIM3_OC1PreloadConfig(), and TIM3_OC2PreloadConfig().

#define TIM3_CCR1H_CCR1   ((uint8_t)0xFF)

Capture/Compare 1 Value (MSB) mask.

Definition at line 1044 of file stm8s.h.

#define TIM3_CCR1L_CCR1   ((uint8_t)0xFF)

Capture/Compare 1 Value (LSB) mask.

Definition at line 1045 of file stm8s.h.

#define TIM3_CCR2H_CCR2   ((uint8_t)0xFF)

Capture/Compare 2 Value (MSB) mask.

Definition at line 1047 of file stm8s.h.

#define TIM3_CCR2L_CCR2   ((uint8_t)0xFF)

Capture/Compare 2 Value (LSB) mask.

Definition at line 1048 of file stm8s.h.

#define TIM3_CNTRH_CNT   ((uint8_t)0xFF)

Counter Value (MSB) mask.

Definition at line 1036 of file stm8s.h.

#define TIM3_CNTRL_CNT   ((uint8_t)0xFF)

Counter Value (LSB) mask.

Definition at line 1037 of file stm8s.h.

#define TIM3_CR1_ARPE   ((uint8_t)0x80)

Auto-Reload Preload Enable mask.

Definition at line 1004 of file stm8s.h.

Referenced by TIM3_ARRPreloadConfig().

#define TIM3_CR1_CEN   ((uint8_t)0x01)

Counter Enable mask.

Definition at line 1008 of file stm8s.h.

Referenced by TIM3_Cmd().

#define TIM3_CR1_OPM   ((uint8_t)0x08)

One Pulse Mode mask.

Definition at line 1005 of file stm8s.h.

Referenced by TIM3_SelectOnePulseMode().

#define TIM3_CR1_UDIS   ((uint8_t)0x02)

Update DIsable mask.

Definition at line 1007 of file stm8s.h.

Referenced by TIM3_UpdateDisableConfig().

#define TIM3_CR1_URS   ((uint8_t)0x04)

Update Request Source mask.

Definition at line 1006 of file stm8s.h.

Referenced by TIM3_UpdateRequestConfig().

#define TIM3_EGR_CC1G   ((uint8_t)0x02)

Capture/Compare 1 Generation mask.

Definition at line 1022 of file stm8s.h.

#define TIM3_EGR_CC2G   ((uint8_t)0x04)

Capture/Compare 2 Generation mask.

Definition at line 1021 of file stm8s.h.

#define TIM3_EGR_UG   ((uint8_t)0x01)

Update Generation mask.

Definition at line 1023 of file stm8s.h.

#define TIM3_IER_CC1IE   ((uint8_t)0x02)

Capture/Compare 1 Interrupt Enable mask.

Definition at line 1011 of file stm8s.h.

#define TIM3_IER_CC2IE   ((uint8_t)0x04)

Capture/Compare 2 Interrupt Enable mask.

Definition at line 1010 of file stm8s.h.

#define TIM3_IER_UIE   ((uint8_t)0x01)

Update Interrupt Enable mask.

Definition at line 1012 of file stm8s.h.

#define TIM3_PSCR_PSC   ((uint8_t)0xFF)

Prescaler Value (MSB) mask.

Definition at line 1039 of file stm8s.h.

#define TIM3_SR1_CC1IF   ((uint8_t)0x02)

Capture/Compare 1 Interrupt Flag mask.

Definition at line 1015 of file stm8s.h.

#define TIM3_SR1_CC2IF   ((uint8_t)0x04)

Capture/Compare 2 Interrupt Flag mask.

Definition at line 1014 of file stm8s.h.

#define TIM3_SR1_UIF   ((uint8_t)0x01)

Update Interrupt Flag mask.

Definition at line 1016 of file stm8s.h.

#define TIM3_SR2_CC1OF   ((uint8_t)0x02)

Capture/Compare 1 Overcapture Flag mask.

Definition at line 1019 of file stm8s.h.

#define TIM3_SR2_CC2OF   ((uint8_t)0x04)

Capture/Compare 2 Overcapture Flag mask.

Definition at line 1018 of file stm8s.h.

STM8 Standard Peripherals Library: Footer

 

 

 

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