Thanks for the help guys.
I think I settled on constructing the matrix like this:
And the schematic is:
Let me know if you see any problems. Also, the book I am learning from recommended using the74LS174 decoder. and has provided example code.
Thanks for the help guys.
I think I settled on constructing the matrix like this:
And the schematic is:
Let me know if you see any problems. Also, the book I am learning from recommended using the74LS174 decoder. and has provided example code.
You seem to have good progress.
Here is a similar approach.
<img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=2045&d=1190816000">
Last edited by sayzer; - 26th September 2007 at 15:18.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Thanks!
If I'm only using RC0 - RC4 as my outputs on the PIC (ommitting RC5)...the declarations of PORTC = 0b111111 and PORTC = 0b011111 do the same thing, bcs the low 0 or 1 bit isn't connected to anything, correct? I can leave it like that, or should I omit that bit and just use 0b11111?
In PBP, PORTC = %11111, for instance, will set RC0, RC1, RC2, RC3 and RC4.
This should be the same in your "0b11111" example. Since you do not care about RC5, and possibly RC6 and RC7, then you can use one of your three "PORTC = 0b111111" or "PORTC = 0b011111" or "0b11111" examples.
They will all set RC0, RC1, RC2, RC3 and RC4 anyway.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks