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> CompilerIf 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.DECLARE RSIN_TIMEOUT 0 to 65535 microseconds (us)Sets the time, in ms, that RSIN will wait for a start bit to occur.RSIN waits in a tight loop for the presence of a start bit. If no timeoutparameter is issued, then it will wait forever.The RSIN command has the option of jumping out of the loop if nostart bit is detected within the time allocated by timeout.If the DECLARE is not used in the program, then the default timeoutvalue is 10000us or 10ms.48Copyright Crownhill 2001

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

Saved successfully!

Ooh no, something went wrong!