??? 12/05/06 08:11 Read: times |
#128963 - 7-Segment Connexions Responding to: ???'s previous message |
Dan K. said:
HOWEVER, please note that my wiring is probably not the standard way to wire a 7-segment display. If you are planning on doing something like this yourself, do not use my output values to P1 or you may find yourself more confused. I don't think there is any "standard" way; nor does there need to be - it just depends on the pinout of the particular display, and other routing constraints on the PCB. It just needs "one bit per segment" - it is immaterial which bit is which. What would be helpful, though, is to clearly document which segment is connected to which bit! Rather than just use "magic numbers", use symbolic names. This example is in 'C', but the same principle applies to assembler: http://www.8052.com/forum/read.phtml?id=55866 This makes it much easier to see what your code is doing, and much easier to adapt it to a different connection scheme. |