You are here

RTC_Battery backup | Cypress Semiconductor

RTC_Battery backup

Summary: 13 Replies, Latest post by U2 on 02 May 2011 09:56 AM PDT
Verified Answers: 1
Last post
Log in to post new comments.
viji's picture
User
19 posts

hi,

In PSOC3 RTC, what kind of battery should be used for retaining the time and date, and to free run the RTC insided PSOC3,,

I have seen in other comany SoC chips,, they have seapate pins for connecting batteries for RTC, which is inbuilt inside the SoC... pls give a solution for this....

 

U2
uday's picture
Cypress Employee
569 posts
  • For RTC is an independent block inside PSoC device. For RTC to be functional the chip needs to be powered the usual way(via the supply pins, Vddd, Vdda). However to have the RTC functioning continuosuly and reduce powere consumption, the device can be put to sleep.
  • The example project available here demonstrates the same, http://www.cypress.com/?rID=38727
  • With properly designed board to reduce leakages etc, it is possible to have the RTC functioning in sleep mode with 1uA current consumption.

 

 

viji's picture
User
19 posts

thanks for the suggestions uday,, actually i want to know if the main supply goes off how can i still make function the RTC, whether shall i use a coin size battery .. or anyother battery can  be used.. in the development kit, a 9v battery provision is there,,, in real time field conditions, which battery can be suggested,, please tell me...

U2
uday's picture
Cypress Employee
569 posts

The RTC in sleep mode consumes about 1 uA, that means PSoC3 with RTC can operate on a coin cell in sleep mode. However when the device comes out of sleep mode, a coin cell may not be able to provide sufficient current. So you may have to switch the power source to have PSoC operational in active mode.

viji's picture
User
19 posts

actually i am not getting any idea with the earlier responses,, my requirement is like this, external power source will be regularly supplying the power to VDDD and VDDIO pins,, with that  RTC will run continously, if suddenly the power goes off,  the firmware will not run and the RTC will not work,, so i need to use the main power supply and if power goes off i should have some battery power to run atleast the RTC, and if the power comes again the RTC and the firmware should run...

U2
uday's picture
Cypress Employee
569 posts

In PSoC3/PSoC5 there are no dedicated pins to supply the RTC. The RTC is an independent hardware block, it does not need any firmware involvement other than the initialisation code for it to operate. If the chip is powered down, the entire chip operation including the RTC stops. Hence a possible implementation might be to have dual supply, one from the main supply and another from a battery that can drive the RTC. When the main power goes of the dual supply should be able to switch to the battery and PSoC3 can enter sleep mode to reduce power requirement and run on the battery.

-U2

viji's picture
User
19 posts

I was trying to implement my application with both external and battery power supply, for retaining the RTC parameters. i am not able to implement the BOOST CONVERTER LOGIC,, SO CAN U GIVE me SOME application notes for  implementing the boost converter logic, and if available please give me some code examples or design documents. i am working with the CY8CKIT-009 development kit....

 

U2
uday's picture
Cypress Employee
569 posts

Hi,

We are working an Application Note that details the Boost Converter configuration, Component selection etc. At the moment TRM is the reference manual you can use to learn about the Boost Converter. However following are the steps that you normally need to do to get your Boost converter working:

  1. Place a Boost converter component on your TopDesign, configure the component for appropriate input voltage(voltage from your battery), output voltage desirable from Boost and switching frequency.
  2. Hardware changes needed on CY8C38 Family processor module(CY8CKIT-009):
  • Place R6,R7,R14,R15,R16,R17,R38. All the resistors are zero ohm resistors(it can be a simple solder bubble as well).
  • The inductor and necessary bypass capacitors are already placed on the processor module.
  • Make sure that R37 and R43 are in place. Refer to the Processor module schematic that shows the same.
  • Connect the battery to between Vbat and VSSD terminal

Your Boost should work with these changes.

viji's picture
User
19 posts

according to your suggestions i have tried, the boost converter logic is working fine..now please suggest some circuitry for the switching the powersupply from primary(main) to the battery... actually i have searched some ICs which have voltage monitor and back battery options.. but the battery is of 5V.. which is not available and costly also... and we planned to use 1.8v battery to keep the psoc is sleep mode with the help of boost converter.... we need to switch the main powersupply to battery very fastly.. so please suggest some circuitry for switching the powersupply to battery when main power supply is off...

user_114239718's picture
User
23 posts

Based on my understanding of the question here, might I suggest some scenarios that might help.

1) You can use both the mains supply and battery supply isolated using schotky diodes. Of course you would lose some of the voltage dropping on the diodes but you can always desing your supplies accordingly

2) If you want the boost to be used to boost up the battery voltage, you might as well use the boost for a battery input while connecting the boost output to Vdds through a diode. the Vdds can also have a direct connection to the mains supply. The diode would ensure the mains doesnot back power the boost output.

3) There is also something interesting that can be done. You would use bigger bulk capacitors from the main supply side. This would delay the voltage dropping quickly when the voltage fails. then you can use the low voltage detecet to enable the boost convertor from the battery side. But even here the isolation using diodes is required.

 

viji's picture
User
19 posts

Thanks for ur suggestions, i understood ur suggestions and to implement that, please provide me the information for the threshold voltage used for detecting the low voltage in psoc3, for changing the main power supply to battery supply. please suggest me a voltage supervisor IC, which will suite to our requirement.  we are giving 5V and 3.3V for the I/O  and the psoc3 device operation...

waiting for ur reply soon....

Log in to post new comments.