153 Threads found on edaboard.com: Code For ds1307
can some one find error for this code?
use proteus, keil
Microcontrollers :: 05.08.2006 10:08 :: masud58 :: Replies: 21 :: Views: 10396
need help for my final project can someone teach me about assembly code of ds1307???
thanks..sorry if my english so bad...
Microcontrollers :: 20.12.2007 11:00 :: jandreas :: Replies: 22 :: Views: 7628
Greetings from Mexico
Can you help please with ASM or C code to use the Time Keeper Maxim DS3232 with PIC16F and PIC18F micros.
It is noteworthy that the DS3232 is better, much more accurate, does not require of 32.768 kHz XTAL because it has integrated into the package and is replacing the ds1307. The trouble is that no code on the (...)
Microcontrollers :: 16.10.2009 21:26 :: gatobx :: Replies: 0 :: Views: 1306
can anyone send to me the source code for digital alarm clock with alarm using PIC16f877a,ds1307 and lcd. i also need the schematic diagram for the circuit.i`m using mplab ide..thank you very much.
Microcontrollers :: 23.12.2009 08:18 :: orkhed :: Replies: 5 :: Views: 6054
check this attached code for ds1307 with 8051, and you can modify it according to your needs
hope this will help you
Microcontrollers :: 23.01.2010 07:55 :: bassa :: Replies: 3 :: Views: 1990
can any body send me Hardware I2C C code for 8051 , it will be very use full for me to implement in my project.
Microcontrollers :: 25.02.2010 05:47 :: ramasamy :: Replies: 4 :: Views: 2660
The code are for the microcontroller I can not see the type of microcontroller you have as the pic is two small you could try searching on the web if you can let me no of the microcontroller ifo I will try on the web for you
Added after 37 minutes:
I have found the WEB SITE to download the codes for your di
Hobby Circuits and Small Projects Problems :: 27.05.2010 07:19 :: Rambo55 :: Replies: 3 :: Views: 3060
I need to display only the time on the lcd ..can any one give me the code for this in assembly language. iam using at89s52 microcontroller and ds1307 RTC.
Microcontrollers :: 15.05.2011 15:18 :: vijayji :: Replies: 0 :: Views: 545
I have some knowledge of I2C for atmega series for 8-bit.
I am new to arm controller. I want to interface PCF8563 rtc with Lpc2148 controller. I have read the datasheet, when started writing the code i got stuck. I am using Keil uVision 4 software.
Does anyone have I2C and SPI codes for Lpc2148? please (...)
Microcontrollers :: 07.11.2012 02:02 :: Surender Reddy :: Replies: 6 :: Views: 2179
i have a written code for ds1307 in pic18f46k20 using i2c master mode.
i tried a many code .but it not work?
can i get proper code to read the second ,minute from ds 1307 and write into ds1307?
Electronic Elementary Questions :: 24.06.2013 07:00 :: swapnali :: Replies: 2 :: Views: 606
m41t00 from ST
I2C c code for pic:
Microcontrollers :: 08.10.2003 07:41 :: neuralc :: Replies: 3 :: Views: 1516
Does any one knows that the codeVision for AVR use Hardware or Software I2C in Automatic Program Generator OR its include I2C library?
Like the ds1307 library is using Hardware/Software I2C?
Microcontrollers :: 27.01.2004 07:33 :: sadat007 :: Replies: 4 :: Views: 6105
download the code
for melany newman
code for pic work very well i Just prove
Microcontrollers :: 05.09.2005 22:34 :: un-2000 :: Replies: 3 :: Views: 3748
Have a look at this project:
"How To Build a Talking Time & Temperature Display With The CCS C Compiler"
You can try to use sections of C-code which are relevant to your project ..
Microcontrollers :: 22.11.2005 21:55 :: IanP :: Replies: 3 :: Views: 1461
I am pretty sure the code you already have does exactly what you need .. plus a little bit extra ..
Try to remove sections which send data to LCD and generate alarms ..
Microcontrollers :: 18.09.2006 08:49 :: IanP :: Replies: 4 :: Views: 5552
I am working on a board which has the RTC and working with AT89s52 chip. I downloaded some sample codes from the net for RTC but could get anyting which works.
have any of you come across any RTC code which works?
Embedded Systems and Real-Time OS :: 02.02.2007 04:52 :: adhiteev :: Replies: 18 :: Views: 9040
there are i think over 200 rtc maxim chips
ive personaly written 5 for proteus vsm
some two some three or more wire comms
wtf do you mean help ?? with asm
i think what you wanted to post
" will someone who is also an idiot but knows far more than me
do my donkey work for me
i cant be bothered and just ask
Microcontrollers :: 14.04.2007 17:25 :: VSMVDD :: Replies: 3 :: Views: 1309
hi i'm trying to interface ds1307RTC with PIC16f877. I had done interfacing of ds1307 with 89c51 and was sucessful. i have modified the same code a bit for PIC16f877 but this isn't working i'm unable to find out the problem, please help me.
One thing more, in 89c51 code i had written " unsigned char (...)
Microcontrollers :: 01.06.2007 00:27 :: lats :: Replies: 18 :: Views: 23047
The only changes i made are as below
#define RTC_SDA PIN_B0
#define RTC_SCL PIN_B1
and this is codes
#use delay(clock=48000000) //,RESTART_WDT
#define LCD_RS PIN_D0
#define LCD_RW PIN_D1
Microcontrollers :: 29.06.2008 08:37 :: ahmet2004 :: Replies: 1 :: Views: 2085
I have 2 microcontrolles Atmega16 and Atmega8 connected in I2C configuration.
and RTC ds1307 also sharing I2C connection.
Master is Atmega16 and
remaining two are slaves.
I have done interfacing using I2C between Controller and RTC,bt i dint do for two controllers.ds1307 will have its own address for (...)
Microcontrollers :: 21.07.2009 00:22 :: yviswanathbe :: Replies: 1 :: Views: 1529
Andd...here we have the sponsor......Just posting the code will do nothing. Guess the OP will ask for Complete description of the code, Flow charts, PCB layouts, and project description too. Be ready for that too.
Celebrating with bottles of Champagne...Cheers
Microcontrollers :: 27.10.2010 07:19 :: Neha007 :: Replies: 13 :: Views: 9696
U have developed code for calender using RTC... so now u have to just take data from user using keys...and as per the data entered by user u have to set parameter in RTC...
read RTC continuously and print on LCD...
Microcontrollers :: 08.10.2009 04:17 :: vipul :: Replies: 3 :: Views: 1811
Your SCL and SDA lines for I2C are in PORTC, so if you want to use PORTD, use the software I2C library provided in mikroC. They have a code for RTC in the examples, but they use the PCF8583 RTC instead. Take a look there.
Take a look at the software I2C library and the links I provided. The first one should be very helpful.
Microcontrollers :: 19.01.2010 11:52 :: Tahmid :: Replies: 4 :: Views: 1725
Post #2 is in C, post #3 have ASM code for download
Microcontrollers :: 09.10.2010 15:18 :: The._.One :: Replies: 3 :: Views: 2417
call StartI2C ; Set SSPCON2.SEN
bcf I2C_Ctrl,0 ; set for write Command
movf I2C_Ctrl,W ; Send Slave Address to i2C Bus
movlw 0x00 ; 00H address
movlw B'00000000' ; clk_halt bit disabled
movlw 0x02 ; 02H address 12/24 hrs format
Microcontrollers :: 22.02.2011 09:13 :: durgap :: Replies: 3 :: Views: 888
increment an int in RB0 interrupt service routine. (say count++;)
Then in main program introduce a code to convert the count to corresponding decimal digits and send the ascii of the digits to LCD one by one , from the MSB to LSB. Before that set the LCD cursor position. (say 0x80)
Now i think you can do it...You mean you want the exact code?
Microcontrollers :: 13.05.2011 10:27 :: vinodstanur :: Replies: 7 :: Views: 760
Dear All please assist
following codes for ds1307RTC
it does not work with Real Simulator
MCU is 16f877
ANSEL = 0; // Configure AN pins as digital I/O
ANSELH = 0;
PORTB = 0;
TRISB = 0; // Configure PORTB as output
I2C1_Init(100000); // initialize I2C (...)
Microcontrollers :: 22.05.2011 03:35 :: dayanpad :: Replies: 6 :: Views: 1156
hi. below is my code for interfacing ds1307 with pic16f877 i am using hi-tech with mplab .i am having an issue that i always get 00:00:00 on time and 00/00/2000 on date no matter what value i
initialize the time and date to. this code is part of my fyp and i have been strugling with it for quite a while (...)
Embedded Systems and Real-Time OS :: 14.09.2011 20:48 :: ramxis :: Replies: 1 :: Views: 692
I am a new user...I need to work on a project using 89C51 & DS 1307...
i wanted to know the C code for basic reading and writing into the RTC(DS 1307) as im quite unfamiliar with it..
I need to develop a more complex model with computer interface and stuff...but it wud be great if u cud send me a basic ckt diagram along with the C code (...)
Embedded Systems and Real-Time OS :: 18.09.2011 09:54 :: shabazmondal :: Replies: 8 :: Views: 1941
Try this link Downloads / 8051 Projects / Digital Clock with Alarm Using ds1307 and 8051 (updated) : 8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes
But any way, I think you can do a google search for this..:wink:
Microcontrollers :: 17.10.2011 15:47 :: vinodstanur :: Replies: 2 :: Views: 1911
I am doing a Digital Clock using RTC ds1307 and 89C4051 micro controller.
Time is displayed on LCD and different alarms can be set through 3 switches.
I have written the following code for updating RTC registers first time. Only minutes code is shown
Microcontrollers :: 22.09.2012 12:12 :: yviswanathbe :: Replies: 3 :: Views: 721
Can we see your DSN file and source code? hope you are using 16f877a MCU
Microcontrollers :: 01.10.2012 03:16 :: PA3040 :: Replies: 4 :: Views: 427
Here are the files.
rename the file dataloggerpic18f4550.rar to dataloggerpic18f4550.dsn
rename the file 4550 rtc.rar to 4550 rtc.hex
Here is the mikroC code.
#define ds1307 0xD0
// LCD module connections
sbit LCD_RS at LATD0_bit;
sbit LCD_EN at LATD1_bit;
sbit LCD_D4 at LATD2_
Microcontrollers :: 01.11.2012 01:12 :: internetuser2k12 :: Replies: 3 :: Views: 626
I have attached a simulation video of rtc ds1307. The proteus simulation of rtc runs without connecting the i2c debugger.
Can somebody provide the code for it either in mikroC or Hi-Tech C format. I tried many examples, but they all work only if i2c debugger is connected in proteus. They all work fine in real (...)
Microcontrollers :: 05.11.2012 07:09 :: internetuser2k12 :: Replies: 6 :: Views: 824
Find the attached code files for ds1307 RTC IC and I2C interface for pic18f252. It is written in Hitech PICC. To use change the extensions, headers and include files. Enjoy!
Embedded Systems and Real-Time OS :: 12.04.2013 06:42 :: babar_ali :: Replies: 3 :: Views: 514
here i have a problem - how data write and read in rtc (ds1304) . micro controller is at89s52 is used... how can i write and read data from ds1307 .? and is there any assembly code for it...
Microcontrollers :: 18.07.2013 04:58 :: jaga123 :: Replies: 0 :: Views: 360
You cannot get the ready made code here. People here just help you out where you face difficulty.
Embedded Systems and Real-Time OS :: 19.08.2013 02:42 :: errakeshpillai :: Replies: 1 :: Views: 533
You can download the PIC source code book from below link
Have fun !
Microcontrollers :: 20.12.2004 23:19 :: feiutm9898 :: Replies: 5 :: Views: 1931
you can find a lot of code examples (for Hi-Tech C) here:
Microcontrollers :: 19.03.2005 00:17 :: C-Man :: Replies: 6 :: Views: 2304
My ET-ROBOT 877 use 16F877 Available USD $110.00 , If you interesting please contact me .
? Includes Microchip PIC16F877 Microcontroller with 8kb internal Flash Program Memory
? Solid Anodized Aluminium Base for Strength and Light Weight
? 2 DC Motors Installed, for turning and forward/reverse motion
? LCD Installed (2x16 (...)
Microcontrollers :: 07.05.2005 06:07 :: nooknikz :: Replies: 5 :: Views: 775
search at maxim-ic and find AN of this IC, they will include schematic and code.
Professional Hardware and Electronics Design :: 12.10.2005 22:02 :: khongai :: Replies: 3 :: Views: 2986
I need C code of I2C bus for LPC2138
Microcontrollers :: 19.02.2006 02:18 :: ramasamy :: Replies: 7 :: Views: 4827
Please give me information about I2C protocol and programming examples for ds1307 and EEPROM 1024 in assembly language.
The IIC code is inthe topic have uploaded the ds1307 IIC communication code in ASM.
Regarding IIC protocol, please read an
Microcontrollers :: 04.05.2006 03:32 :: ravimarcus :: Replies: 5 :: Views: 1091
I would ignore what is in the registers by default and init them to some arbitrary value that results in somtlhing like jan 1 2000. If your clock keeps time when the device is off (via battery) you can store a known byte to an EPROM location when you run the "first time int" code. That keeps you from clobbering a real time value.
Microcontrollers :: 05.01.2007 18:05 :: 3v0 :: Replies: 1 :: Views: 1427
i'm working on project creating datalogger using AVR ATMega8535, i using RTC ds1307 conect to AVR : SDA --> PB0, SCL --> PB1 for time stamp and store log data using EEPROM 24C256 , code for RTC i create using CVAVR that have built in code to run RTC ds1307 and it works, but (...)
Microcontrollers :: 29.07.2007 03:45 :: end :: Replies: 2 :: Views: 6380
you can write you own code to get the system time and date ... and then this data can be outputed to the serial port using any language like c.
Microcontrollers :: 08.11.2007 01:22 :: abaidullah :: Replies: 2 :: Views: 828
ds1307 is real time IC with I2C protocol
hi,I haven't used PIC to control it yet.But I have use AT89Sxx to control it. here are my code. hope it helpfull to you
sbit SDA = P1^0;
sbit SCL = P1^1;
Microcontrollers :: 04.12.2007 05:11 :: hbaocr :: Replies: 29 :: Views: 19210
the at24c256 is working properly the only error that i get is that after sometimes(about 2 or 3 weeks) the CH bit will be disabled (tie to 1) and i don`t know why? i use bascom to write code for my atmega16 and i defined i2cdelay=10 (100khz clock) for ds1307 data transfer and i2cdelay=1(400khz) for at24c256 (...)
Microcontrollers :: 21.01.2008 03:42 :: omid_juve :: Replies: 6 :: Views: 3020
i am using RTC ds1307 and EEPROM AT24C02 - both are sharing same I2C lines.
so how can i differentiate them in codeing and data transferring.??
Microcontrollers :: 06.02.2008 01:03 :: H_D_R :: Replies: 50 :: Views: 11633
well, i'm a little confuse about how to set the real time in rtc by assembly code that i want.... 'coz from i read , we have to set the time before we use ds1307... If someone has the code, could you show it in this topic?? it will great if commented...thank you
Microcontrollers :: 27.02.2008 05:52 :: jandreas :: Replies: 69 :: Views: 6969