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: 9966
need help for my final project can someone teach me about assembly code of ds1307???If you are looking for the code to interface PICmicro with ds1307, here it is.
Microcontrollers :: 21.12.2007 01:28 :: ravimarcus :: Replies: 22 :: Views: 7189
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: 1172
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: 5502
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: 1805
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: 3 :: Views: 2377
Sir iam sending the circuit diagram of digital alrm clock using ds 1307. but i require code for this please send me the
Hobby Circuits and Small Projects Problems :: 27.05.2010 06:07 :: naga402 :: Replies: 3 :: Views: 2692
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: 431
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 (...)
Embedded Systems and Real-Time OS :: 07.11.2012 02:02 :: Surender Reddy :: Replies: 6 :: Views: 1591
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: 384
m41t00 from ST
I2C c code for pic:
Microcontrollers :: 08.10.2003 07:41 :: neuralc :: Replies: 3 :: Views: 1396
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: 5790
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: 3415
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: 1356
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: 5131
for ds1307, the exact code of 24C0x (the I2C eeprom) works perfectly. Both are I2C devices.
Embedded Systems and Real-Time OS :: 02.02.2007 06:59 :: techie :: Replies: 18 :: Views: 8657
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: 1173
i have this code for ds1302 with pic16f876, wich is a part of a led moving sign, for real time clock, i give as is. excuse my english, i can't give more details caus my bad english.hope that help.
Microcontrollers :: 02.07.2007 14:40 :: beny :: Replies: 18 :: Views: 21939
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: 1700
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: 1361
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: 8749
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: 1693
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: 1573
Post #2 is in C, post #3 have ASM code for download
Microcontrollers :: 09.10.2010 15:18 :: The._.One :: Replies: 3 :: Views: 2046
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: 773
I have count encoder pulse on interrupt RB0 here.
You may change RB0 input to count push button pressed.
Microcontrollers :: 13.05.2011 13:10 :: engshahrul :: Replies: 7 :: Views: 658
It' looks to me like a simulator problem, but don't use mikroC and thus can't further check the behaviour of your code.
Microcontrollers :: 29.05.2011 04:24 :: FvM :: Replies: 6 :: Views: 1001
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: 600
The pdf file was gr8...but i have read all that in the data sheet....can i get the complete C code...???
what you are asking?? I did'nt understand...You want complete C code??
Embedded Systems and Real-Time OS :: 19.09.2011 13:38 :: navenmou :: Replies: 8 :: Views: 1741
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: 1537
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: 541
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: 351
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: 499
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: 665
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: 309
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: 186
I am using AT89s52.I want to interface RFID,AT24C08,ds1307,LCD,with serial communication to pc.The problem is how to interface all components single program. RF Tag number stored in AT24C08. Please help me. project sumission last date is monday.(19/8/13) pls send the code for me.
Embedded Systems and Real-Time OS :: 16.08.2013 14:42 :: Buvan :: Replies: 1 :: Views: 288
You can download the PIC source code book from below link
Have fun !
Microcontrollers :: 20.12.2004 23:19 :: feiutm9898 :: Replies: 5 :: Views: 1801
you can find a lot of code examples (for Hi-Tech C) here:
Microcontrollers :: 19.03.2005 00:17 :: C-Man :: Replies: 6 :: Views: 2108
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: 708
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: 2837
I used the LPC2148 and 8 PCA9555 using this code. Everything nice except StopI2C function. It needs to change, on the hand sometimes it waits forever.
I20CONSET = STO;
I20CONCLR = SIC;
while((I20CONSET&STO)) ;// wait for Stopped bus I2C
Microcontrollers :: 04.09.2006 05:44 :: mystery :: Replies: 7 :: Views: 4394
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: 1012
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: 1165
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: 5981
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: 736
Attached is the assembly code routines for 16F877 to interface with ds1307.
Microcontrollers :: 04.12.2007 06:31 :: ravimarcus :: Replies: 29 :: Views: 17761
in my project i have 3 device on the i2c bus at24c256,atmega16(as master),ds1307
but my project works fine for about 1 month but after it the ds1307 stops working
do u have any idea for this problem?
May be a bug in your code when you read the registers from the RTC.
When you (...)
Microcontrollers :: 03.06.2008 08:08 :: davemaster :: Replies: 6 :: Views: 2755
HI guys, I think almost everything is discussed over here regarding I2c drivers. I also worked on exactly ds1307 with 89c52. If you need any further details, you are free to contact me
And watchdog timer just complicates your code. Actually, Why we use watchdog timer is to prevent our system to go into a blocked mode due to damage in code (...)
Microcontrollers :: 19.02.2008 06:50 :: Venkata Krishna :: Replies: 50 :: Views: 11262
In any case you have to set the external address of 24xx to match with the LS three bits of the address byte. I could not find from the data sheet if the five bit control code will change under some conditions, so I suggested you to select an address different from RTC's address, using the external address. So long as the device addresses ar
Microcontrollers :: 06.04.2008 01:34 :: laktronics :: Replies: 69 :: Views: 6592