04.03.2013 Views

Basic Micro Studio Syntax Manual

Basic Micro Studio Syntax Manual

Basic Micro Studio Syntax Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

HIGH<br />

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

high pin<br />

• PIN - is a variable, constant or expression that specifi es which pin to go high.<br />

Supported<br />

• BA - Supported<br />

• BAN - Supported<br />

• BAP - Supported<br />

• BAP40 - Supported<br />

Commands<br />

Description<br />

The HIGH command is an output command that will set a pin HIGH. All pins can be in three states.<br />

HIGH, LOW and FLOAT (input). The HIGH command will change any of these states to an output and<br />

set the pin HIGH (5VDC).<br />

Notes<br />

1. If a variable is used, that variables value will be directly translated into a pin number. If the variable<br />

equals 0 then P0 will go high. If the value is out of range to the pins that are present, nothing will<br />

happen. If you have 10 pins and the variable equals 11 then nothing will happen.<br />

Examples<br />

The following program is a simple loop using HIGH and LOW commands that will repeat forever. If<br />

you connect an LED to P0 it will blink at half second intervals forever.<br />

Main<br />

High p0<br />

Pause 500<br />

Low p0<br />

Pause 500<br />

Goto Main<br />

115

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

Saved successfully!

Ooh no, something went wrong!