??? 02/27/07 13:49 Read: times |
#133806 - just once Responding to: ???'s previous message |
Mike Stegmaier said:
I was wondering. Rather than use code that relies on a port pin to be high then low, I was thinking of adjusting my code to something like this:
mov dph,P1 mov dpl,P1 mov A,P1 movx @dptr,A self: ajmp self Now the above seems very ideal to me since I could write to any address, any byte, with less than 16 bytes of code. How is the above code supposed to work? Will you reset your controller for each iteration? And as Erik said, how does your controller know that an address-byte is present and not the data-byte? To the controller, all bytes on P1 are alike... you cannot tell in any way when the next byte is ready/present. regards Patrick |