free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Go to page  1 [2] 3
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
Shezo
Mon Dec 01 2008, 08:20PM
 User Offline
Registered Member #12508
Joined: Mon Nov 24 2008, 05:26AM

Posts: 11
Thanked 0 times in 0 posts
thankxx Arun...i will start working on tht project...thnx alot



..............shezo..............
Back to top


Shezo
Mon Dec 29 2008, 12:02AM
 User Offline
Registered Member #12508
Joined: Mon Nov 24 2008, 05:26AM

Posts: 11
Thanked 0 times in 0 posts
yaar arun am realy in big tension..i cant understand single word of programing wic is used in the project wic u given me...plzz help me outt

..............shezo..............
Back to top


Arun Kumar V
Mon Dec 29 2008, 05:23AM

 User Offline
Registered Member #426
Joined: Sun Jan 28 2007, 11:50PM

Posts: 522
Thanked 220 times in 187 posts

Hello Shezo,

which programming Language are you familiar with: C or Assembly ?, Prof.wichit sirichote's most of the programs are in C and that too compiled in SDCC not Keil.


Arun
Back to top


Shezo
Mon Dec 29 2008, 08:59PM
 User Offline
Registered Member #12508
Joined: Mon Nov 24 2008, 05:26AM

Posts: 11
Thanked 0 times in 0 posts
am familiar wid C and assembly both but tis prog is not understandable..

..............shezo..............
Back to top


Arun Kumar V
Tue Dec 30 2008, 05:39AM

 User Offline
Registered Member #426
Joined: Sun Jan 28 2007, 11:50PM

Posts: 522
Thanked 220 times in 187 posts


am familiar wid C and assembly both but tis prog is not understandable..


can you be more specific..... what is it that you are not understanding ? the algorithm or how to compile the source code in SDCC ?

hex file is not given in prof.sirichote's project/s. you have to compile it yourself.


Arun
Back to top


Shezo
Tue Dec 30 2008, 10:01AM
 User Offline
Registered Member #12508
Joined: Mon Nov 24 2008, 05:26AM

Posts: 11
Thanked 0 times in 0 posts
i need a full tutorial on ds1307...i searched alot at net but its not sufficient to understand all about this ic

..............shezo..............
Back to top


pdi33
Tue Dec 30 2008, 11:21AM

 User Offline
Registered Member #1329
Joined: Mon Jun 04 2007, 09:28AM

Posts: 773
Thanked 186 times in 181 posts
i would suggest u first understand the basics of i2c protocol which is used by the DS1307 for communication ( u will find tutorials for it easily on the net). Then look into the datasheet of the IC for various memory registers and how to implement the i2c to read/write in them. As a reference for coding, u can check the download section for clock related projects which use this IC for timekeeping.


* inspired to develop,developing to inspire *
Back to top


Shezo
Wed Dec 31 2008, 12:35AM
 User Offline
Registered Member #12508
Joined: Mon Nov 24 2008, 05:26AM

Posts: 11
Thanked 0 times in 0 posts
well sir ma frnd was asking abt tht IC......

..............shezo..............
Back to top


Shezo
Wed Dec 31 2008, 12:36AM
 User Offline
Registered Member #12508
Joined: Mon Nov 24 2008, 05:26AM

Posts: 11
Thanked 0 times in 0 posts
scan_pgm()
{
char i;
for(i=0; i<4; i++)
{
if(hour == pgm1[i] && min == pgm1[i])
P1 = ~pgm1[i];
}
}

control_output()
{
if(hour == time_on1[0] && min == time_on1[1])
status = 0;
if(hour == time_off1[0] && min == time_off1[1])
status = 1;
}

blink_led()
{
if(flag1&1)
{
if(++timer1>1)
{
flag1 &= ~1; // clear flag1.0
timer1=0;
LED = 1; // turns off led
}
}
}

void time ()
/* update real-time clock */
{
if (++sec10 >= 10) /* 100ms * 10 = 1 s */
{
LED = 0;
control_output(); // control output every second
sec10 = 0;
flag1 |=1;
if (++sec >= 60)
{sec = 0;
if (++min >= 60)
{min = 0;
if (++hour >= 24)
{hour = 0;

}
}
}
}
}

set_time()
{
if((P3&4)==0)
{
status = 0;
hour = 18;
min = 0;
sec = 0;
timer2=0;
}
}

update_output()
{
if(status) output1 = 1;
else output1 =0; // update output bit
}

void timer_isr(void) interrupt 1 using 1
{
TH0 = 0x8b;
TL0 = 0x7f; // reload with 35711 for 10Hz
tick++;
tick_test ^= 1; // test tick for 10Hz/2 or 5Hz
time();
set_time();
blink_led();
update_output();
}

..............shezo..............
Back to top


Shezo
Wed Dec 31 2008, 12:37AM
 User Offline
Registered Member #12508
Joined: Mon Nov 24 2008, 05:26AM

Posts: 11
Thanked 0 times in 0 posts
i cant understand scan pgm function...and void time

..............shezo..............
Back to top


Go to page  1 [2] 3  

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems