04.03.2013 Views

Basic Micro Studio Syntax Manual

Basic Micro Studio Syntax Manual

Basic Micro Studio Syntax Manual

SHOW MORE
SHOW LESS

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

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

HSEROUT<br />

<strong>Syntax</strong><br />

hserout {uart,}[{modifi ers}data1,...,{modifi ers}dataN]<br />

Commands<br />

• UART - is an optional argument on a 1 UART processor. It is a constant of 1 or 2 that specifi cs<br />

what UART to use. See the HSERIAL Capable Pin table below.<br />

• Modifi ers - supports all output modifi ers. For additional information regarding modifi ers see the<br />

Modifi er section of this manual.<br />

• Data - is a variable where data sent from the debug window will be stored.<br />

Supported<br />

• BA - Supported<br />

• BAN - Supported<br />

• BAP - Supported<br />

• BAP40 - Supported<br />

Description<br />

The HSERIN / HSEROUT commands use a special hardware feature called a UART. The UART<br />

allows the processor to perform other tasks while receiving or sending serial data. The hardware runs<br />

in the background and is processor independent. Data that is received is stored in a buffer, regardless<br />

of what the processor is doing. The HSERIN / HSEROUT commands then retrieve this data from<br />

the buffer. Some processors have two UARTs that run independent of each other. The UART output<br />

is inverted, which is setup to work with a RS232 circuit. Non inverted mode is not support. A simple<br />

inverter circuit could be used if necessary. For all HSERIN / HSEROUT capable pins see the table<br />

below.<br />

HSERIAL Capable Pins<br />

Processor HSEROUT (TX) HSERIN (RX) HSEROUT (TX2) HSERIN (RX2)<br />

Nano 18 P5 P2<br />

Nano 28 P14 P15<br />

Nano 40 P14 P15<br />

Atom 24m P14 P15<br />

Atom 28m P14 P15<br />

Atom 40m P14 P15<br />

AtomPro One S_OUT S_IN<br />

AtomPro 24m P15 P14<br />

AtomPro 28m P15 P14<br />

AtomPro 40m S_OUT S_IN P15 P14<br />

ARC32 S_OUT S_IN P26 P38<br />

Notes<br />

Most of the information for HSEROUT is duplicated from HSERIN. See HSERIN.<br />

122

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

Saved successfully!

Ooh no, something went wrong!