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: 10153
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: 7381
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: 1231
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: 5744
I need assembly code for DS 1307 with 8051 with display on lcd. Alarms not needed.I have my own code but it is showing garbage values.
PLS HELP ME
Giving my code below----------
SCL EQU P1.0 ;IN THIS EXAMPLE I USED PORT 1.0
Microcontrollers :: 23.01.2010 07:26 :: snehal_975 :: Replies: 3 :: Views: 1885
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: 2508
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: 2841
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: 481
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: 1851
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: 476
m41t00 from ST
I2C c code for pic:
Microcontrollers :: 08.10.2003 07:41 :: neuralc :: Replies: 3 :: Views: 1422
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: 5920
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: 3571
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: 1402
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: 5301
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: 8870
CAN SOMEONE HELP ME MAKE AN ASSEMBLE code for A PIC18F452 AND A DALLAS RTC ds1307
Microcontrollers :: 14.04.2007 15:48 :: MARCO IBARRA :: Replies: 3 :: Views: 1213
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: 22465
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: 1865
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: 1426
pls send me the code for digital clock(calender)using pic16f877a,ds1307and lcd.i am using mplab ide and hi-tech c compiler
Microcontrollers :: 05.09.2009 09:28 :: anila :: Replies: 13 :: Views: 9164
I am using ds1307 and ds12887 as digital calendar. I have developed code for displaying the today's day, date month and year. The problem is that I want to make a calender which is displayed on lcd and then I can select any day from it, just like in nokia 1208 mobile, which displays calendar and i can select any date or even change (...)
Microcontrollers :: 08.10.2009 01:17 :: rashidali :: Replies: 3 :: Views: 1735
i need to set it up using mikro c codes im sorry for the troubles. I'm using Port A for temperature sensor, Port B for LCD and left Port D for ds1307 to work with.
Microcontrollers :: 19.01.2010 08:54 :: vanvan00 :: Replies: 4 :: Views: 1638
Post #2 is in C, post #3 have ASM code for download
Microcontrollers :: 09.10.2010 15:18 :: The._.One :: Replies: 3 :: Views: 2188
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: 809
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: 689
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: 1052
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: 632
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: 1834
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: 1702
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: 628
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: 379
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: 555
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: 724
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: 386
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: 247
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: 381
You can download the PIC source code book from below link
Have fun !
Microcontrollers :: 20.12.2004 23:19 :: feiutm9898 :: Replies: 5 :: Views: 1875
you can find a lot of code examples (for Hi-Tech C) here:
Microcontrollers :: 19.03.2005 00:17 :: C-Man :: Replies: 6 :: Views: 2215
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: 723
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: 2885
I need C code of I2C bus for LPC2138
Microcontrollers :: 19.02.2006 02:18 :: ramasamy :: Replies: 7 :: Views: 4592
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: 1045
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: 1270
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: 6195
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: 763
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: 18455
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: 2846
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: 11440
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: 6745