Microcontroller › 8051 › LCD based digital alarm clock with digital thermometer using 8051 microcontroller (AT89C51)
- This topic has 6 replies, 3 voices, and was last updated 7 years, 2 months ago by
sharon.
-
AuthorPosts
-
April 2, 2017 at 11:16 pm #4635
indrajeet Tmabe
Participantmy query is regarding
LCD based digital alarm clock with digital thermometer using 8051 microcontroller (AT89C51)
The code that is provided for the project is incorrect as the clock is not running and lcd is not showing temperature tooo
please provide us a genune working code
April 3, 2017 at 4:12 am #14549Hari Prasaath K
ParticipantHi,
The code provided in site are practically worked and tested.
Please provide the details at which part exactly you face the problem.
Test your project module by module. check with your hardware connections also whether it matches according to code given side.
April 3, 2017 at 9:27 am #14550indrajeet Tmabe
Participanthello,
I have constructed your circuit in proteus 8 and also constructed on the bread board output on both are same
1st it says set time we are able to set time
then it displays the time that we have set and seconds digits are stuck to 00 they dont procedue
cant set alarm it also do not display the temperature
provide me with ur direct contact detailsApril 3, 2017 at 10:09 am #14552Hari Prasaath K
ParticipantSend the clear screenshot of simulation circuit design that you done with your proteus and attach the code also.
April 3, 2017 at 10:40 am #14553indrajeet Tmabe
Participantthen after we set time it comes out to the bellow diagram
OUR CODE IS
// Program to make a digital clock with integrated Alarm and digital thermometer#include<reg51.h>#define port P1#define adc_input P0#define cont_port P3#define dataport P2#define m_sec 10sbit rs = cont_port^0;sbit rw = cont_port^1;sbit en = cont_port^6;sbit dig_hr1=port^0;sbit dig_min1=port^1;sbit start=port^2;sbit am_pm=port^3;sbit alarm_set=port^4;sbit alarm=port^7;sbit wr= P3^2;sbit rd= P3^3;sbit intr= P3^4;int hr ,hr1=0,alarm_hr=0;int min,min1=0,alarm_min=0;int sec,sec1=0,dig_am_pm=0,alarm_am_pm=0; int test_final=0,test_intermediate1[10],test_ intermediate2[3]={0,0,0}; void delay(unsigned int msec) // Time dealy function{int i,j ;for(i=0;i<msec;i++)for(j=0;j<1275;j++);}void lcd_cmd(unsigned char item) //Function to send command to LCD{dataport = item;rs= 0;rw=0;en=1;delay(1);en=0;return;}void lcd_data(unsigned char item) // Function to send data to LCD{dataport = item;rs= 1;rw=0;en=1;delay(1);en=0;return;}void lcd_data_string(unsigned char *str) // Function to send string to LCD{int i=0;while(str!='