Skip to main content

SEROUT

Syntax

SEROUT pin, baudrate, { posTrue,} [OutputList   ] OutputList  =  expr | arrayname \ count | stringname$ {\count} | "string"   { , OutputList}

Description

SEROUT sends [data-list] bytes out as asynchronous serial data on pin at a baudratePosTrue is an optional parameter, and if set to 0 then the data is inverted.

[OutputList] can contain a list of constants, variables, "constant-string" or  stringame$   The latter will send out bytes starting from stringname$(0) until a 0 byte is read.

ARMstamp-

If pin is 16 then data is transmitted on the SOUT pin. SIN and SOUT are always negative true

Baudrates can be upto 115.2 Kbaud for pins 0-15 or 19.2 Kbaud for pin 16 (SIN and SOUT). SIN and SOUT are limited by the level translators.

ARMmite-

If pin is 16 then data is transmitted on the SOUT pin. SIN and SOUT are always positive true

Baudrates can be upto 115.2 Kbaud for all pins

Example

SEROUT 1, 19200,
[$31,$32,$33] ' sends out 123 at 19.2Kbaud

Differences from other BASICs

  • no equivalent in Visual BASIC
  • simplified from PBASIC

See also