302 Threads found on edaboard.com: Code For ds1307
Go to and search for DS1302 at HITECH forum, maybe you'll find some info. If you like i'll put here the driver from CCS, maybe you can port the code for picc.
Try this... Embedded Microcontroller Programming: Real Time Clock Interfacing Downloads / 8051 Projects / Digital clock usin
can some one find error for this code? use proteus, keil
for ds1307, the exact code of 24C0x (the I2C eeprom) works perfectly. Both are I2C devices.
there are i think over 200 rtc maxim chips ive personaly written 5 for proteus vsm what one??? some two some three or more wire comms wtf do you mean help ?? with asm i think what you wanted to post was " 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
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. Cheers Ravi
pls send me the code for digital clock(calender)using pic16f877a,ds1307and lcd.i am using mplab ide and hi-tech c compiler
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 (...)
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.
HIiiiii 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 ITS URGENT!!!!!!!!!!!!!!!!!!!!!!! Giving my code below---------- org 00h SCL EQU P1.0 ;IN THIS EXAMPLE I USED PORT 1.0 SDA (...)
Hi can any body send me Hardware I2C C code for 8051 , it will be very use full for me to implement in my project. Best regards Ram
Sir iam sending the circuit diagram of digital alrm clock using ds 1307. but i require code for this please send me the
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. Regards Vijay Kumar
Download the code bundle from There are SPI and I2C examples included.
This is a summary of this thread i am working on a semester project "digital clock" i have found a lot of circuits from different websites, but no one is working exactly. i have only 7 days to sumbit my project and i am unable to do it, please somebody give me simulation on
Hello! I need to convert decimal values 0 to 255 to hex. Can somebody please give me the c code for decimal to hex conversion?
m41t00 from ST I2C c code for pic: HH NeuralC
Hi, 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? thx
for ds1307 download the code for melany newman code for pic work very well i Just prove
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 .. Regards, IanP
Hi Vivek, Your parts look OK for the microcontroller side of things. There is plenty of sample code around for using the display, and i2c code for the RTC and EEPROM is simple enough. If you pick the right compiler, it will have these functions built-in, so you can concentrate on the logic of the problem (...)
This code is for CCS... Rafael
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 .. Regards, IanP
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 (...)
Here are some bits of code pulled from a larger program. Possibly there may be some useful bits. Some of it is not relevant, so just study the clocks/I2C bits etc. #pragma SMALL // Small memory model // Global Includes #include #include #include #include "delay.h" #include "lcd.h" #define
Hi. Hi to everyone. I have implemented such a design with an 8051 MCU Using one PC to monitor a switch is an overkill.Too much power and trouble for something so small. Use one mcu to store program code . for RTC use philips I2C Rtc clock .Don't get into trouble designing RTC in software .Everything is ready for (...)
My project is to built an alarm clock. I want to display on lcd the current date and the time and with a keypad have access in a menu in which you can set the alarm time. I try to use the ds1307 functions of codevision and i cannot get anything on lcd.I dont know what is going wrong. The only value that i can get by displaying the seconds is alway
manarose 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 #include "REG52.H" #include "REG52.H" sbit SDA = P1^0; sbit SCL = P1^1; //declare function void delay(void); void SCL_high(void); void SCL_low(void); void I2C_St
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? Greetings, May be a bug in your code when you read the registers from the RTC. When you (...)
Hi. elizabeth I wish to start properly programming in C but until now I have quite good setup of BASIC compilers and also quite happy with them. Sorry I could not help u in this..... may be some one else on this forum will do. for the Proteus yes I have 7.2 but no DS1337. Remember, using DS1337 is very simple just search DS1337.exe on edaboa
Hi, 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
hi!!! The only changes i made are as below #define RTC_SDA PIN_B0 #define RTC_SCL PIN_B1 and this is codes #include <18F4550.h> #fuses HSPLL,USBDIV,PLL5,CPUDIV1,VREGEN,NOWDT,NOPROTECT,NOLVP #use delay(clock=48000000) //,RESTART_WDT #include <ds1307.c> #include #define LCD_RS PIN_D0 #define LCD_RW PIN_D1 #
The following application note from MAXIM explains in details how to connect the ds1307 to 8051-derivatve including an example of asm code .. "Interfacing the ds1307 with an 8051-Compatible Microcontroller" Regards, IanP
Dear Friends, 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 (...)
Hi: 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 (...)
hi, I am trying to interface ds1307 with p89v51rd2. I am using keil compiler. I have interfaced at2402(I2C eeprom) earlier, i tried to interface rtc using the eeprom code, but its not working. this is the code i used #ifndef __vrtc_h__ #define __vrtc_h__ #include #include sbit sda=P1^0; sbit scl=P1^1; void
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.
Hi Everyone, Guess what... I require your assistance again As some of you are aware I am trying to get a data logger up and running, but things have not been easy this end... the initial project started off with a 16F684 but they both locked up on me and a 16F636 also froze on me, some beleive the way I was Bit Bashing the code using
Post #2 is in C, post #3 have ASM code for download
your code has problem just write code for AT see you get response and print it on LCD for reference.... next ATE0 get ok and print it.. let us go step by step.. you can come to skype if you have account
ds1307_init call StartI2C ; Set SSPCON2.SEN bcf I2C_Ctrl,0 ; set for write Command movf I2C_Ctrl,W ; Send Slave Address to i2C Bus call Send_Byte movlw 0x00 ; 00H address call Send_Byte movlw B'00000000' ; clk_halt bit disabled call Send_Byte movlw 0x02 ; 02H address 12/24 hrs format call Send_Byte movlw (...)
Post the schematics and/or Proteus design file, I do remember making a melody alarm clock based on PIC18F2550 a few other chips, once you post the schematic/dsn file I try to port the alarm part of the code/design to 877A (provided I find it soon). for people crapping my inbox with PM, please stop it. If I find the project, and the thread start
I have count encoder pulse on interrupt RB0 here. You may change RB0 input to count push button pressed.
Thanks for reply. I have connected the battery. There are no problems with the hour and min display. Here are the code to read:- $mod51 ORG 0000H ;=================================================================================== SCL EQU P0.0 ;IN THIS EXAMPLE I USED PORT 2.0 SDA EQU P0.1 ;AND PORT 2.1 for THE (...)
Hi, palreddyanurag Please help me. I am trying to interface ds1307 with AT89C2051. I have done it in Proteus successfully. But when I run it in Breadboard, it gets fail. I have tried to find the reason, and i found that the RTC doesn't acknowledge. The address I transmits is "0xD0". Please tell me what things I have missed to wire up or in cod
It' looks to me like a simulator problem, but don't use mikroC and thus can't further check the behaviour of your code.
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 (...)
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??
please pose your code?
Hey guys, I'm also doing rtc with pic16f877a. Now want to implement an alarm on it. Can I know how to write a coding for the alarm? I have saw the previous post is about if (current_time == alarm_time) { // enable alarm } but I have no idea how to define for the current time and alarm time. Seeking for helps from