Discussion in "Project Help" started by    kent    Oct 18, 2006.
Wed Oct 18 2006, 10:47 am
#1
hi to all!!! i really nid some help, im KENT a graduating student. we were assign to make a 8051 microcontroller but we dont know what kind of microcontroller project we do. can u help us? any kind of project which is not too expensive hope u will help me. any kind of simple micorcontroller project. hope u will help me... (
Wed Oct 18 2006, 06:43 pm
#2
tell me what kind of simple project you are looking for..
simple.. normal or what.. i cna just provide you the idea.. to reach your destination. Implementing that idea.. will be your responsibility. yes, sure.. i will help u whenever u need.
Wed Oct 18 2006, 09:21 pm
#3
hi kent see before starting microcontroller based projects
u should first select the controller,as controller needs programmer ,u can use simple 4051 or 2051 controller to implement simple ideas but they requires programmeris it assassible to u,let us know then we will give u some help...
Thu Nov 09 2006, 03:08 pm
#4
Hi Rickey and all member!
I have the question: "I write program for 24C04 with 89S52, when ACK signal is master device (89S52) generate or slave device (24C04) generate???????"
I wrte program is:

//writing with I2C bus
void i2c_send(unsigned char d){
unsigned char i;//dem bit gui di
SCL=0;
for (i=0;i<=7;i++){
if (d&0x80)
SDA=1;
else SDA=0;
d<<=1;
_nop_();
SCL=1;
delay(i2c_delay);
SCL=0;
_nop_();
_nop_();
_nop_();
_nop_();
_nop_();
_nop_();
}
//send ACK
SDA=0;
_nop_();
SCL=1;
delay(i2c_delay);
SCL=0;
_nop_();
}

//read with I2C bus
unsigned char i2c_read(void){
unsigned char temp=0x00;
char i;
SDA=1;//thiet lap la cong vao
SCL=0;
for(i=0;i<=7;i++){
SCL=1;
_nop_();
_nop_();
temp = temp | SDA;
_nop_();
_nop_();
temp<<=1;
SCL=0;
_nop_();
_nop_();
_nop_();
_nop_();
_nop_();
_nop_();
}
//send ACK
SDA=0;
_nop_();
SCL=1;
delay(i2c_delay);
SCL=0;
_nop_();
}
:mad Rickey or some one repair this program for me? Thank you! all member can mail for me with address mail: [email protected]. :mad :rose


Thu Nov 09 2006, 05:31 pm
#5
when controller sends data.. then it make the SDA line high and reciever pulls it down and acknowledges is.

where as.. when controller recieve data.. it make the SDA line low assuming the sender has made it high. so this way controller acknowledges.
so.. who so ever is recieving wil send the ack bit.
whether its a master or slave.
and in your program you forgot to add delay.. for write cycle. see the datasheet for more help
 Binu like this.
Thu May 31 2007, 03:38 pm
#6
Visit my website for free 8051 microcontroller based projects

Post content blocked, please see the advertising forum for more information.



[ Edited Thu May 31 2007, 07:45 pm ]
Thu May 31 2007, 06:23 pm
#7
thank you for sharing Binu
thats really nice. if you don't mind, can i host your projects on my website? will be helpful for others too and sure.. will be under your name

PS: your ASP server is very slow and some kind of error is coming in Microsoft Jet Database. Hope you will fix it soon. just told so that will help you.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

MnoioCoove
Tue May 21 2024, 02:06 am
PedroDug
Sun May 19 2024, 05:39 pm
JewelAmuck
Sun May 19 2024, 03:06 pm
Minniemus
Sun May 19 2024, 07:39 am
Andyhet
Sat May 18 2024, 07:28 am
BrettTibre
Fri May 17 2024, 06:14 pm
Gordonfax
Fri May 17 2024, 10:28 am
Davidspils
Fri May 17 2024, 10:19 am