BS2-P40 DIRS(input/output) question
Maj.Slayer
Posts: 4
I have a problem. I cant seem to get SERIN's Flow control pin to go low then high. I'm using a BS2-p40 and my Flow Control pin is AUX 13. How do I set this aux pin for input or output mode?
Thanks.
Sean
Thanks.
Sean
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
DIR13=1 ' sets x13 as an output
OUT13=1
OUT13=0
MAINIO ' switch to the 16 main pins
DIR13=1 ' sets p13 as an output
OUT13=1
OUT13=0
AUXIO
SERIN 12\13,$54,[noparse][[/noparse]yy] ' uses x12 as data input and x13 for flow control
' that automatically makes x13 an output and x12 an input
SERIN 16\13,$54,[noparse][[/noparse]xx] ' uses debug port with flow control on x13
Also you can look at the IOTERM command for switching between the main and aux pins.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Have a good day,
Sean(Maj.Slayer)