Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - 7 SEGMENTOS

(you are viewing a thread; or go back to list of threads)

7 SEGMENTOS (by Manuel)

Hola MGP
e probado el programa y los segundos no me han funcionado
te mando foto para que veas como quedan


luego tengo otro proyecto me gustaría di le puedes echar un vistazo haber lo que se puede hace me interesaría este sistema
para poder aprovechar todas les entradas i salidas

Un saludo Manuel
Sat Jan 24 2026, 13:32:52, download attachment prubas.rar
7 SEGMENTOS (by Manuel)
ME OLVIDE DELA FOTO
Sat Jan 24 2026, 13:37:43, download attachment 20260124_164657.jpg
7 SEGMENTOS (by Manuel)
HOLA MGP
ME HAVIA EQUIBOCADO EN LOS TRANSISTORES PERDON
fisiona correctamente
te envió foto
Sat Jan 24 2026, 14:16:01, download attachment 20260124_200957.jpg
(no subject) (by MGP)
Glad it works.

You can also use 100 ohm resistors instead of 220 ohms for the displays, as they only light up 1/10 of the time.

To see the difference, you should reprogram the original display scan generator with C11.
Sun Jan 25 2026, 02:00:06
7 SEGMENTOS (by Manuel)
7 SEGMENTOS (by Manuel)

Hola MGP


luego tengo otro proyecto me gustaría si le puedes echar un vistazo haber lo que se puede hace me interesaría este sistema
para poder aprovechar todas les entradas i salidas del micro

Un saludo Manuel

Muchas gracias por tu colaboración si miras la foto
veras que refleja los números muchísimo
Mon Jan 26 2026, 06:25:46, download attachment prubas.rar
(no subject) (by MGP)
Remember when I wrote that you should have used CC displays?

You're making the same mistake as back then: the output of {7 segment display A} is inverted compared to when you use {7 segment display C}.

Illuminating segment 'a' is equivalent to 1111110 for CA displays and 00000001 for CC displays.

If you use the AND 1 instruction, that's correct for CC displays, but you should invert '1' for CA displays.

You can also indicate that you're using CC displays and invert the outputs as I did in your example, while still using CA displays.

I also removed 4 times {MOV display 0xFF}

I have not tested it in real, that upto you.

Good luck
Mon Jan 26 2026, 12:29:43, download attachment V2_PROBANDOCONTADOR ANODO COMUNPARA QUTAR1.ld
7 SEGMENTOS (by Manuel)

hola MGP

E probado el programa queme has mandado lo probé en cc
pero los dígitos siguen igual te mando foto yo no encuentro
solución si tu tienes alguna te agracera muchísimo

UN saludo Manuel
Mon Feb 2 2026, 11:20:40, download attachment 20260202_113610.jpg
(no subject) (by MGP)
I tested that and everything works fine. I don't even know what your problem is because I don't see anything wrong in that photo.
If you have a problem, describe it so I don't have to guess.

My setup uses CA displays and a 20MHz crystal. You'll need the latter if you want to multiplex displays, as LDmicro uses a duty cycle, which significantly slows down program execution.

But always use #PORTx if you want to multiplex displays; it's >20 times faster and prevents shadowing in the segments.
Tue Feb 3 2026, 04:33:10, download attachment P1050016.JPG
7 SEGMENTOS (by Manuel)
Hola MGP

si te fijas en la foto que yo te e mandado los números reflejan
lo probé en CA y me hace lo mismo veo tu foto
y se ven perfectos no reflejan si puedes mándame el programa
que has probado el tuyo

Un saludo
Tue Feb 3 2026, 07:57:16
(no subject) (by MGP)
I used your program and only changed the crystal frequency from 16MHz to 20MHz.

So you need to use a different crystal or resonator at 20MHz.
Tue Feb 3 2026, 08:09:27
7 SEGMENTOS (by Manuel)
La foto que te mande el cristal ya era de 20MHZ
siempre trabajo con 20MHZ no tengo otro

mi problema es que me reflejan los dígitos y no se por que
ve que ati no te relegan de ven perfectos gracia por tu colaboración espero aguín di saber por que me reflejan los dígitos

Un saludo Manuel
Tue Feb 3 2026, 11:21:04
(no subject) (by MGP)
Why is the crystal frequency in your program set to 16MHz?
I always start from the data that is provided to me.

The reason you see those mirror images is because there's a delay between the processing of two or more lines, and if you use sensitive modern LEDs, you'll see that.

You can find several threads on this forum about that problem.
In 2015, I once posted a program that partially solved the problem, but with today's much more sensitive LEDs, you'll see it again.

Cause: the display is turned on while the data (a...g) from the previous display is still on the outputs, and because there are several lines in between, it takes a while, but you can still see it.

There's nothing you can do about that, except use a PIC with a 32MHz clock or use #PORTx.

#PORTx was a huge relief when Ihor programmed it; you can now use more than 10 displays without seeing those symptoms.
Tue Feb 3 2026, 12:21:58
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):