Is there any reason why you do not trust into the datasheets?
For nearly each module there is a start() function, and some have additional power-saving states which you can send them into with the sleep() APIs.
For the time being, I don't have any components in the Schematic (i.e. the Schematic is blank).
I just compiled that to have the source codes.
Yes, I do know that each components have a <comp_name>_[Start|Stop]() function. I will take that into account when the Schematic is populated in the future.
But just for the time being, I was thinking of how to turn off everything else. For example, if I had only one DelSig ADC in the Schematic, I would like to turn off the CPU, UDB, Flash, etc. and leave only the DelSig ADC running with the necessary resources (clocks, etc.).
They did mention that the CPU can be stopped. Is that using the low-power modes?
Use CyHalt() API, it executes a BKPT-instruction.
Thanks, I'll try and see if I could get any more results. I'll keep this thread updated when I get one.
I've fixed my problems for this one. It turns out that there are APIs for turning off components like clocks, etc.
But I have one weird remark.
When I try to turn off certain components that is not used in the design (for example, the analog routing pump) using its API, the global consumption increases. And when I comment or delete this line of code in the main, the consumption falls back down.
Any ideas why that is so?
You might consider posting a CASE on this and when you get answer
posting back on forum for everyone -
To create a technical case at Cypress -
“Create a Case”
You have to be registered on Cypress web site first.