7-seg display not turning off digits


HrvojeM

Recommended Posts

I was playing around with my new Papilio One 500K and LogicStart MegaWing. I've mostly been following the projects in Mike Field's book.

 

First few projects with LEDs and switches seem to work fine, but when I try the 7-seg display, all 4 digits are always lit-up at the same time and have the selected segments displayed.

Setting anodes to "0000" or "1111" or any other combination makes no difference.

The only way to turn off digits (all of them) is to set "1111111" to the segments.

 

I tried measuring voltage on the P18 pin (which should be the rightmost digit's anode, I think?) without the LogicStart MW and it correctly goes from low to high depending on the value in VHDL. Measuring the pin's voltage with the MW attached always show 2.6 V, regardless of the pin's output value. I don't know whether that's supposed to be like that due to the transistor or if that's wrong.

 

Am I right to expect that all segments should go dark with anodes set to "1111", regardless of the segments' value? If so, does anyone have any idea what might be wrong and how to test it?

Link to comment
Share on other sites

This is the .ucf part related to the display:

NET "anodes<0>" LOC="P18";NET "anodes<1>" LOC="P26";NET "anodes<2>" LOC="P60";NET "anodes<3>" LOC="P67";NET "segments<6>" LOC="P62";NET "segments<5>" LOC="P35";NET "segments<4>" LOC="P33";NET "segments<3>" LOC="P53";NET "segments<2>" LOC="P40";NET "segments<1>" LOC="P65";NET "segments<0>" LOC="P57";

It's copy-pasted from Mike Field's book and I believe it's consistent with the LogicWing's page, too (http://papilio.cc/index.php?n=Papilio.LogicStartMegaWing)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.