BS2p40 commands
Zim
Posts: 1
Can somebody tell me how the OUTL and OUTH commands will work on a BS2p40 IC? On the BS2-24 OUTL references to output 0-7 (low byte) and OUTH to 8-15 (high byte). Since the BS2p40 has 32 in/out pins, how can I command pins 16-31 in this way?
Also I don't get what the difference is between main I/O and aux I/O. Are these not completely interchangeable?
Thanks for your help.
Also I don't get what the difference is between main I/O and aux I/O. Are these not completely interchangeable?
Thanks for your help.
Comments
· AUXIO
· DIRL = %11111111··· ' make pins 16 - 23 outputs
· OUTL = %11001100··· ' update pins 16 - 23
Now keep in mind that every I/O operation at this point is directed to the AUXIO group. If you want to switch back to the lower group you can do that with MAINIO.·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com