Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
Thread Tools Display Modes
Old 15th June 2008, 12:21 PM   (permalink)
Smile 8051 c code please!

Hello friends. My task is as follows. Lamps are connected in such away that there is communication between them and a keyboard. The ulimate objectibve of the system is to switch on all the lights during night and switch it off during day. A keyboard interface is also used and should be operated in such a way that pressing a specified key should ultimately turn on the required number of lights. I am using an LDr as a sensor in this circuit. and 8051 as an operating microcontroller. I have assigned port 0 to the lamps to be connected. P1.0 is given to sensor and pins from P1.1 to P1.7 are given to a keyboard. now how can i use this keyboard to turn on the required number of lights would you suggest me the algorithm for this please!
shanky25 is offline   Reply With Quote
Old 15th June 2008, 01:03 PM   (permalink)
Default

When you say keyboard, do you mean keypad. There isn't much of an algorithm, only read the key press and give a certain output.
colin mac is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Code for digital clock using 8051 zaby Micro Controllers 4 2nd October 2007 11:18 PM
8051 assembly code interprating novschopin Micro Controllers 9 6th May 2006 02:06 AM
code: making a sine wave from an 8051 bajgik General Electronics Chat 6 4th May 2006 04:53 AM
ds1820 code for 8051? garg29 Micro Controllers 1 9th March 2005 11:57 AM
I NEED CODE FOR 8051 SERIAl comm..PLSSS HELP kumar_3k Micro Controllers 2 3rd January 2004 02:29 AM



All times are GMT. The time now is 04:44 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.