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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>PICBASIC</strong> <strong>PLUS</strong> CompilerDECLARE 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 SERIAL_BAUD 0 to 65535 bps (baud)Informs the RSIN and RSOUT routines as to what baud rate to receiveand transmit data.Virtually any baud rate may be transmitted and received, but there arestandard bauds, namely: -300, 600, 1200, 2400, 4800, 9600, and 19200.When using a 4MHz crystal, the highest baud rate that is reliablyachievable is 9600. However, an increase in the oscillator speed allowshigher baud rates to be achieved, including 38400 baud.If the DECLARE is not used in the program, then the default baud is9600.DECLARE RSOUT_PACE 0 to 65535 microseconds (us)Implements a delay between characters transmitted by the RSOUTcommand.On occasion, the characters transmitted serially are in a stream that istoo fast for the receiver to catch, this results in missed characters. Toalleviate this, a delay may be implemented between each individualcharacter transmitted by RSOUT.If the DECLARE is not used in the program, then the default is no delaybetween characters.Notes :RSOUT is oscillator independent as long as the crystal frequency isdeclared at the top of the program. If no declare is used, then RSOUTdefaults to a 4MHz crys tal frequency for its bit timing.The AT and CLS modifiers are primarily intended for use with serialLCD modules. Using the following command sequence will first clearthe LCD, then display text at position 5 of line 2: -RSOUT CLS , AT 2 , 5 , ”HELLO WORLD”The values after the AT modifier may also be variables.See also :DECLARE, RSIN116Copyright Crownhill 2001

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

Saved successfully!

Ooh no, something went wrong!