Accessing the pins
christopher
Posts: 31
Using Spin with dira and outa I have been able to configure and set as output and toggle all of ·the propeller·pins. However when I switch to another cog and use assembly I can only toggle p0-p7 and p8 using
mov dira,#$ffffffff··· ; to set all pins as output
mov outa,#$ffffffff·· ;to set all pins high
But this code only set p0-p7 and p8 high.·Where am I going wrong?
Thank You
Christopher·
mov dira,#$ffffffff··· ; to set all pins as output
mov outa,#$ffffffff·· ;to set all pins high
But this code only set p0-p7 and p8 high.·Where am I going wrong?
Thank You
Christopher·
Comments
edit: noticed an error in my syntax fixed and added a loop that toggles the pins once a second
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who says you have to have knowledge to use it?
I've killed a fly with my bare mind.
Post Edited (CJ) : 5/29/2006 5:02:59 PM GMT
Chris
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who says you have to have knowledge to use it?
I've killed a fly with my bare mind.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows