Having just acquired an 18M2 (from an 18X) , I am desperately trying to get my head around the port.pin and pinport.pin notation. I have taken Technical's quote in #10 of this thread as my crutch (its on the wall!)
is the same as this?
What are the circumstances / preferences for using each?
Then I tried to employ this understanding to a DS18B20 with the READTEMP12 command whose syntax is described as
So does the READTEMP12 (and other similar commands) override any previously defined pin input and pin ouput statements?
Then I also have to understand port direction!! I cannot find an example of the dirb.0 command in the manual. Can I assume
Code:
DIRB.0=1
Code:
DIRSB=%00000001
Then I tried to employ this understanding to a DS18B20 with the READTEMP12 command whose syntax is described as
But of course the DS1B20 requires a conversation with the PICAXE, so "pin" must be an input AND output pin.READTEMP12 pin,wordvariable
- Pin is the input pin
So does the READTEMP12 (and other similar commands) override any previously defined pin input and pin ouput statements?