Author |
Message |
Topic: ds1307 time is automatically decreasing |
nisha
Replies: 9
Views: 11405
|
Forum: General CCS C Discussion Posted: Thu Oct 25, 2012 4:56 am Subject: ds1307 time is automatically decreasing |
i am using square wave op of my ds whose freq is 1 hz, which is connected to the RB0 pin of my pic controller,
means i am using external interrupt, which will read data after every 1 sec.. |
Topic: ds1307 time is automatically decreasing |
nisha
Replies: 9
Views: 11405
|
Forum: General CCS C Discussion Posted: Thu Oct 25, 2012 4:50 am Subject: ds1307 time is automatically decreasing |
This is my Main program, please tell me where is the mistake. I changed my crystal from 4 to 20 Mhz of PIC.
#include <16f877A.h>
#FUSES NOWDT, HS, NOPUT, PROTECT, NODEBUG, NOBROWNOUT, NOLVP ... |
Topic: ds1307 time is automatically decreasing |
nisha
Replies: 9
Views: 11405
|
Forum: General CCS C Discussion Posted: Thu Oct 25, 2012 4:50 am Subject: ds1307 time is automatically decreasing |
And this is my driver file
#define RTC_SDA PIN_C4
#define RTC_SCL PIN_C3
#use i2c(master, sda=RTC_SDA, scl=RTC_SCL)
BYTE bin2bcd(BYTE binary_value);
BYTE bcd2bin(BYTE ... |
Topic: ds1307 time is automatically decreasing |
nisha
Replies: 9
Views: 11405
|
Forum: General CCS C Discussion Posted: Thu Oct 25, 2012 1:14 am Subject: ds1307 time is automatically decreasing |
i m using 32.768khz crystal, for ds1307. yes but i have not connected 12pf cap to my crystal..i searched for ckt diagram on net, there 12pf was connected. is it necessary..
And i m not using breadb ... |
Topic: ds1307 time is automatically decreasing |
nisha
Replies: 9
Views: 11405
|
Forum: General CCS C Discussion Posted: Mon Oct 22, 2012 3:47 am Subject: ds1307 time is automatically decreasing |
I'm using ds1307 interfaced with pic16f877a. My code is working but the problem is, if I'm continuously keeping it on, the time goes on reducing. Say after 10 to 15 min it will decrease by 1 sec, whic ... |
Topic: Enable 12 hr format of DS1307 using PIC16f887A |
nisha
Replies: 11
Views: 20250
|
Forum: General CCS C Discussion Posted: Sat Oct 20, 2012 5:51 am Subject: Enable 12 hr format of DS1307 using PIC16f887A |
i m using ds1307 interfaced with pic16f877a, my code is working but the problem is, if i m continuously keeping it on, the time goes on reducing. say after 5 min it will decrease by 1 sec, will may cr ... |
|