??? 07/21/05 14:27 Modified: 07/21/05 14:32 Read: times Msg Score: 0 +1 Good Answer/Helpful -1 Overrated |
#97735 - Port 1 output/input conflict. Responding to: ???'s previous message |
Hello Mr. U Kaz,
I think Mr. Abhishek Singh has found your problem. http://www.8052.com/profile.phtml?MID=8804 Why do you make port 1 an output and then try to make it input data? MOV P0,#00H MOV P1,#00H <--- port 0 assigned as output here MOV P2,#00H MOV P3,#00H ..... HERE: JNB P1.7, HERE <--- then you try to make it an input here CALL DEBOUNCE <--- where is the second test of switch? Mr. Abhishek Singh also wonders why you don't re-test P1.7 again. Isn't that the purpose of Debouncing? Regards, Charles Bannister |