??? 02/14/10 08:19 Read: times |
#173149 - PROBLEM FIXED - Working now Responding to: ???'s previous message |
the following code did it .
$MOD51 ; ; The processor clock speed is 11.059MHz ; Cycle time is 1.1ms input_port equ p2.7 output_port equ p2.0 org 00 ljmp main org 100h main: setb input_port ;prepare p2.7 for input setb output_port loop: mov c,input_port ;read the state of p2.7 and ;store in the carry flag cpl c ;compliment the input mov output_port, c ;transfer p2.7 status to p2.0 sjmp loop end |
Topic | Author | Date |
problems programming the P89V51 | 01/01/70 00:00 | |
here is the schematic I am following | 01/01/70 00:00 | |
EA | 01/01/70 00:00 | |
tied EA high still no luck | 01/01/70 00:00 | |
PROBLEM FIXED - Working now![]() | 01/01/70 00:00 |