cancel
Showing results for 
Search instead for 
Did you mean: 

Bluetooth SDK

KeTa_1341526
New Contributor II

Hi,

I have a question about the Timer of CYBT-353027-02 (Chip: CYW20707).

Queries assuming that the APIs of CYW20707 and CYW20706 are the same.

I'm using Modus Tool Box 2.3 / BT SDK 3.1.

 

Looking at the Community below, the minimum resolution when using the "WICED_MILLI_SECONDS_PERIODIC_TIMER" type was 12.5ms.

https://community.cypress.com/t5/WICED-Studio-Bluetooth/Cyw20706-Systick-s-smallest-minimum-timer-re...

I have the following questions:

Q1.

When "WICED_MILLI_SECONDS_PERIODIC_TIMER" is set, is the timeout value of wiced_start_timer set to 12.5ms at the minimum?

In other words, are the values that can be set 12.5 (ms), 25 (ms), 37.5 (ms), 50 (ms) ...?

wiced_result_t wiced_start_timer (wiced_timer_t * p_timer, uint32_t timeout)

Q2.

If Q1 is Yes, if the timeout value of wiced_start_timer is set to 20ms, will it be 12.5ms or 25ms?

 

Best regards,

0 Likes
1 Solution
Owen_Zhang123
Moderator
Moderator

1. Yes, you are correct about the timer.

2. It will calculate the number of sys tick by (val*2)/25. So if you set it to 20ms, the actual timer will be 12.5ms. The timeout value is recommended to set as a multiple of 12.5ms.

View solution in original post

0 Likes
3 Replies
Owen_Zhang123
Moderator
Moderator

1. Yes, you are correct about the timer.

2. It will calculate the number of sys tick by (val*2)/25. So if you set it to 20ms, the actual timer will be 12.5ms. The timeout value is recommended to set as a multiple of 12.5ms.

View solution in original post

0 Likes
UK_1207
New Contributor

Is there any way to create a 20ms timer with MODUSTOOLBOX?

0 Likes
Owen_Zhang123
Moderator
Moderator

No, it is not possible to have a 20ms timer while the minimum resolution is 12.5ms.

You may use other devices such as CYW20719, CYW20735 or CYW20819. 

0 Likes