Default IO status
Basil
Posts: 380
Hi All,
Just a query on the default direction and value of the IO ports on bootup.
Are the ports set to input or output while the prop is starting up (Or neither)? Obviously those special function·pins used at startup·are already answered for, but what about the others?
If output, what is the default value?
Also, is this the same default vlaue·once a port is set to output direction using DIRA?·I'd asusme its low but probably wrong
Thanks All.
Just a query on the default direction and value of the IO ports on bootup.
Are the ports set to input or output while the prop is starting up (Or neither)? Obviously those special function·pins used at startup·are already answered for, but what about the others?
If output, what is the default value?
Also, is this the same default vlaue·once a port is set to output direction using DIRA?·I'd asusme its low but probably wrong
Thanks All.
Comments
my guess is that the general i/o pins are all inputs (0)
In SPIN..
You have to set them to output with commands like dira[noparse][[/noparse]0..7]~~ ( set 0 thru to 7 (inc 7)) to outputs
Have a quick peeky boo at the Prop datasheet there is a good blurb on this exact issue.
Cheers
Ronald Nollet Australia
my guess is that the general i/o pins are all inputs (0)
In SPIN..
You have to set them to output with commands like dira[noparse][[/noparse]0..7]~~ ( set 0 thru to 7 (inc 7)) to outputs
Have a quick peeky boo at the Prop datasheet there is a good blurb on this exact issue.
Cheers
Ronald Nollet Australia
I noticed the spec sheet just now! What a wonderful document