![]() |
Infineon MOTIX™ MCU TLE987x Device Family SDK
|
Go to the source code of this file.
Timer2/Timer21 low level access library.
Macros | |
#define | MIN_TIMER_INTERVAL_US 1u |
#define | T2_REG_MAX_UPCOUNT_TICKS 0u |
#define | T2_REG_MIN_UPCOUNT_TICKS 0xFFFFu |
Typedefs | |
typedef enum TIMER2_T2IN_Pxx | TTIMER2_T2IN_Pxx |
typedef enum TIMER2_T2EX_Pxx | TTIMER2_T2EX_Pxx |
typedef enum TIMER21_T2IN_Pxx | TTIMER21_T2IN_Pxx |
typedef enum TIMER21_T2EX_Pxx | TTIMER21_T2EX_Pxx |
typedef enum IMER2x_Clock_Prescaler | TIMER2x_Clock_Prescaler |
Enumerations | |
enum | TIMER2_T2IN_Pxx { TIMER2_T2IN_P00 = 0u , TIMER2_T2IN_P25 = 1u } |
enum | TIMER2_T2EX_Pxx { TIMER2_T2EX_LIN = 0u , TIMER2_T2EX_P12 = 1u , TIMER2_T2EX_CCU6_CC60 = 2u } |
enum | TIMER21_T2IN_Pxx { TIMER21_T2IN_P01 = 0u , TIMER21_T2IN_P11 = 1u , TIMER21_T2IN_P04 = 2u } |
enum | TIMER21_T2EX_Pxx { TIMER21_T2EX_P02 = 0u , TIMER21_T2EX_P14 = 1u , TIMER21_T2EX_P23 = 2u , TIMER21_T2EX_P12 = 3u , TIMER21_T2EX_CCU6_COUT60 = 4u } |
enum | IMER2x_Clock_Prescaler { TIMER2x_Clk_Div_1 = 0u , TIMER2x_Clk_Div_2 = 1u , TIMER2x_Clk_Div_4 = 2u , TIMER2x_Clk_Div_8 = 3u , TIMER2x_Clk_Div_16 = 4u , TIMER2x_Clk_Div_32 = 5u , TIMER2x_Clk_Div_64 = 6u , TIMER2x_Clk_Div_128 = 7u } |
Functions | |
INLINE void | TIMER2_Clk_Prescaler_En (void) |
enables TIMER2 clock prescaler. More... | |
INLINE void | TIMER2_Clk_Prescaler_Dis (void) |
disables TIMER2 clock prescaler. More... | |
INLINE void | TIMER2_Clk_Prescaler_Sel (uint8 t2pre) |
sets TIMER2 clock prescaler. More... | |
INLINE uint8 | TIMER2_Clk_Prescaler_Get (void) |
reads TIMER2 clock prescaler. More... | |
INLINE uint8 | TIMER2_Overflow_Sts (void) |
reads TIMER2 Overflow Status. More... | |
INLINE uint8 | TIMER2_External_Sts (void) |
reads TIMER2 External Status. More... | |
INLINE void | TIMER2_ExternalCtrl_En (void) |
enables TIMER2 External Control. More... | |
INLINE void | TIMER2_ExternalCtrl_Dis (void) |
disables TIMER2 External Control. More... | |
INLINE void | TIMER2_Reload_Capture_RisingEdge_Set (void) |
sets Rising Edge to Capture/Reload Mode for TIMER2. More... | |
INLINE void | TIMER2_Reload_Capture_FallingEdge_Set (void) |
sets Falling Edge to Capture/Reload Mode for TIMER2. More... | |
INLINE void | TIMER2_ExtStart_RisingEdge_Set (void) |
sets Rising Edge to External Start for TIMER2. More... | |
INLINE void | TIMER2_ExtStart_FallingEdge_Set (void) |
sets Falling Edge to External Start for TIMER2. More... | |
INLINE void | TIMER2_UpDownCount_En (void) |
enables Up/Down Counter for TIMER2. More... | |
INLINE void | TIMER2_UpDownCount_Dis (void) |
Disables Up/Down Counter for TIMER2. More... | |
INLINE void | TIMER2_Mode_Capture_Set (void) |
Selects Capture Mode for TIMER2. More... | |
INLINE void | TIMER2_Mode_Reload_Set (void) |
Selects Reload Mode for TIMER2. More... | |
INLINE void | TIMER2_Mode_Counter_Set (void) |
Selects Mode Counter for TIMER2. More... | |
INLINE void | TIMER2_Mode_Timer_Set (void) |
Selects Mode Timer for TIMER2. More... | |
INLINE void | TIMER2_Overflow_Int_Clr (void) |
Clears TIMER2 Overflow Interrupt flag. More... | |
INLINE void | TIMER2_External_Int_Clr (void) |
Clears TIMER2 External Interrupt flag. More... | |
INLINE void | TIMER2_Overflow_Int_En (void) |
Enables TIMER2 Overflow Interrupt. More... | |
INLINE void | TIMER2_Overflow_Int_Dis (void) |
Disables TIMER2 Overflow Interrupt. More... | |
INLINE void | TIMER2_External_Int_En (void) |
Enables TIMER2 External Interrupt. More... | |
INLINE void | TIMER2_External_Int_Dis (void) |
Disables TIMER2 External Interrupt. More... | |
INLINE void | TIMER21_Clk_Prescaler_En (void) |
enables TIMER21 clock prescaler. More... | |
INLINE void | TIMER21_Clk_Prescaler_Dis (void) |
disables TIMER21 clock prescaler. More... | |
INLINE void | TIMER21_Clk_Prescaler_Sel (uint8 t2pre) |
sets TIMER21 clock prescaler. More... | |
INLINE uint8 | TIMER21_Clk_Prescaler_Get (void) |
reads TIMER21 clock prescaler. More... | |
INLINE uint8 | TIMER21_Overflow_Sts (void) |
reads TIMER21 Overflow Status. More... | |
INLINE uint8 | TIMER21_External_Sts (void) |
reads TIMER21 External Status. More... | |
INLINE void | TIMER21_ExternalCtrl_En (void) |
enables TIMER21 External Control. More... | |
INLINE void | TIMER21_ExternalCtrl_Dis (void) |
disables TIMER21 External Control. More... | |
INLINE void | TIMER21_Reload_Capture_RisingEdge_Set (void) |
sets Rising Edge to Capture/Reload Mode for TIMER21. More... | |
INLINE void | TIMER21_Reload_Capture_FallingEdge_Set (void) |
sets Falling Edge to Capture/Reload Mode for TIMER21. More... | |
INLINE void | TIMER21_ExtStart_RisingEdge_Set (void) |
sets Rising Edge to External Start for TIMER21. More... | |
INLINE void | TIMER21_ExtStart_FallingEdge_Set (void) |
sets Falling Edge to External Start for TIMER21. More... | |
INLINE void | TIMER21_UpDownCount_En (void) |
enables Up/Down Counter for TIMER21. More... | |
INLINE void | TIMER21_UpDownCount_Dis (void) |
Disables Up/Down Counter for TIMER21. More... | |
INLINE void | TIMER21_Mode_Capture_Set (void) |
Selects Capture Mode for TIMER21. More... | |
INLINE void | TIMER21_Mode_Reload_Set (void) |
Selects Reload Mode for TIMER21. More... | |
INLINE void | TIMER21_Mode_Counter_Set (void) |
Selects Mode Counter for TIMER21. More... | |
INLINE void | TIMER21_Mode_Timer_Set (void) |
Selects Mode Timer for TIMER21. More... | |
INLINE void | TIMER21_Overflow_Int_Clr (void) |
Clears TIMER21 Overflow Interrupt status. More... | |
INLINE void | TIMER21_External_Int_Clr (void) |
Clears TIMER21 External Interrupt status. More... | |
INLINE void | TIMER21_Overflow_Int_En (void) |
Enables TIMER21 Overflow Interrupt. More... | |
INLINE void | TIMER21_Overflow_Int_Dis (void) |
Disables TIMER21 Overflow Interrupt. More... | |
INLINE void | TIMER21_External_Int_En (void) |
Enables TIMER21 External Interrupt. More... | |
INLINE void | TIMER21_External_Int_Dis (void) |
Disables TIMER21 External Interrupt. More... | |
void | TIMER2_Init (void) |
Initializes the Timer2 module based on the Config Wizard for MOTIX MCU configuration. More... | |
void | TIMER21_Init (void) |
Initializes the Timer21 module based on the Config Wizard for MOTIX MCU configuration. More... | |
bool | TIMER2_Interval_Timer_Setup (uint32 timer_interval_us) |
Initializes the TIMER2 in Reload Mode. More... | |
bool | TIMER21_Interval_Timer_Setup (uint32 timer_interval_us) |
Initializes the TIMER21 in Reload Mode. More... | |
INLINE void | TIMER2_Start (void) |
starts the TIMER2 by software More... | |
INLINE void | TIMER2_Stop (void) |
stops the TIMER2 by software More... | |
INLINE void | TIMER2_ExtStart (void) |
prepares TIMER2 to be started externally More... | |
INLINE void | TIMER2_ExtStop (void) |
disable TIMER2 to be started externally More... | |
INLINE uint16 | TIMER2_Value_Get (void) |
reads the TIMER2 count value More... | |
INLINE uint16 | TIMER2_Get_Count (void) |
reads the TIMER2 count value More... | |
INLINE uint16 | TIMER2_Capture_Value_Get (void) |
reads the TIMER2 capture value More... | |
INLINE uint16 | TIMER2_Get_Capture (void) |
reads the TIMER2 capture value More... | |
INLINE void | TIMER2_Clear_Count (void) |
clears the TIMER2 count value More... | |
INLINE void | TIMER2_Set_Reload (uint16 value) |
sets TIMER2 reload value More... | |
INLINE void | TIMER2_Select_T2IN (TTIMER2_T2IN_Pxx pinsel) |
sets TIMER2 T2IN Pin More... | |
INLINE void | TIMER2_Select_T2EX (TTIMER2_T2EX_Pxx pinsel) |
sets TIMER2 T2EX Pin More... | |
INLINE void | TIMER21_Start (void) |
starts the TIMER21 by software More... | |
INLINE void | TIMER21_Stop (void) |
stops the TIMER21 by software More... | |
INLINE void | TIMER21_ExtStart (void) |
prepares TIMER21 to be started externally More... | |
INLINE void | TIMER21_ExtStop (void) |
disable TIMER21 to be started externally More... | |
INLINE uint16 | TIMER21_Value_Get (void) |
reads the TIMER21 count value More... | |
INLINE uint16 | TIMER21_Get_Count (void) |
reads the TIMER21 count value More... | |
INLINE uint16 | TIMER21_Capture_Value_Get (void) |
reads the TIMER21 capture value More... | |
INLINE uint16 | TIMER21_Get_Capture (void) |
reads the TIMER21 capture value More... | |
INLINE void | TIMER21_Clear_Count (void) |
clears the TIMER21 count value More... | |
INLINE void | TIMER21_Set_Reload (uint16 value) |
sets TIMER21 reload value More... | |
INLINE void | TIMER21_Select_T2IN (TTIMER21_T2IN_Pxx pinsel) |
sets TIMER21 T2IN Pin More... | |
INLINE void | TIMER21_Select_T2EX (TTIMER21_T2EX_Pxx pinsel) |
sets TIMER21 T2EX Pin More... | |
INLINE void | TIMER2_Value_Set (uint16 t2) |
Sets TIMER2 Value. More... | |
INLINE void | TIMER2_Reload_Value_Set (uint16 t2) |
Sets TIMER2 Reload Value. More... | |
INLINE void | TIMER21_Value_Set (uint16 t21) |
Sets TIMER21 Value. More... | |
INLINE void | TIMER21_Reload_Value_Set (uint16 t21) |
Sets TIMER21 Reload Value. More... | |
#define MIN_TIMER_INTERVAL_US 1u |
#define T2_REG_MAX_UPCOUNT_TICKS 0u |
#define T2_REG_MIN_UPCOUNT_TICKS 0xFFFFu |
typedef enum IMER2x_Clock_Prescaler TIMER2x_Clock_Prescaler |
typedef enum TIMER21_T2EX_Pxx TTIMER21_T2EX_Pxx |
typedef enum TIMER21_T2IN_Pxx TTIMER21_T2IN_Pxx |
typedef enum TIMER2_T2EX_Pxx TTIMER2_T2EX_Pxx |
typedef enum TIMER2_T2IN_Pxx TTIMER2_T2IN_Pxx |
enum TIMER21_T2EX_Pxx |
enum TIMER21_T2IN_Pxx |
enum TIMER2_T2EX_Pxx |
enum TIMER2_T2IN_Pxx |
reads the TIMER21 capture value
Example
This example reads the TIMER21 capture value.
INLINE void TIMER21_Clear_Count | ( | void | ) |
clears the TIMER21 count value
Example
This example stops and reset TIMER21 by software.
INLINE void TIMER21_Clk_Prescaler_Dis | ( | void | ) |
disables TIMER21 clock prescaler.
Example
This example disables TIMER21 clock prescaler.
INLINE void TIMER21_Clk_Prescaler_En | ( | void | ) |
enables TIMER21 clock prescaler.
Example
This example enables TIMER21 clock prescaler.
reads TIMER21 clock prescaler.
Example
This example reads TIMER21 clock prescaler.
sets TIMER21 clock prescaler.
t2pre | TIMER21 clock prescaler |
Example
This example sets TIMER21 clock prescaler to DIV2.
INLINE void TIMER21_External_Int_Clr | ( | void | ) |
Clears TIMER21 External Interrupt status.
Example
This example treats the TIMER21 External Interrupt.
INLINE void TIMER21_External_Int_Dis | ( | void | ) |
Disables TIMER21 External Interrupt.
Example
This example treats the TIMER21 External Interrupt.
INLINE void TIMER21_External_Int_En | ( | void | ) |
Enables TIMER21 External Interrupt.
Example
This example treats the TIMER21 External Interrupt.
reads TIMER21 External Status.
Example
This example checks the TIMER21 External Status.
INLINE void TIMER21_ExternalCtrl_Dis | ( | void | ) |
disables TIMER21 External Control.
Example
This example reads TIMER21 External Status while External control is disabled.
INLINE void TIMER21_ExternalCtrl_En | ( | void | ) |
enables TIMER21 External Control.
Example
This example checks the TIMER21 External Status.
INLINE void TIMER21_ExtStart | ( | void | ) |
prepares TIMER21 to be started externally
Example
This example sets Rising Edge to External Start.
INLINE void TIMER21_ExtStart_FallingEdge_Set | ( | void | ) |
sets Falling Edge to External Start for TIMER21.
Example
This example sets Falling Edge to External Start.
INLINE void TIMER21_ExtStart_RisingEdge_Set | ( | void | ) |
sets Rising Edge to External Start for TIMER21.
Example
This example sets Rising Edge to External Start.
INLINE void TIMER21_ExtStop | ( | void | ) |
disable TIMER21 to be started externally
Example
This example sets Rising Edge to External Start.
reads the TIMER21 capture value
Example
This example reads the TIMER21 capture value.
reads the TIMER21 count value
Example
This example reads the TIMER21 count value.
void TIMER21_Init | ( | void | ) |
Initializes the Timer21 module based on the Config Wizard for MOTIX MCU configuration.
Initializes the TIMER21 in Reload Mode.
timer_interval_us | timer interval in microseconds |
TRUE | setup done |
FALSE | setup failed |
Example
This example Initializes the TIMER21 in Reload Mode with timer equals to 5000 us.
INLINE void TIMER21_Mode_Capture_Set | ( | void | ) |
Selects Capture Mode for TIMER21.
Example
This example enters 16-bit Capture Mode.
INLINE void TIMER21_Mode_Counter_Set | ( | void | ) |
Selects Mode Counter for TIMER21.
Example
This example sets the Mode Counter.
INLINE void TIMER21_Mode_Reload_Set | ( | void | ) |
Selects Reload Mode for TIMER21.
Example
This example enters Auto-Reload Mode.
INLINE void TIMER21_Mode_Timer_Set | ( | void | ) |
Selects Mode Timer for TIMER21.
Example
This example sets the Mode Timer.
INLINE void TIMER21_Overflow_Int_Clr | ( | void | ) |
Clears TIMER21 Overflow Interrupt status.
Example
This example treats the TIMER21 Overflow Interrupt.
INLINE void TIMER21_Overflow_Int_Dis | ( | void | ) |
Disables TIMER21 Overflow Interrupt.
Example
This example treats the TIMER21 Overflow Interrupt.
INLINE void TIMER21_Overflow_Int_En | ( | void | ) |
Enables TIMER21 Overflow Interrupt.
Example
This example treats the TIMER21 Overflow Interrupt.
reads TIMER21 Overflow Status.
Example
This example checks the TIMER21 Overflow Status.
INLINE void TIMER21_Reload_Capture_FallingEdge_Set | ( | void | ) |
sets Falling Edge to Capture/Reload Mode for TIMER21.
Example
This example sets Falling Edge to Capture/Reload Mode.
INLINE void TIMER21_Reload_Capture_RisingEdge_Set | ( | void | ) |
sets Rising Edge to Capture/Reload Mode for TIMER21.
Example
This example sets Rising Edge to Capture/Reload Mode.
Sets TIMER21 Reload Value.
t21 | TIMER21 Reload Value |
Example
This example sets TIMER21 Reload Value to 5000.
INLINE void TIMER21_Select_T2EX | ( | TTIMER21_T2EX_Pxx | pinsel | ) |
sets TIMER21 T2EX Pin
pinsel | Pin select, (uint8)TIMER21_T2EX_Pxy |
Example
This example sets TIMER2 External Input to T21EX_0(P0.2).
INLINE void TIMER21_Select_T2IN | ( | TTIMER21_T2IN_Pxx | pinsel | ) |
sets TIMER21 T2IN Pin
pinsel | Pin select, (uint8)TIMER21_T2IN_Pxy |
Example
This example sets TIMER2 Input to T21_1(P1.1).
sets TIMER21 reload value
value | reload value in ticks |
Example
This example sets TIMER21 Reload Value to 5000 ticks.
INLINE void TIMER21_Start | ( | void | ) |
starts the TIMER21 by software
Example
This example starts the TIMER21 by software.
INLINE void TIMER21_Stop | ( | void | ) |
stops the TIMER21 by software
Example
This example stops and reset TIMER21 by software.
INLINE void TIMER21_UpDownCount_Dis | ( | void | ) |
Disables Up/Down Counter for TIMER21.
Example
This example starts Up Counter once TR2 is set and External Control was disabled.
INLINE void TIMER21_UpDownCount_En | ( | void | ) |
enables Up/Down Counter for TIMER21.
Example
This example enables Up/Down Counter for TIMER21.
reads the TIMER21 count value
Example
This example reads the TIMER21 count value.
Sets TIMER21 Value.
t21 | TIMER21 Value |
Example
This example sets TIMER21 Value to 5000.
reads the TIMER2 capture value
Example
This example reads the TIMER2 capture value.
INLINE void TIMER2_Clear_Count | ( | void | ) |
clears the TIMER2 count value
Example
This example stops and reset TIMER2 by software.
INLINE void TIMER2_Clk_Prescaler_Dis | ( | void | ) |
disables TIMER2 clock prescaler.
Example
This example disables TIMER2 clock prescaler.
INLINE void TIMER2_Clk_Prescaler_En | ( | void | ) |
enables TIMER2 clock prescaler.
Example
This example enables TIMER2 clock prescaler.
reads TIMER2 clock prescaler.
Example
This example reads TIMER2 clock prescaler.
sets TIMER2 clock prescaler.
Example
This example sets TIMER2 clock prescaler to DIV2.
INLINE void TIMER2_External_Int_Clr | ( | void | ) |
Clears TIMER2 External Interrupt flag.
Example
This example treats the TIMER2 External Interrupt.
INLINE void TIMER2_External_Int_Dis | ( | void | ) |
Disables TIMER2 External Interrupt.
Example
This example treats the TIMER2 External Interrupt.
INLINE void TIMER2_External_Int_En | ( | void | ) |
Enables TIMER2 External Interrupt.
Example
This example treats the TIMER2 External Interrupt.
reads TIMER2 External Status.
Example
This example checks the TIMER2 External Status.
INLINE void TIMER2_ExternalCtrl_Dis | ( | void | ) |
disables TIMER2 External Control.
Example
This example reads TIMER2 External Status while External control is disabled.
INLINE void TIMER2_ExternalCtrl_En | ( | void | ) |
enables TIMER2 External Control.
Example
This example checks the TIMER2 External Status.
INLINE void TIMER2_ExtStart | ( | void | ) |
prepares TIMER2 to be started externally
Example
This example sets Rising Edge to External Start.
INLINE void TIMER2_ExtStart_FallingEdge_Set | ( | void | ) |
sets Falling Edge to External Start for TIMER2.
Example
This example sets Falling Edge to External Start.
INLINE void TIMER2_ExtStart_RisingEdge_Set | ( | void | ) |
sets Rising Edge to External Start for TIMER2.
Example
This example sets Rising Edge to External Start.
INLINE void TIMER2_ExtStop | ( | void | ) |
disable TIMER2 to be started externally
Example
This example sets Rising Edge to External Start.
reads the TIMER2 capture value
Example
This example reads the TIMER2 capture value.
reads the TIMER2 count value
Example
This example reads the TIMER2 count value.
void TIMER2_Init | ( | void | ) |
Initializes the Timer2 module based on the Config Wizard for MOTIX MCU configuration.
Initializes the TIMER2 in Reload Mode.
timer_interval_us | timer interval in microseconds |
TRUE | setup done |
FALSE | setup failed |
Example
This example Initializes the TIMER2 in Reload Mode with timer equals to 5000 us.
INLINE void TIMER2_Mode_Capture_Set | ( | void | ) |
Selects Capture Mode for TIMER2.
Example
This example enters 16-bit Capture Mode.
INLINE void TIMER2_Mode_Counter_Set | ( | void | ) |
Selects Mode Counter for TIMER2.
Example
This example sets the Mode Counter.
INLINE void TIMER2_Mode_Reload_Set | ( | void | ) |
Selects Reload Mode for TIMER2.
Example
This example enters Auto-Reload Mode.
INLINE void TIMER2_Mode_Timer_Set | ( | void | ) |
Selects Mode Timer for TIMER2.
Example
This example sets the Mode Timer.
INLINE void TIMER2_Overflow_Int_Clr | ( | void | ) |
Clears TIMER2 Overflow Interrupt flag.
Example
This example treats the TIMER2 Overflow Interrupt.
INLINE void TIMER2_Overflow_Int_Dis | ( | void | ) |
Disables TIMER2 Overflow Interrupt.
Example
This example treats the TIMER2 Overflow Interrupt.
INLINE void TIMER2_Overflow_Int_En | ( | void | ) |
Enables TIMER2 Overflow Interrupt.
Example
This example treats the TIMER2 Overflow Interrupt.
reads TIMER2 Overflow Status.
Example
This example checks the TIMER2 Overflow Status.
INLINE void TIMER2_Reload_Capture_FallingEdge_Set | ( | void | ) |
sets Falling Edge to Capture/Reload Mode for TIMER2.
Example
This example sets Falling Edge to Capture/Reload Mode.
INLINE void TIMER2_Reload_Capture_RisingEdge_Set | ( | void | ) |
sets Rising Edge to Capture/Reload Mode for TIMER2.
Example
This example sets Rising Edge to Capture/Reload Mode.
Sets TIMER2 Reload Value.
t2 | TIMER2 Reload Value |
Example
This example sets TIMER2 Reload Value to 5000.
INLINE void TIMER2_Select_T2EX | ( | TTIMER2_T2EX_Pxx | pinsel | ) |
sets TIMER2 T2EX Pin
pinsel | Pin select, (uint8)TIMER2_T2EX_Pxy |
Example
This example sets TIMER2 External Input to T2EX_1(P1.2).
INLINE void TIMER2_Select_T2IN | ( | TTIMER2_T2IN_Pxx | pinsel | ) |
sets TIMER2 T2IN Pin
pinsel | Pin select, (uint8)TIMER2_T2IN_Pxy |
Example
This example sets TIMER2 Input to T2_1(P2.5).
sets TIMER2 reload value
value | reload value in ticks |
Example
This example sets TIMER2 Reload Value to 5000 ticks.
INLINE void TIMER2_Start | ( | void | ) |
starts the TIMER2 by software
Example
This example starts the TIMER2 by software.
INLINE void TIMER2_Stop | ( | void | ) |
stops the TIMER2 by software
Example
This example stops and reset TIMER2 by software.
INLINE void TIMER2_UpDownCount_Dis | ( | void | ) |
Disables Up/Down Counter for TIMER2.
Example
This example starts Up Counter once TR2 is set and External Control was disabled.
INLINE void TIMER2_UpDownCount_En | ( | void | ) |
enables Up/Down Counter for TIMER2.
Example
This example enables Up/Down Counter for TIMER2.
reads the TIMER2 count value
Example
This example reads the TIMER2 count value.
Sets TIMER2 Value.
t2 | TIMER2 Value |
Example
This example sets TIMER2 Value to 5000 ticks.