PDA

View Full Version : LCDCMD and AUXIO under BS2p40



JFReyes
09-24-2008, 12:17 AM
Hi:

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.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Josť

Mike Green
09-24-2008, 12:31 AM
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.

JFReyes
09-24-2008, 12:55 AM
Mike:

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.

Regards,

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Josť

Tracy Allen
09-24-2008, 01: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

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com (http://www.emesystems.com)

JFReyes
09-25-2008, 02:19 AM
I confirmed that LCDCMD works with AUXIO; I had something miswired :(

Thank you all for your help.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Josť