Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Event which takes place after one year in microcontroller

Status
Not open for further replies.

vamanan

Full Member level 2
Joined
Aug 9, 2005
Messages
135
Helped
10
Reputation
20
Reaction score
4
Trophy points
1,298
Location
India the Great
Activity points
2,286
Hi All,
I am using PIC microcontroller for certain design with I2C RTC interface. SOme event will take place after one year. Microcontroller will do certain operation after one year is over. I tuned the crystal and did certain compensation for the frequency correction. How can I know the micon do the operation will do the event which will be taking place after one year or not ?. Is there any mechanism like accelerated testing ?
Advance Thanx.
 

BlackOps

Full Member level 5
Joined
Jan 1, 2005
Messages
280
Helped
14
Reputation
28
Reaction score
3
Trophy points
1,298
Location
AZERBAIJAN
Activity points
2,496
what if u place a piece of code in that event routine which turns on certain Pin on any PORT. and then simulate this program in MPLAB SIM, and set significantly increase crystal frequency in Debug menu? and dont forget to set maximum buffer size on same window, check it... maybe it will help, but i am not sure about one year..
 

VVV

Advanced Member level 5
Joined
Nov 26, 2004
Messages
1,582
Helped
384
Reputation
768
Reaction score
87
Trophy points
1,328
Activity points
19,971
Re: Event which takes place after one year in microcontrolle

Change the contents of the counters you use to get the 1-year delay.
Test at all rollover points to be sure.
 

blueroomelectronics

Advanced Member level 5
Joined
Sep 17, 2006
Messages
1,686
Helped
179
Reputation
356
Reaction score
77
Trophy points
1,328
Location
Toronto, Canada
Activity points
8,700
No matter how carefully you calibrate there's a good chance it will drift over the course of a year. How are you powering it?
 

irfansyah

Advanced Member level 4
Joined
Dec 29, 2004
Messages
106
Helped
9
Reputation
18
Reaction score
1
Trophy points
1,298
Location
New South Wales
Activity points
1,128
Re: Event which takes place after one year in microcontrolle

Interesting point there. Hey, what about those RTC chips? Are they accurate?
 

blueroomelectronics

Advanced Member level 5
Joined
Sep 17, 2006
Messages
1,686
Helped
179
Reputation
356
Reaction score
77
Trophy points
1,328
Location
Toronto, Canada
Activity points
8,700

penoy_balut

Full Member level 2
Joined
Sep 8, 2007
Messages
148
Helped
26
Reputation
52
Reaction score
10
Trophy points
1,298
Activity points
1,943
Re: Event which takes place after one year in microcontrolle

vamanan said:
Hi All,
I am using PIC microcontroller for certain design with I2C RTC interface. SOme event will take place after one year. Microcontroller will do certain operation after one year is over. I tuned the crystal and did certain compensation for the frequency correction. How can I know the micon do the operation will do the event which will be taking place after one year or not ?. Is there any mechanism like accelerated testing ?
Advance Thanx.

Replace RTC crystal with higher frequency, say Mhz range, so one year will occur in minutes, you will now know if that event will take place after one year.
 

creative_35

Full Member level 1
Joined
Apr 10, 2006
Messages
95
Helped
9
Reputation
18
Reaction score
3
Trophy points
1,288
Location
Under Mango Tree
Activity points
2,031
Re: Event which takes place after one year in microcontrolle

penoy_balut said:
Replace RTC crystal with higher frequency, say Mhz range, so one year will occur in minutes, you will now know if that event will take place after one year.

I don't think it's possible by changing crystel with one higher range. because RTC is using I2C to communicate with an external device and I2C communication is strictly frequency related. am i right?
 

sn_burki

Full Member level 5
Joined
Feb 18, 2003
Messages
260
Helped
16
Reputation
32
Reaction score
11
Trophy points
1,298
Location
Pakistan
Activity points
1,623
Re: Event which takes place after one year in microcontrolle

creative_35,,, Yes you are very right that RTC frequency can not be increase at the number level or can not be so increase that it brings an event of a year in just few minutes. the only way i think is to change the coding containts.

regards.
 

penoy_balut

Full Member level 2
Joined
Sep 8, 2007
Messages
148
Helped
26
Reputation
52
Reaction score
10
Trophy points
1,298
Activity points
1,943
It's the master that initiates and clocks communication in I2C not the RTC, changing crystal frequency has no effect on I2C.

Another option would be to set your time and date several hours or minutes before that programmed event.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top