About Timer of CYW20706

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
KeTa_1341526
Level 5
Level 5
Distributor - TED (Japan)
10 likes given 10 likes received 5 likes given

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
Moderator
5 questions asked 500 solutions authored 250 sign-ins

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
Moderator
5 questions asked 500 solutions authored 250 sign-ins

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.

0 Likes
UK_1207
Level 1
Level 1
First reply posted Welcome!

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

0 Likes

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