DIRS and OUTS
Newzed
Posts: 2,503
If I write:
DIRH = 1
OUTH = 0
will that make pins 8-15 outputs and set them all low?
Sid
DIRH = 1
OUTH = 0
will that make pins 8-15 outputs and set them all low?
Sid
Comments
To my opinion (and that of the Stamp manual :-): yes, that should work that way!
Regards and success,
Klaus
OUTH = %00000000
DIRH = %11111111
Using binary values when working with multiple IO pins helps "visualize" what's going on. Your code is doing this:
DIRH = %00000001
OUTH = %00000000
... so now you can see why only P8 is being made an output.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Bespreking aan u later
Sid
Sid