Hi,
In the following code sequence:
mov P1,#00 ;set port direction out mov P1,#0Ah ;output #00001010h to port 1
How does the uC know whether it should output the byte #0A to port 1 OR it should be setting P1.1 & P1.3 to input? I could understand how the 6821 PIA works since it has a Port Direction Register.
Allen
------ The next war will determine NOT who is right BUT what is left.