In need of help for a finnal project in mty digital logic class......
blind_bot
Posts: 22
Okay, so as a finnal project I have a seven segment led, that will be connected to a led driver, and then a counter. I have each item hook up and tested.... And at about .9hz I can get it to count 0 to F, so this part is good.
·In our project we are required to get it to count from 0 to 9 then restart again. I belive that I can do this by tying two of the input from the counter threw a nand gate, then connecting the output of the nand gate to loadf, wich will bring to to ground, and cause it to reset. However this hasnt been tested and I am running out of time. Only two lab days before the finnal exame.( I hate excelorated classes). What I would like to do is use the propellor to create a frequency of about 0.86 hz, but I do not know how as I have only had my prop edu kit for about a week or so.
·So I would love it if someone could help me with codding that I might be able to use to get the 0.86 hz I need in order to read the led. Faster freq just cause the led counting to spin fast than is able to read.
· Thank you, Duane
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
00100000
·In our project we are required to get it to count from 0 to 9 then restart again. I belive that I can do this by tying two of the input from the counter threw a nand gate, then connecting the output of the nand gate to loadf, wich will bring to to ground, and cause it to reset. However this hasnt been tested and I am running out of time. Only two lab days before the finnal exame.( I hate excelorated classes). What I would like to do is use the propellor to create a frequency of about 0.86 hz, but I do not know how as I have only had my prop edu kit for about a week or so.
·So I would love it if someone could help me with codding that I might be able to use to get the 0.86 hz I need in order to read the led. Faster freq just cause the led counting to spin fast than is able to read.
· Thank you, Duane
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
00100000
Comments
The counter problem you solve it using weights 8 and 2 (10 dec, A hex) with a NAND or an AND, depending if the clear is triggered by a logic 1 or 0, choose accordingly, use a truth table.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Visit some of my articles at Propeller Wiki:
MATH on the propeller propeller.wikispaces.com/MATH
pPropQL: propeller.wikispaces.com/pPropQL
pPropQL020: propeller.wikispaces.com/pPropQL020
OMU for the pPropQL/020 propeller.wikispaces.com/OMU
pPropellerSim - A propeller simulator for ASM development sourceforge.net/projects/ppropellersim
Thank you so much!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
00100000
I would think they would prefer if you use gates and counter ic only for the whole project.
As with a microcontroller, you could check the if the counter have bits 2 AND 4 high
and send the reset signal.
Right now I am still trying to figure out whu the nand gate isnt working for me.... Instead of resetting at 9 and starting over at 0 it just freezes it up...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
00100000
http://www.kpsec.freeuk.com/counting.htm#reset
Using a 16mhz crystal and divide it by 16777216.
http://www.nxp.com/documents/data_sheet/HEF4521B.pdf
Can also use a crystal with a range from 262khz to 8mhz as the last 7stages are outputed.
this 4.096 mhz crystal and using Q22 (pin14) should generate exactly 1.000 hz
·http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=300-8412-ND
Post Edited (tonyp12) : 2/20/2010 6:52:41 PM GMT
But thanks, might be worth ordering for the futor..
I admit that what I am doing now is crude in conparison, but it works for what I need right now.....
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
00100000
Post Edited (blind_bot) : 2/20/2010 9:01:37 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
00100000
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
00100000