View Full Version : LCDCMD and AUXIO under BS2p40
09-23-2008, 11:17 PM
I'm trying to get the LCDAppMod demo to work on a test setup where the LCD is connected to pins 30 - 36 of the BS2p40. I've made the appropriate changes to the program but still cannot get the LCD to respond. Do the LCD commands (LCDCMD, LCDIN, LCDOUT) work for those pins (after issuing AUXIO)? Thanks for the help.
09-23-2008, 11:31 PM
They are supposed to work. The AUXIO statement is a "bank switching" statement. Rather than make extensive changes to the PBasic interpreter to support 32 I/O pins, the PBasic interpreter and the Stamp Editor still work in terms of 16 I/O pins. All the I/O statements and I/O variables are still in terms of 16 I/O pins, but the AUXIO statement exchanges one set of 16 for another internally in the PBasic interpreter.
09-23-2008, 11:55 PM
Thank you for your prompt reply. I understand the theory and agree that they should work, but perhaps these commands (being so specialized) were implemented outside the bank switching scheme and don't support AUXIO. Next I will rewrite the program using bit/pin commands to see if that's the case or else I'm making a dumb mistake elsewhere. I'll post my results later.
09-24-2008, 12:05 AM
The only change that needs to be made to the program is the AUXIO. The logical pin will still be 9:
LCDCMD 9, Command ' when chip enable is on AUXIO x9, pin 30 on the BS2p-IC
09-25-2008, 01:19 AM
I confirmed that LCDCMD works with AUXIO; I had something miswired :(
Thank you all for your help.