- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, I'm refering Code example CE210291, Low Power One Button (CapSense, 4000S)
whether with the CY8CKIT-145-40xx or CY8C4025LQI-S411 Controller, the fastest possible adjustable loop/scan time is 20ms, no matter which time I set at parameter LOOP_TIME_FASTSCANMODE.
Why that?
Many thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Hawk,
Can you let us know how you are checking the loop time? I tried the same and was able to get the loop time to 1ms as well (attaching the project I used here). I toggled a pin to check the scan time and probing the pin helped me check the loop time.
Note that the fast scan mode kicks in only if it detects any CapSense activity - touching the sensor.
Best regards,
Hari
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Hawk,
Can you let us know how you are checking the loop time? I tried the same and was able to get the loop time to 1ms as well (attaching the project I used here). I toggled a pin to check the scan time and probing the pin helped me check the loop time.
Note that the fast scan mode kicks in only if it detects any CapSense activity - touching the sensor.
Best regards,
Hari
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Hari
thanks for your reply.
I also toggled a pin, but at state / case "PROCESS_DATA".
Ok will check your Code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Hawk,
The point of toggling does not have an impact as long as it is called once per loop. Note that the CE is made such that if there is no activity, it goes to slow scan mode, so you need to make sure that you are touching the sensor so that the mode is FASTSCANMODE.
Best regards,
Hari