BS2 P40 addressing the X0 to X15 ports ???
tore eilertsen
Posts: 15
Hi..
Can someone tell me how to address the X ports on the bs2p40, I just need to make Xn high / low ???
tore
Can someone tell me how to address the X ports on the bs2p40, I just need to make Xn high / low ???
tore
Comments
All ports are always addressed exactly the same way. In the initial state the main ports are the ones being addressed. You must issue a command to switch to the auxillary ports. The primary command which does this is AUXIO. After the AUXIO command, all references affect physical pins 21 - 36. Take look at the PBASIC Reference manual or the PBASIC Help File for more details.
There are additional commands as well which deal with the main and auxillary ports. These are MAINIO and IOTERM. Check the above references for details on those commands as well, to get the complete picture.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Genius is one percent inspiration and ninety-nine percent perspiration."
Thomas Alva Edison