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
    27 KB · Views: 347
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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…