Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/13/02 09:02
Read: times


 
#20774 - RE: Port default direction
Um....
Is it means that the default setting are:
P0 = Hi-Z
P1 ~ P3 = Output (0xFF) and configured for input?

For my second question, please look for the assembly code as shown below:

MOV P0 0xFF -- P0 = Output (0xFF)

MOV A P0 -- P0 = Input (data is depend on input port)

INC A -- P0 = Input/Output/Hi-Z??

..... others code


Since INC A instruction (or others code which are not involved any port data input/output setting, eg: DEC A, CLR A..etc) is not related to any port setting, is it (instruction) remain for the previous port setting (as the code above, P0 should be input?), or it set P0 port back to the defaut setting, which is output (or Hi-Z?)?

How about same case is happended in port 1 ~ 3??

Thank for your help!

Best regard,
Alex Au

List of 7 messages in thread
TopicAuthorDate
Port default direction            01/01/70 00:00      
RE: Port default direction            01/01/70 00:00      
RE: Port default direction            01/01/70 00:00      
RE: Port default direction            01/01/70 00:00      
RE: Port default direction            01/01/70 00:00      
RE: Port default direction            01/01/70 00:00      
RE: Port default direction            01/01/70 00:00      

Back to Subject List