- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I want to check Timer_1 component's state before re-enabling it again.
I find "Timer_1_ReadControlRegister();" but I dont know how to write code to check this enabling bit.
Any idea ?
Thanks so much !!
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Indeed to see if the timer is software enabled you will need to read back the control register.
On Creator Start page you will see an entry "Find Code Example" there you will get timer examples.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Controlling the timer is done with a control register, to see what the state is you better use ReadStatusRegister(). Take care, some of the status bits are clear-on-read, so there is no second chance 😉
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How could I see if Timer_1 is enabled or stop state ? Any code example ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Indeed to see if the timer is software enabled you will need to read back the control register.
On Creator Start page you will see an entry "Find Code Example" there you will get timer examples.
Bob