
Originally Posted by
Lcj100
Can u show me the example how to calculate the numbers in lookup command?What is the meaning of B12 = B10 // 10?
You have to think binary to figure out the numbers in the lookup table, so here goes . . . take a port to drive displays, I pick PortB
connect the segments to the port, to make it easy on myself, I will select ports in numerical/alphabetical order, so PortB.0 is segment A, PortB.1 is segment b, PortB.2 is segment C . . . . Now to make zero you must illuminate the following segments: abcdef, which means portsB 012345 which translates to %00111111 or decimal 63 or hex 3F. The number 1 would be binary %00000110 or Dec. 6 or Hex 06 and so on and so forth.
Last edited by Archangel; - 2nd February 2009 at 05:02.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks