(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
7 SEGMENTOS (by Manuel)
ME OLVIDE DELA FOTO
7 SEGMENTOS (by Manuel)
HOLA MGP
ME HAVIA EQUIBOCADO EN LOS TRANSISTORES PERDON
fisiona correctamente
te envió foto
(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.
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
(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
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
(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.
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
(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.
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
(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.
Post a reply to this comment:
 |