Documentation (c) 2006-2008 Hobby-Robotics, LLC


HBBR Basic Help

COPYRIGHT.  Information in this document is subject to change without notice. No part of this document may be reproduced, translated, stored, or transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express written permission of Hobby-Rootics, LLC. Permission to print one copy is hereby granted for your personal use.

DISCLAIMER.  All information in this document, www.hobby-robotics.com website and any documentation supplied by Hobby-Robotics, LLC is believed to be correct. Hobby-Robotics, LLC assumes no responsibility for the accuracy of this information and is not responsible for typographical or printing errors or omissions. Pictures and photos are for a pictorial representation only, they may not be representations of the exact product.The copyright holders make no representation about the suitability of this documentation for any purpose. It is provided “as is” without expressed or implied warranty.


Table of Contents

1. IDE Step by Step
HBBR IDE at a glance
Installing HBBR Basic
Registration
Quick start project
New Project
Add runtime module
Add or Change runtime module
Add new source file
Add Sub Main() and save
Set source as Main
Edit CPU configuration
Edit Linker Configuration
Edit runtime configuration
Save new project
Compile project
View compile messages
View HEX
Verify serial port COM settings
Upload to Flash
Connect and View Terminal
Debug with Watch and Stack View
Explore with CPU View
Dialogs
2. GUI Reference
File Menu commands
File New command
File New dialog
File Open command
File Save command
File Save As command
File Save As dialog
File Set As Project Main command
File Remove command
File Properties command
File New Project command
File Open Project command
File Save Project command
File Save Project As command
File Save Project HEX File command
File Close Project command
File Print command
Print dialog
File Print Preview command
Print Preview toolbar
File Print Setup command
Print Setup dialog
File Exit command
Edit Undo command
Edit Redo command
Edit Cut command
Edit Copy command
Edit Paste command
Edit Find Command
Find Dialog
Find Next command
Edit Replace Command
Replace Dialog
View Toolbar command
Toolbar
View Status Bar command
Status bar
View Serial Bar command
Serial Toolbar
View Debug Bar command
Debug Toolbar
View Workspace command
View CPU View command
View Watch/Stack command
View CPU View command
View Clean Log command
View Line Numbers command
View Terminal Echo command
View Terminal Follow command
View Terminal Clean command
Project Settings command
Project Compile command
Project Check Syntax command
Project Program FLASH command
COM Port Settings dialog
Project Connect command
Project Disconnect command
Project Reset command
Debug Go command
Debug Continue command
Debug Stop command
Debug Up command
Debug Down command
Window menu file selection
Window View HEX command
Window View Terminal command
Help About command
About Dialog
Registration Dialog
Upload dialog
Option Edit command
Option Edit dialog
Terminal View
HEX View
3. Hello World! Step by Step Tutorial
Open HBBR Basic IDE
Create Project
Enter Source Code
Compile Project
Upload To Micro controller
Terminal
4. Language
Introduction
HBBR BASIC Basics
HBBR Basic Project
Configuring the project
HBBR Basic Language
Data Types
Literals
Variables
Constants
Strings
Arrays
Structures
Registers
Expressions and Operators
Address of the symbol AddressOf
Conversion operators
Flow Control
If Then statement
Select Case statement
Do Loop statement
For To Next statement
Goto statement
Subroutine and Function
Subroutine
Function
Interrupts with Irq
Runtime
Errors
Preprocessing
5. Language Reference
Keywords
Identifiers
Literal Values
Boolean literals
Integral literals
Floating point literals
String literals
Data Types
Simple Data Types
Boolean Type
SByte Type
Byte Type
Short Type
UShort Type
Integer Type
UInteger Type
Single Type
String Type
Variables and Constants
Arrays
Array type
Array dimensions
Array initialization
Structures
Structure type
Structure initialization
Expressions and Operators
Logical operators
Comparison operators
Bitwise operators
Shift operators
Mathematical operators
Integer operators
Floating point
String operators
Combined assignment operators
Special operators
AddressOf
Conversion operators
Comments
Statements in alphabetical order
Call statement
Const statement
Debug statement
Declare statement
Dim statement
Do Loop statement
For Next statement
Function statement
Goto statement
If Then statement
Irq statement
Print statement
Select Case statement
Sub statement
Asm Statement
In-line Assembler
Preprocessing
Include directive
Const directive
If Then ElseIf Else End If directives
Predefined #Const values
6. Compiler
Errors
Lexer/Parser
700-799 Preprocessor
900-999 Internal
1000-1499 Symbol
1500-1999 Contex and Scope
2000-2999 Type
4000-4999 Code Generation
5000-5999 Assembler
9000-9999 Linker
Warnings
Lexer/Parser
700-799 Preprocessor
1000-1499 Symbol
4000-4999 Code Generation
5000-5999 Assembler
9000-9999 Linker
7. Assembler
8. Runtime Module Reference
Runtime Module the MOD file
Standard Runtime Variants
Atmel AT91SAM7S Devices
Supported AT91SAM7S Devices
Programming AT91SAM7S and AT91SAM7X devices
SAM-BA Boot
SAM-BA recovery (summary)
Programming steps for serial interface (RS-232)
Programming steps for USB interface
Installing SAM-ICE JTAG support
Programming steps for SAM-ICE JTAG interface
NXP LPC2000 Device
Supported LPC2000 Devices
Programming LPC2000 devices
Programming steps for serial (RS-232) interface
Runtime Startup process
Interrupt Handling
Spurious interrupts
Configuring MOD
Linker configuration
Runtime configuration
LPC2000 configuration
AT91SAM7 configuration
9. Runtime Functions
10. String Functions
11. Math Functions
12. HAL Functions
13. LPC2000 SDK
14. AT91SAM7 SDK
15. Release Notes
Version 2.000
Version 1.300 BETA17
Version 1.200 BETA16
Version 1.200 BETA15
Version 1.200 RELEASE
Version 1.107 BETA14
Version 1.106 BETA13
Version 1.105 BETA12
Version 1.104 BETA11
Version 1.103 BETA10
Version 1.102 BETA9
Version 1.101 BETA8
Version 1.100 RELEASE
Version 1.007 BETA7
Version 1.006 BETA6
Version 1.005 BETA5
Version 1.004 BETA4
Version 1.003 BETA3
Version 1.002 BETA2
Version 1.001 BETA1
16. HBBR Basic FAQs
Q and A
17. HBBR BASIC SOFTWARE LICENSE AGREEMENT
Important:
License and Certain Restrictions:
Trademark:
Disk Warranty:
Certain Limitations:
Limitation of Damages:
Miscellaneous:
18. HBBR Basic Other license
Index

List of Tables

2.1.
2.2.