counter in LED7SEG 0-999 could help me.
the program is attached thanks
LED7SEG 0-999
Moderator: Benj
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: LED7SEG 0-999
Hi brunoflow,
I covered 3 x 7seg here:
http://www.matrixmultimedia.com/mmforum ... 033#p31308
That may help you?
Martin
I covered 3 x 7seg here:
http://www.matrixmultimedia.com/mmforum ... 033#p31308
That may help you?
Martin
Martin
-
- Posts: 45
- Joined: Mon Nov 07, 2011 6:36 pm
- Has thanked: 1 time
- Been thanked: 30 times
Re: LED7SEG 0-999
Hi
I have made two changes, have moved one LED to port C and have removed the 2 second delay.
The problem with using LED 7 segments is that they use at least 7 IOs just for the number (8 with decimal point) and also they have an additional connection so that only the correct display is 'enabled' when required.
Generally they share the same 7/8 IO lines but have different 'enable' lines.
i.e. If you have two 7 segments A and B you would have to do the following.
Gary
I have made two changes, have moved one LED to port C and have removed the 2 second delay.
The problem with using LED 7 segments is that they use at least 7 IOs just for the number (8 with decimal point) and also they have an additional connection so that only the correct display is 'enabled' when required.
Generally they share the same 7/8 IO lines but have different 'enable' lines.
i.e. If you have two 7 segments A and B you would have to do the following.
- enable A
output A's data
delay 10ms
disable A
enable B
output B' data
delay 10ms
disable B
Gary
- Attachments
-
- CONTADOR 0 A 999-1.fcf
- (8.5 KiB) Downloaded 341 times
Re: LED7SEG 0-999
Thanks for the help
More when I record this example the program together account led7segment they wanted a program that counts up from 0 to 999 in PORTD
More when I record this example the program together account led7segment they wanted a program that counts up from 0 to 999 in PORTD
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: LED7SEG 0-999
That will not be possible.brunoflow wrote: they wanted a program that counts up from 0 to 999 in PORTD
With 3 displays you will need 3 pins for the anodes (1 for each display) but you will also need 7 pins in total for all the cathodes is you exclude the decimal point or 8 pins if you include decimal. The cathodes (a,b,c,d,e,f,g & decimal point if used) of each display are connected in parallel. That is a total of 3 + 7 = 10 pins without decimal points or 3 + 8 = 11 with decimal points .
Since port D has a maximum of 8 pins, you will also need to use 2 or 3 pins from another port as well. Which is what Gary is saying and I totally agree with him.
Between Gary's Flowchart and my Flowchart you should have enough information to complete your own Flowchart.
If you get stuck then post your new Flowchart and we can make sure it works the way you want it to.
Martin
Martin