11.07.2015 Views

PICBASIC PLUS LITE Manual - Profe Saul

PICBASIC PLUS LITE Manual - Profe Saul

PICBASIC PLUS LITE Manual - Profe Saul

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

KEYPAD Declare.RSIN-RSOUT Declares.<strong>PICBASIC</strong> <strong>PLUS</strong> CompilerDECLARE FONT_ADDR 0 to 7Set the slave address for the I 2 C eeprom that contains the font.When an external source for the font is chosen, it may be on any oneof 8 eeproms attached to the I 2 C bus. So as not to interfere with anyother eeproms attached, the slave address of the eeprom carrying thefont code may be chosen.If the DECLARE is omitted from the program, then address 0 is thedefault slave address of the font eeprom.DECLARE KEYPAD_PORT PORTAssigns the Port that the keypad is attached to.The keypad routine requires pull-up resistors, therefore, the best Portfor this device is PortB which comes equipped with internal pull-ups. Ifthe DECLARE is not used in the program, then PortB is the defaultPort.DECLARE RSOUT_PIN PORT . PINAssigns the Port and Pin that will be used to output serial data fromthe RSOUT command. This may be any valid port on the PIC.If the DECLARE is not used in the program, then the default Port andPin is PortB.0.DECLARE RSIN_PIN PORT . PINAssigns the Port and Pin that will be used to input serial data by theRSIN command. This may be any valid port on the PIC.If the DECLARE is not used in the program, then the default Port andPin is PortB.1.DECLARE RSOUT_MODE INVERTED , TRUE or 1 , 0Sets the serial mode for the data transmitted by RSOUT. This may beinverted or true. Alternatively, a value of 1 may be substituted to representinverted, and 0 for true.If the DECLARE is not used in the program, then the default mode isINVERTED.DECLARE RSIN_MODE INVERTED , TRUE or 1 , 0Sets the serial mode for the data received by RSIN. This may be invertedor true. Alternatively, a value of 1 may be substituted to representinverted, and 0 for true.47Copyright Crownhill 2001

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!