Views
5 years ago

Basic Micro Studio Syntax Manual

Basic Micro Studio Syntax Manual

Basic Micro Studio Syntax

Basic Micro Studio Syntax Manual Basicmicro.com (c) 2011 Version 2.1

  • Page 2 and 3: Warranty Basic Micro, Inc warrantie
  • Page 4 and 5: - (Negative) ......................
  • Page 6 and 7: LCDWRITE ..........................
  • Page 8 and 9: Hardware 8 Hardware
  • Page 10 and 11: Chip Hardware Comparison Descriptio
  • Page 12 and 13: Hardware Nano 28 The BasicATOM Nano
  • Page 14 and 15: Hardware Nano 28X The BasicATOM Nan
  • Page 16 and 17: Hardware BasicATOM 24m The BasicATO
  • Page 18 and 19: Hardware BasicATOM Pro ONEm The Bas
  • Page 20 and 21: Quick Start 20 Quick Start
  • Page 22 and 23: Quick Start Nano Development Board
  • Page 24 and 25: Quick Start Studio Setup Before usi
  • Page 26 and 27: Quick Start First Program The next
  • Page 28 and 29: Quick Start Terminal Window After t
  • Page 30 and 31: Quick Start Blinking LED Now that y
  • Page 32 and 33: Variables Structure - Variables Var
  • Page 34 and 35: Variable Modifi er Type Modifi er D
  • Page 36 and 37: Constants 36 Constants
  • Page 38 and 39: Pins and Ports 38 Pins and Ports
  • Page 40 and 41: port variable names. Using the vari
  • Page 42 and 43: Pin and Port DIR Variables Names Va
  • Page 44 and 45: Math Structure - Math As with most
  • Page 46 and 47: Operator Description FCOS Floating
  • Page 48 and 49: SIN, COS Structure - Math In intege
  • Page 50 and 51: SQR (Square Root) SQR returns the i
  • Page 52 and 53:

    Subtraction (-) Structure - Math Su

  • Page 54 and 55:

    Fractional Multiplication (*/) Mod

  • Page 56 and 57:

    Shift Left (> 4 serout sout, i9600,

  • Page 58 and 59:

    Exclusive OR (^) Structure - Math T

  • Page 60 and 61:

    Greater Than (>) The Greater Than (

  • Page 62 and 63:

    NOT Structure - Math The NOT operat

  • Page 64 and 65:

    FSQRT FSIN FCOS FTAN Structure - Ma

  • Page 66 and 67:

    FEXP Structure - Math The FEXP oper

  • Page 68 and 69:

    Modifi ers 68 Modifi ers

  • Page 70 and 71:

    Modifi ers Name Input Output Descri

  • Page 72 and 73:

    SDEC SDEC{#max} expression{\#min} #

  • Page 74 and 75:

    SHEX SHEX{#max} expression{\#min} #

  • Page 76 and 77:

    ISHEX ISHEX{#max} expression{\#min}

  • Page 78 and 79:

    SBIN SBIN{#max} expression{\#min} #

  • Page 80 and 81:

    ISBIN ISBIN{#max} expression{\#min}

  • Page 82 and 83:

    STR SKIP WAIT STR array\length{\eol

  • Page 84 and 85:

    Command Reference Commands The foll

  • Page 86 and 87:

    Commands Examples Run the example a

  • Page 88 and 89:

    BRANCH Syntax branch index, [label1

  • Page 90 and 91:

    BUTTON Syntax button pin, downstate

  • Page 92 and 93:

    Commands Schematics The fi rst sche

  • Page 94 and 95:

    COUNT Syntax count pin, time, cycle

  • Page 96 and 97:

    Commands Notes 1. The debug command

  • Page 98 and 99:

    Commands Example The following exam

  • Page 100 and 101:

    Commands Example Connect to the fol

  • Page 102 and 103:

    Commands Schematic There are a few

  • Page 104 and 105:

    Commands Schematics The schematic c

  • Page 106 and 107:

    EXCEPTION Syntax exception label

  • Page 108 and 109:

    FOR...NEXT Syntax for countVal = st

  • Page 110 and 111:

    FREQOUT Syntax freqout pin, duratio

  • Page 112 and 113:

    GOSUB Syntax gosub label{[argument1

  • Page 114 and 115:

    GOTO Syntax goto label • Label -

  • Page 116 and 117:

    HPWM Syntax hpwm pin,period,duty{,w

  • Page 118 and 119:

    HSERIN Syntax hserin uart, {tlabel,

  • Page 120 and 121:

    Commands Multiple UARTs When two UA

  • Page 122 and 123:

    HSEROUT Syntax hserout {uart,}[{mod

  • Page 124 and 125:

    HSERVOWAIT hservowait [pin1, ..., p

  • Page 126 and 127:

    Commands The above statement is loo

  • Page 128 and 129:

    Commands There is no limit to how m

  • Page 130 and 131:

    I2COUT Syntax i2cout sda, scl, cont

  • Page 132 and 133:

    Commands Examples Connect to the fo

  • Page 134 and 135:

    Commands Examples Connect to the fo

  • Page 136 and 137:

    LCDINIT Syntax lcdinit RS\ E\ D7\ D

  • Page 138 and 139:

    LCDWRITE Syntax lcdwrite RS\ E\ D7\

  • Page 140 and 141:

    Commands 2x16 LCD Memory Map The HD

  • Page 142 and 143:

    Commands Custom Shapes Custom chara

  • Page 144 and 145:

    Commands The LCDREAD command is use

  • Page 146 and 147:

    Commands Examples The LOOKDOWN comm

  • Page 148 and 149:

    Commands Constant strings can also

  • Page 150 and 151:

    NAP Syntax nap period Commands •

  • Page 152 and 153:

    Schematics The following schematic

  • Page 154 and 155:

    Schematics The following schematic

  • Page 156 and 157:

    PAUSE Syntax pause time Commands

  • Page 158 and 159:

    PAUSECLK Syntax pauseclk time Comma

  • Page 160 and 161:

    PULSIN Syntax pulsin pin, direction

  • Page 162 and 163:

    PULSOUT Syntax pulsout pin, time

  • Page 164 and 165:

    PWM Syntax pwm pin, period, duty, c

  • Page 166 and 167:

    RCTIME Syntax rctime pin,state,{tla

  • Page 168 and 169:

    Commands Example The next example i

  • Page 170 and 171:

    READDM Syntax readdm address,[{modi

  • Page 172 and 173:

    RETURN Syntax return {DataResult} C

  • Page 174 and 175:

    REVERSE Syntax reverse pin • Pin

  • Page 176 and 177:

    Commands All of the Basic Micro mod

  • Page 178 and 179:

    Commands Limitations The Nano maxim

  • Page 180 and 181:

    SEROUT Syntax serout txpin{\fpin},b

  • Page 182 and 183:

    Commands Parity Parity is used to d

  • Page 184 and 185:

    Commands Notes 1. The Nano maximum

  • Page 186 and 187:

    SHIFTIN Syntax shiftin dpin,cpin,mo

  • Page 188 and 189:

    Commands Notes 1. SHIFTIN and SHIFT

  • Page 190 and 191:

    ;set and lock analog mode high ATT

  • Page 192 and 193:

    Speeds Processor Mode 0-4 Mode 5-7

  • Page 194 and 195:

    SLEEP Syntax sleep time • Time -

  • Page 196 and 197:

    Commands Example Connect a piezo sp

  • Page 198 and 199:

    STOP Syntax stop Supported • BA -

  • Page 200 and 201:

    TOGGLE Syntax toggle pin • Pin -

  • Page 202 and 203:

    Commands Example Connect to the fol

  • Page 204 and 205:

    WRITEDM Syntax write address,[{modi

  • Page 206 and 207:

    Interrupts Interrupts While the pro

  • Page 208 and 209:

    Interrupts Interrupt Types There ar

  • Page 210 and 211:

    Basic Stamp Conversion 210 Basic St

  • Page 212 and 213:

    EEPROM The EEPROM command has no MB

  • Page 214 and 215:

    Basic Stamp Conversion ON The ON co

  • Page 216 and 217:

    Basic Stamp Conversion SLEEP The SL

  • Page 218 and 219:

    Compiler Directives Compiler Direct

  • Page 220 and 221:

    #ELSE #IF expression ..optional cod

  • Page 222 and 223:

    Reserved Words 222 Reserved Words

  • Page 224 and 225:

    Reserved Words Name Name Name Name

  • Page 226 and 227:

    Reserved Words Name Name Name Name

  • Page 228 and 229:

    Reserved Words Name Name Name Name

  • Page 230 and 231:

    Dec Hex Char Function Dec Hex Char

In-Sight Micro Vision System Installation Manual - finger gmbh & co. kg
Philips Micro Hi-Fi System - User manual - AEN
Manual - TRITON STUDIO Basic Guide - Korg
www.tachyoninc.com Tachyon XC Micro Instruction Manual - English
NANO-945GSE3 User Manual - Orbit Micro
In-Sight® Micro Series Vision System Installation Manual
GI Milsim Micro 50 Manual - Paint Supply GmbH
Philips Micro Hi-Fi System - User manual - DEU
User Manual Nios micro III & V - Phonak Hearing Systems
Fellowes Powershred Micro Cut Shredder MS-470Ci Manual
User Manual Exélia Art micro / Exélia Art micro Petite - Phonak
User Manual Nios micro III & V - Phonak
Philips Micro Hi-Fi System - User manual - ENG
PCL 5 Color Technical Reference Manual - Business Support ...
capture one 5 manual - Snap Studios
BBC Microcomputer Service Manual Oct 1985 Section 1 BBC Micro ...
Philips Micro Hi-Fi System - User manual - NLD
Philips Micro Hi-Fi System - User manual - ESP
Philips Micro Hi-Fi System - User manual - DAN
Motion Studio User Manual - IDT
Atari Basic Rev C Reference Manual/Atari-Basic ... - Strotmann.de
WM Basic™ User's Manual - MAELabs UCSD
SL424USB Studio/Live Mixer OPERATING MANUAL ... - Lightsounds
Philips Micro Hi-Fi System - User manual - POL
Philips Micro Hi-Fi System - User manual - SWE
User Manual Nios micro III & V - Phonak Hearing Systems