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.
Microcontrollers :: 23.06.2004 19:58 :: Elavionic :: Replies: 14 :: Views: 23567
Try this...
Embedded Microcontroller Programming: Real Time Clock Interfacing
Downloads / 8051 Projects / Digital clock usin
Microcontrollers :: 04.07.2011 18:44 :: kandhu26 :: Replies: 5 :: Views: 1596
can some one find error for this code?
use proteus, keil
Microcontrollers :: 05.08.2006 16:08 :: masud58 :: Replies: 21 :: Views: 9436
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 12:59 :: techie :: Replies: 18 :: Views: 8207
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
Microcontrollers :: 14.04.2007 23:25 :: VSMVDD :: Replies: 3 :: Views: 1088
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
Microcontrollers :: 21.12.2007 07:28 :: ravimarcus :: Replies: 22 :: Views: 6767
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 15:28 :: anila :: Replies: 13 :: Views: 7672
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 :: 17.10.2009 03:26 :: gatobx :: Replies: 0 :: Views: 1089
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 14:18 :: orkhed :: Replies: 5 :: Views: 4841
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 (...)
Microcontrollers :: 23.01.2010 13:26 :: snehal_975 :: Replies: 3 :: Views: 1625
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
Microcontrollers :: 25.02.2010 11:47 :: ramasamy :: Replies: 3 :: Views: 2129
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 12:07 :: naga402 :: Replies: 3 :: Views: 2395
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
Microcontrollers :: 15.05.2011 21:18 :: vijayji :: Replies: 0 :: Views: 338
Download the code bundle from
There are SPI and I2C examples included.
Embedded Systems and Real-Time OS :: 07.11.2012 08:14 :: alexan_e :: Replies: 6 :: Views: 830
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
Microcontrollers :: 27.11.2012 08:46 :: alexan_e :: Replies: 93 :: Views: 2754
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?
Microcontrollers :: 26.11.2012 20:09 :: internetuser2k12 :: Replies: 46 :: Views: 991
m41t00 from ST
I2C c code for pic:
HH
NeuralC
Microcontrollers :: 08.10.2003 13:41 :: neuralc :: Replies: 3 :: Views: 1347
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
Microcontrollers :: 27.01.2004 13:33 :: sadat007 :: Replies: 4 :: Views: 5506
for ds1307
download the code
for melany newman
code for pic work very well i Just prove
Microcontrollers :: 06.09.2005 04:34 :: un-2000 :: Replies: 3 :: Views: 3038
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
Microcontrollers :: 23.11.2005 03:55 :: IanP :: Replies: 3 :: Views: 1260
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 (...)
Microcontrollers :: 22.04.2006 13:33 :: FoxyRick :: Replies: 18 :: Views: 2344
This code is for CCS...
Rafael
Microcontrollers :: 02.06.2006 18:49 :: Rafael :: Replies: 2 :: Views: 1926
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
Microcontrollers :: 18.09.2006 14:49 :: IanP :: Replies: 4 :: Views: 4735
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 06:27 :: lats :: Replies: 18 :: Views: 20905
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
Microcontrollers :: 10.08.2009 17:20 :: GrandAlf :: Replies: 9 :: Views: 2300
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 (...)
Microcontrollers :: 02.09.2007 09:51 :: leonardo0 :: Replies: 62 :: Views: 10030
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
Microcontrollers :: 12.10.2007 00:10 :: auto_mitch :: Replies: 8 :: Views: 3487
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
Microcontrollers :: 04.12.2007 11:11 :: hbaocr :: Replies: 29 :: Views: 16078
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 (...)
Microcontrollers :: 03.06.2008 14:08 :: davemaster :: Replies: 6 :: Views: 2565
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
Microcontrollers :: 18.02.2008 13:07 :: sadat007 :: Replies: 10 :: Views: 7288
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
Microcontrollers :: 06.04.2008 07:34 :: laktronics :: Replies: 69 :: Views: 6204
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
#
Microcontrollers :: 29.06.2008 14:37 :: ahmet2004 :: Replies: 1 :: Views: 1450
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
Microcontrollers :: 23.07.2008 02:37 :: IanP :: Replies: 13 :: Views: 3092
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 (...)
Microcontrollers :: 21.07.2009 06:22 :: yviswanathbe :: Replies: 1 :: Views: 1171
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 (...)
Microcontrollers :: 08.10.2009 07:17 :: rashidali :: Replies: 3 :: Views: 1612
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
Embedded Systems and Real-Time OS :: 15.11.2009 11:00 :: revamp :: Replies: 2 :: Views: 1541
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 14:54 :: vanvan00 :: Replies: 4 :: Views: 1437
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
Microcontrollers :: 28.07.2010 10:56 :: hawk1943 :: Replies: 20 :: Views: 2453
Post #2 is in C, post #3 have ASM code for download
Microcontrollers :: 09.10.2010 21:18 :: The._.One :: Replies: 3 :: Views: 1768
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
Microcontrollers :: 30.12.2010 17:56 :: ckshivaram :: Replies: 48 :: Views: 5044
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 (...)
Microcontrollers :: 22.02.2011 15:13 :: durgap :: Replies: 3 :: Views: 688
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
Microcontrollers :: 08.03.2011 04:58 :: abidr :: Replies: 6 :: Views: 863
I have count encoder pulse on interrupt RB0 here.
You may change RB0 input to count push button pressed.
Microcontrollers :: 13.05.2011 19:10 :: engshahrul :: Replies: 7 :: Views: 602
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 (...)
Microcontrollers :: 09.05.2011 16:06 :: papunblg :: Replies: 10 :: Views: 1382
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
Microcontrollers :: 20.10.2012 16:38 :: jbrathod88 :: Replies: 10 :: Views: 1023
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 10:24 :: FvM :: Replies: 6 :: Views: 901
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 :: 15.09.2011 02:48 :: ramxis :: Replies: 1 :: Views: 518
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 19:38 :: navenmou :: Replies: 8 :: Views: 1315
please pose your code?
Microcontrollers :: 27.09.2011 17:51 :: john blue :: Replies: 3 :: Views: 423
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
Microcontrollers :: 05.10.2011 04:42 :: enjunear :: Replies: 5 :: Views: 662