Introduction to Microcontroller Programming
About PICmicro Chips
Clocking Your PICmicro Devices E-Blocks Flowcode Step By Step
PICmicro Projects
Labs |
Adding the SwitchesYou will use two sets of switches, one for each binary number. The output port has only eight bits, and so the biggest number that it can output is 1111 1111. This is equal to 255 in decimal. We are going to limit ourselves to inputting only seven bit numbers. This means that the biggest number we can input is 111 1111, which equals 127 in decimal. If we used bigger numbers, then we would overflow the capacity of the output.
|