Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

7_Segment_led Help!!

Status
Not open for further replies.

b_sandoval

New Member
Hello Everyone,
I'm trying to run this code with my BS2, I don't understand what I'm doindg wrong,

counter var nib

OUTA=$0

DIRA=$F

loop:

FOR counter=0 to 9

OUTA=counter

pause 1000

NEXT

goto loop

With this program I suppost to counted between 0 and 9.

PLease if any body can help me I will be glad.

Thanks.

This is my schematic
 

Attachments

  • 7_segment_led1.jpg
    7_segment_led1.jpg
    27 KB · Views: 341
I know LED's come in 2 variants:

COMMON ANODE as well as COMMON CATHODE.

The way I see It, you have wired up the circuit as if you will be using a COMMON ANODE LED, if however the actual LED you are using is COMMON CATHODE, then you will experience problems.
 
grandestlama said:
I know LED's come in 2 variants:

COMMON ANODE as well as COMMON CATHODE.

The way I see It, you have wired up the circuit as if you will be using a COMMON ANODE LED, if however the actual LED you are using is COMMON CATHODE, then you will experience problems.
i agree .. sandoval , what is the number on the LED.?
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top