- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello all,
I am doing one project which has controller of cy8c3244pvi-133
I am doing one application where I am using boost converter and sleep mode.
my boost converter works fine if I dont put it in standby mode while entering controller into sleep mode. It works for for Vbat of 1V
but when I put boost converter to sleep mode then I doesnt work for input battery voltage of 2.5V
I am writing following sequence:
BoostConv_Stop();
CyDelay(1);
CyPmSaveClocks();
CyDelay(1);
BoostConv_SetMode(BoostConv_BOOSTMODE_STANDBY);
// Entry SLEEP i.e lowest power mode
CyPmSleep(PM_SLEEP_TIME_NONE, PM_SLEEP_SRC_PICU);
CyDelayUs(30);
BoostConv_SetMode(BoostConv_BOOSTMODE_ACTIVE);
CyDelay(1);
BoostConv_Start();
CyDelay(1);
BoostConv_SelExtClk(BoostConv__EXTCLK_ILO);
CyDelay(1);
// Restore clock tree configuration
CyPmRestoreClocks();
CyDelay(1);
please guide me
- Labels:
-
PSoC 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you had a chance to look at this -
http://www.cypress.com/?rID=64554 AN77900
In the TRM there are some notes in this section "15. Power Supply and Monitoring"
that may be applicable.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What do you mean by "does not work"? Does the PSoC switch off, or what happens?
The API description for Boost_SetMode(STANDBY / SLEEP) explains that in these modes only bandgap and comparator circuitry is active. Maybe this is not what you are expecting? Certainly the code you posted seems to expect that the CPU core runs continously, which doesn't happen in sleep mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,
thanks for reply.
I have read the appnote and using that only I have written the code.
if I dont use standby then My booster is generating 3.3v from 1V. but I will not be able to save the power in sleep mode as some amount of current is consumed by booster.
If I use standby then my booster doesnt work i.e it doesnt generate 3.3V from 1V. but I am able to save the power in sleep mode.
while waking up I use wakeup staement for booster but still it is not working.
In data sheet, it is mentioned that to work booster with standby and auto thump mode properly we require external crystal oscillator of 32KHZ. what does that mean? do I have to place ECO externally? is it necessary?
Please guide.
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
On restart the boost converter goes to 1.8 V, don't you have to re-issue a
BoostConv_SelVoltage() , otherwise there is no boost required ?
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,
thanks for reply.
I set voltage of boostconverter.
but still it is not working for lesser voltage.
please guide
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Will you please upload your complete (reduced) project here, so that we all can have a look at your settings and your actual code. To do so, use Creator -> File -> Create Workspace Bundle (minimal) and then upload the resulting archive here.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe have a look at the PSoC5 (or PSoC3) TRM (technical reference manual). There the operation of the boost converter is described in more detail.
Especially it explains that the boost converter is normall not active in sleep / standby mode (it could be set to be, but its not recommened). It can provide some power to the MCU core, but for that the 32kHz crystal is needed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I connected crystal externally but still no luck.
I am attaching controller.c which has power save function.
and settings for booster
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have connected crystal of 32.768KHZ at pin 45 and 44 of CY8C3244pvi-133
is it correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Forgot the C?
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
still no luck.
If I dont put boost converter to sleep then it works fine i.e at 1V also it can generate voltage = 3.3V
but if I put to sleep mode, boost converter is not able to work at even 2V i.e it cannot generate 3.3V from 2V
please guide
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you have a look at the TRM? It explains that the boost converter is switched off in standby mode. When "Automatic Thump Mode" is switched on, the 32kHz crystal is used to generat 1µs pulses when the output voltage is less than the configured value. Please look also in the register TRM. You probably need to configure BOOST_CR0 and BOOST_CR4 (but this should be available in the API as AutoThump - AN77900 and the BoostConv module data sheet explain more about this).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regarding the 32kHz crystal oscillator: I had a nice email conversation with Cypress and learned that there is a whole AppNote about that: AN54439. Maybe that helps a little bit. Max from Cypress also promised to extend the sleep-mode-AppNote to extend the part about using the boost converter in sleep mode.