PCF85053A Bootable CPU RTC with two I2C buses

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PCF85053A Bootable CPU RTC with two I2C buses

1,765 Views
ninja_hathori
Contributor I

Hi all,
I am using PCF85053a rtc in our project,
one control bit TWO, have power to control the time write access from secondary i2c,
when removing cr2032 control bit TWO reg move to zero,
do this reg move back zero when power cut happen in rtc or only after removing cr2032 battery, attached the datasheet ...
when primary system taking control over rtc , it makes control bit TWO as 1 and it should never go back until or unless cr2032 is not removed and added, but i am observing very suspicious behavior with the control bit TWO reg, why sometimes it moves back 0

0 Kudos
Reply
3 Replies

1,573 Views
ninja_hathori
Contributor I

Hi Erika, 
Thanks for the response, I am asking about the behaviour of the TWO reg in control bit, highlighted in the attachment, 
when primary i2c set the time, it takes ownership of rtc module and make TWO bit 1, 

my question is when this TWO bits come to default state zero, 
case 1: when rtc coin cell cr2032 is removed or 
case 2: when rtc power is turn off,

my observation, when I am removing coin cell cr2032 it comes back to zero, 
but sometimes it comes back to zero, with no reason, which allow secondary i2c to set time, we not want this ...

0 Kudos
Reply

1,728 Views
ninja_hathori
Contributor I

Hi Erika, 
Thanks for the response, I am asking about the behaviour of the TWO reg in control bit, highlighted in the attachment, 
when primary i2c set the time, it takes ownership of rtc module and make TWO bit 1, 

my question is when this TWO bits come to default state zero, 
case 1: when rtc coin cell cr2032 is removed or 
case 2: when rtc power is turn off,

my observation, when I am removing coin cell cr2032 it comes back to zero, 
but sometimes it comes back to zero, with no reason, which allow secondary i2c to set time, we not want this ...

0 Kudos
Reply

1,740 Views
ErikaC
NXP TechSupport
NXP TechSupport

Hello,

Could you please share your schematic?


It’s not entirely clear to me. Please note that when the RTC switches to battery mode, the VDD power domain is disabled. This means the I²C interface is ignored, the CLK output is disabled, and the pin goes into high impedance (Hi-Z).
Thanks to the battery, the RTC continues keeping time, but communication is not possible until VDD rises above the threshold again.
Regarding your question: Does the TWO register reset to 0 (default) only when the CR2032 battery is removed, even if VDD is still present?

Regards.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2177465%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EPCF85053A%20Bootable%20CPU%20RTC%20with%20two%20I2C%20buses%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2177465%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20all%2C%3CBR%20%2F%3EI%20am%20using%20PCF85053a%20rtc%20in%20our%20project%2C%3CBR%20%2F%3Eone%20control%20bit%20TWO%2C%20have%20power%20to%20control%20the%20time%20write%20access%20from%20secondary%20i2c%2C%3CBR%20%2F%3Ewhen%20removing%20cr2032%20control%20bit%20TWO%20reg%20move%20to%20zero%2C%3CBR%20%2F%3Edo%20this%20reg%20move%20back%20zero%20when%20power%20cut%20happen%20in%20rtc%20or%20only%20after%20removing%20cr2032%20battery%2C%20attached%20the%20datasheet%20...%3CBR%20%2F%3Ewhen%20primary%20system%20taking%20control%20over%20rtc%20%2C%20it%20makes%20control%20bit%20TWO%20as%201%20and%20it%20should%20never%20go%20back%20until%20or%20unless%20cr2032%20is%20not%20removed%20and%20added%2C%20but%20i%20am%20observing%20very%20suspicious%20behavior%20with%20the%20control%20bit%20TWO%20reg%2C%20why%20sometimes%20it%20moves%20back%200%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2182075%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PCF85053A%20Bootable%20CPU%20RTC%20with%20two%20I2C%20buses%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2182075%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EHi%20Erika%2C%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EThanks%20for%20the%20response%2C%20I%20am%20asking%20about%20the%20behaviour%20of%20the%20TWO%20reg%20in%20control%20bit%2C%20highlighted%20in%20the%20attachment%2C%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3Ewhen%20primary%20i2c%20set%20the%20time%2C%20it%20takes%20ownership%20of%20rtc%20module%20and%20make%20TWO%20bit%201%2C%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3Emy%20question%20is%20when%20this%20TWO%20bits%20come%20to%20default%20state%20zero%2C%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3Ecase%201%3A%20when%20rtc%20coin%20cell%20cr2032%20is%20removed%20or%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3Ecase%202%3A%20when%20rtc%20power%20is%20turn%20off%2C%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3Emy%20observation%2C%20when%20I%20am%20removing%20coin%20cell%20cr2032%20it%20comes%20back%20to%20zero%2C%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3Ebut%20sometimes%20it%20comes%20back%20to%20zero%2C%20with%20no%20reason%2C%20which%20allow%20secondary%20i2c%20to%20set%20time%2C%20we%20not%20want%20this%20...%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2178104%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PCF85053A%20Bootable%20CPU%20RTC%20with%20two%20I2C%20buses%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2178104%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Erika%2C%26nbsp%3B%3CBR%20%2F%3EThanks%20for%20the%20response%2C%20I%20am%20asking%20about%20the%20behaviour%20of%20the%20TWO%20reg%20in%20control%20bit%2C%20highlighted%20in%20the%20attachment%2C%26nbsp%3B%3CBR%20%2F%3Ewhen%20primary%20i2c%20set%20the%20time%2C%20it%20takes%20ownership%20of%20rtc%20module%20and%20make%20TWO%20bit%201%2C%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3Emy%20question%20is%20when%20this%20TWO%20bits%20come%20to%20default%20state%20zero%2C%26nbsp%3B%3CBR%20%2F%3Ecase%201%3A%20when%20rtc%20coin%20cell%20cr2032%20is%20removed%20or%26nbsp%3B%3CBR%20%2F%3Ecase%202%3A%20when%20rtc%20power%20is%20turn%20off%2C%3CBR%20%2F%3E%3CBR%20%2F%3Emy%20observation%2C%20when%20I%20am%20removing%20coin%20cell%20cr2032%20it%20comes%20back%20to%20zero%2C%26nbsp%3B%3CBR%20%2F%3Ebut%20sometimes%20it%20comes%20back%20to%20zero%2C%20with%20no%20reason%2C%20which%20allow%20secondary%20i2c%20to%20set%20time%2C%20we%20not%20want%20this%20...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2177675%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PCF85053A%20Bootable%20CPU%20RTC%20with%20two%20I2C%20buses%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2177675%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3ECould%20you%20please%20share%20your%20schematic%3F%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EIt%E2%80%99s%20not%20entirely%20clear%20to%20me.%20Please%20note%20that%20when%20the%20RTC%20switches%20to%20battery%20mode%2C%20the%20VDD%20power%20domain%20is%20disabled.%20This%20means%20the%20I%C2%B2C%20interface%20is%20ignored%2C%20the%20CLK%20output%20is%20disabled%2C%20and%20the%20pin%20goes%20into%20high%20impedance%20(Hi-Z).%3CBR%20%2F%3EThanks%20to%20the%20battery%2C%20the%20RTC%20continues%20keeping%20time%2C%20but%20communication%20is%20not%20possible%20until%20VDD%20rises%20above%20the%20threshold%20again.%3CBR%20%2F%3ERegarding%20your%20question%3A%20Does%20the%20TWO%20register%20reset%20to%200%20(default)%20only%20when%20the%20CR2032%20battery%20is%20removed%2C%20even%20if%20VDD%20is%20still%20present%3F%3C%2FP%3E%0A%3CP%3ERegards.%3C%2FP%3E%3C%2FLINGO-BODY%3E