Previous in Forum: TDS & Microseimens   Next in Forum: what happens to any light that falls on a mirror
Close
Close
Close
10 comments
Rate Comments: Nested
Active Contributor

Join Date: Aug 2008
Posts: 15

someone help me with my microcontroller!

10/26/2008 12:39 PM

i planned to do some daring 89c51 based projects, and so i bought a flash programmer, 2 89c51s, and numerous other electronic bits and pieces like capacitors, oscillators etc, that made me broke! and when i pluged the prgrammed 89c51 in the bread board, forget making 7 segments work, i can't seem to get a simple freakin LED to blink! take this program for example: ORG 0000H MOV P1,#00H HERE: CPL P1.0 MOV R1,#0FFH BACK2: MOV R0,#0FFH BACK: DJNZ R0,BACK DJNZ R1,BACK2 SJMP HERE END, when i insert the micricintroller in, and turn the supply on, NOTHING'S BLOODY HAPPENING there could not be any wiring errors, i've checked the simple circuit 100s of times! the flash programmer seems to be working fine, i've replaced the 8951 too.... could someone please tell me what the hell is going on? this is a lot of money thst's going to waste, please help me people!

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
Engineering Fields - Control Engineering - New Member China - Member - New Member

Join Date: Sep 2006
Location: CHINA
Posts: 2945
Good Answers: 14
#1

Re: someone help me with my microcontroller!

10/26/2008 9:47 PM

today 8x51 is cheaper, no expensive, dont make a joke.

you'd better post your sheme here, sothat we can find something wrong.

hoewver you should check following step,

1, is oscllator oscillating?

2, check your start circuit to see if it sets and goes at oooh.

3, lable should be from small to big, like this back1, back3 , backn..

4 how do you link led to the micrchip?

5need a transistor from p1.0 to drive led.

...

Register to Reply
Guru
Engineering Fields - Control Engineering - New Member China - Member - New Member

Join Date: Sep 2006
Location: CHINA
Posts: 2945
Good Answers: 14
#2
In reply to #1

Re: someone help me with my microcontroller!

10/26/2008 10:48 PM

6, its good for u to arrange a jmp command at 000h.

start implemention at other cells.

Register to Reply
Active Contributor

Join Date: Aug 2008
Posts: 15
#3
In reply to #1

Re: someone help me with my microcontroller!

10/27/2008 3:40 AM

is there any other method by which i can check if my oscillator is working instwad of a CRO?

Register to Reply
Guru
Engineering Fields - Control Engineering - New Member China - Member - New Member

Join Date: Sep 2006
Location: CHINA
Posts: 2945
Good Answers: 14
#5
In reply to #3

Re: someone help me with my microcontroller!

10/27/2008 8:52 PM

I cannt access to your page. what is that?

what is cro?

if you would check oscilator woiking right, and if you would havnt got an oscillascope, you can use a multimeter. this will need enperience. is better digital meter.

theory is simple, but practise is complex.

I dont know you where from.

I wonder why no other like to help you with it, they all appear to be specialists.

Register to Reply
Active Contributor

Join Date: Aug 2008
Posts: 15
#4
In reply to #1

Re: someone help me with my microcontroller!

10/27/2008 3:53 AM

here is the circuit diagram: http://img300.imageshack.us/img300/8934/1st89512xi8.jpg

Register to Reply
Guru
Hobbies - Model Rocketry - New Member

Join Date: Jun 2007
Location: East of Seattle, Washington state Republic of the 50 states of America
Posts: 2045
Good Answers: 36
#6
In reply to #4

Re: someone help me with my microcontroller!

10/27/2008 8:56 PM

The green camera on the text editor bar lets you insert pictures.

Brad

__________________
(Larrabee's Law) Half of everything you hear in a classroom is crap. Education is figuring out which half is which.
Register to Reply
Guru
Hobbies - HAM Radio - New Member

Join Date: Oct 2006
Location: Vancouver (not BC) Washington (not DC) US of A
Posts: 1261
Good Answers: 12
#7

Re: someone help me with my microcontroller!

10/27/2008 9:10 PM

Assuming that your Vcc is +5 volts, and assuming that your are using a garden variety LED (1.2 volts drop), you are drawing only 7.45 mA to run the LED... which might not be enough for it to light.

I would check the specs to see if the port can sink 20 mA, and if so, change your resistor to 200 ohms (from 750 ohms). This should give you 20 mA of current through the LED.

If the port cannot sink 20 mA, get a 4050 Cmos buffer. Use a section of this chip between the port and the LED, and eliminate the resistor entirely. This buffer will handle the current limiting nicely with no resistor.

Hope this helps...

Bill

Register to Reply
Guru
Hobbies - HAM Radio - New Member

Join Date: Oct 2006
Location: Vancouver (not BC) Washington (not DC) US of A
Posts: 1261
Good Answers: 12
#8
In reply to #7

Re: someone help me with my microcontroller!

10/27/2008 9:29 PM

One oops in last statement... 510 ohm resistor... not 750 ohm resistor. Sorry

Bill

I can see in your code where you set the port to #00H which should turn on the LED, but your other references are 12 bit numbers... like #0FFH. Is there any possibility that one of these should be #FFH? I have NO FAMILIARITY with this controller so this is a wild assed guess.

Bill

Register to Reply
Guru
Engineering Fields - Control Engineering - New Member China - Member - New Member

Join Date: Sep 2006
Location: CHINA
Posts: 2945
Good Answers: 14
#9
In reply to #8

Re: someone help me with my microcontroller!

10/27/2008 10:59 PM

thanks UV posts the pic. now I see it.

Hi, Sciessic2,

#0ffh is no problem for any compter data expression,

What you said to add a transistor is right. ouput of microchip current usually is too weak to drive a power device directly. so he much add a buffer.

he can use cpl command, which is common in many computers, but this is more simple for him use #00h--#0ffh command. and loop.

if he connect the low luming led at p0 port, he neednt a trnsistor, which port can drive the led at 8ma. which can light the led.

Register to Reply
Participant

Join Date: Dec 2008
Posts: 4
#10

Re: someone help me with my microcontroller!

12/08/2008 11:14 PM

I could supply you with this microcontroller already made. We would be completely willing to work with you if you wanted to incorporate this into your project. We can work out a deal to send you a demo unit if you wish: http://www.blackbirdco.com

Register to Reply
Register to Reply 10 comments
Copy to Clipboard

Users who posted comments:

amsung2 (2); blackbirdco (1); cnpower (4); Sciesis2 (2); U V (1)

Previous in Forum: TDS & Microseimens   Next in Forum: what happens to any light that falls on a mirror

Advertisement