I am trying to output to leg 7 out 0. I can manipulate with high and low command, but cannot use pin0 as I would like to. Problem is using piezo speaker and wish to drive between two output pins to effectively increase voltage across the device. I have output on pin4 and wanted to use a command like pin0=pin4 xor $1 to make pin 0 the complement of pin 4.
Any suggestions? I am using pin1, pin2 and pin3 as inputs. I have thought of a transistor "invertor" driven by pin4 and connecting the piezo across the input and output of the invertor, but that is extra circuitry. Alternately, I have considered a cmos NAND gate or cmos invertor chip, but that adds more complexity. I really would like to do it within the 08M chip if at all possible. I have VERY little program space left -- not enough to use high and low and an if statement to check pin4.
Thanks for any suggestions.
Any suggestions? I am using pin1, pin2 and pin3 as inputs. I have thought of a transistor "invertor" driven by pin4 and connecting the piezo across the input and output of the invertor, but that is extra circuitry. Alternately, I have considered a cmos NAND gate or cmos invertor chip, but that adds more complexity. I really would like to do it within the 08M chip if at all possible. I have VERY little program space left -- not enough to use high and low and an if statement to check pin4.
Thanks for any suggestions.