| Author |
Message |
Jim Guest
|
Posted: 26/02/2006 11:12 am Post subject: programming the 8051 uC, how to flashing the led |
|
|
can any one help me please??
i am new with assembly of 8051 microcontrollers and i need to write a program to make the led (( light emitting diode )) flashing every 1s!!! ???
if any one can do it with assembly or c++ please help me?? |
|
| Back to top |
|
 |
chipprocessor Newbie


Joined: May 31, 2006 Posts: 1
|
Posted: 31/05/2006 11:04 am Post subject: |
|
|
| books online, yes i have but it written by vietnamese |
|
| Back to top |
|
 |
Guest
|
Posted: 15/06/2006 3:15 pm Post subject: |
|
|
you can send to me ?
my email :nguyenvandai@gmail.com |
|
| Back to top |
|
 |
chỉppocessor Guest
|
Posted: 16/06/2006 3:00 pm Post subject: I'm sorry |
|
|
It's written by vietnamese but is a book, not ebook.
I will find for you ebook earnly |
|
| Back to top |
|
 |
Guest
|
Posted: 16/06/2006 3:01 pm Post subject: |
|
|
ftp://100pass.com:100pass.com@61.129.70.184/%c8%cf%d6%a4%bf%bc%ca%d4_%d7%ca%c1%cf%bc%af/
you can find in here, but not really have it |
|
| Back to top |
|
 |
syraxxl Newbie


Joined: Oct 30, 2007 Posts: 1
|
Posted: 30/10/2007 6:25 pm Post subject: |
|
|
-- this is a keil C code
-- xtall 12Mhz
-- is not a perfect 1 sek
#include <reg52.h>
#define ON 1
#define OFF 0
sbit LED = P2^0;
void del_msec(unsigned int msec)
{
unsigned int x, y;
for(x = 0; x<msec; x++)
{
for(y=0; y<120; y++);
}
}
void port_init(void)
{
LED = OFF; //define like output
}
void main(void)
{
while(1){
LED = ON;
del_msec(1000);
LED = OFF;
del_msec(1000);
}
}
i hope this is usefull for you ) |
|
| Back to top |
|
 |
ELICOCO Member

Joined: Jun 26, 2008 Posts: 56
|
Posted: 03/07/2008 4:11 am Post subject: may be it is useful for you |
|
|
5082-7663-EH000 5082-7663 datasheet:
http://www.chinaicmart.com/series-508/5082-7663.html
The 7.6 mm (0.3 inch) and 10. mm (0.43 inch) LED seven segment displays are designed for
viewing distances up to 3 metres 10 feet) and 5 metres (16 feet). These devices use an industry
standard size package and pinouts. All devices are availableas either common anode common cathode |
|
| Back to top |
|
 |