- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a power button which cause interrupt and wakesup the system from Deep Sleep.
I would like to add, even only when the system is on (not a sleep), sort kind of filter, Debouncer or even just the D-FF the filter noise.
the problem is that those components require a clock and when I tried to add it even with Control Register which is initialized to transfer the signal from the
Solved! Go to Solution.
- Labels:
-
PSoC Creator & Designer Software
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tamir,
When you are in Deep Sleep mode, the clocks are turned off except for the LCO. Additionally the UDB blocks are turned off as well. Having these elements on would consume significant current <100uA but > 10uA.
The HW RC filter mentioned by Ganesh is a good solution.
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I guess some part of the statement is missing here: "the problem is that those components require a clock and when I tried to add it even with Control Register which is initialized to transfer the signal from the"
You can use the Debounce component if your device supports UDBs. Please go through the project from the link below:
https://www.cypress.com/documentation/code-examples/ce224719-psoc-4-debouncer-and-glitch-filter
If your end application has enough place on the PCB, you can connect a simple RC filter on the PCB that sufficiently filters the noise.
Please update if you need more information.
Thanks
Ganesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tamir,
When you are in Deep Sleep mode, the clocks are turned off except for the LCO. Additionally the UDB blocks are turned off as well. Having these elements on would consume significant current <100uA but > 10uA.
The HW RC filter mentioned by Ganesh is a good solution.
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
thanks for the reply.
i have tried the debounce but then the interrupt isn't being triggered by the power button when the system is on deep sleep mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tamir,
In Deep Sleep (DS) mode, only certain input Pins are able to wakeup the CPU.
See section:
3.3 Low-Voltage Interrupts in PSoC Sleep Mode
Additionally the DFF you are using is functionally disabled in DS mode.
See the following link:
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks.
Unfortunately, it's impossible for me to add HW RC Filter (existing boards already at the costumer), I have tried to think of a way to workaround it.
I now understand it's probably impossible.