Ports
Newzed
Posts: 2,503
Why doesn't "HIGH PortB" compile?· Is the HIGH command applicable only to specific pins?
Sid
Sid
Comments
If you want to make all of the RB pins outputs and high (what HIGH does), you'd have to do it like this:
· TRIS_B = %00000000
· RB = %11111111
This is similar to how we'd do it with the BASIC Stamp (though we'd use DIRL and OUTL).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA