Running BASCOM-AVR

From MCS Wiki AVR
Revision as of 13:46, 4 February 2014 by Admin (Talk | contribs)
Jump to: navigation, search

After you have installed BASCOM, you will find a program entry under MCS Electronics\BASCOM-AVR

Double-click the BASCOM-AVR icon 
bascom-icon
 to run BASCOM.



 

The following window will appear. (If this is your first run, the edit window will be empty.)

 

 

Bascomide.png

 

The most-recently opened file will be loaded automatically. Like most Windows programs, there is a menu and  a toolbar. The toolbar can be customized. To do this, place the mouse cursor right beside the 'Help' menu.

Then right-click. You can turn on/off the toolbars or you can choose 'Customize'.

 

This will show the following window:


Toolbar cust.png

 

You have the option to create new Toolbars or the reset the toolbars to the default.

To place a new button on a menu bar, select the 'Commands' TAB.

 

Toolbar commands.png


In the example above, the Program Category has been selected and at the right pane, all buttons that belong to the Program-category are shown.

You can now select a button and drag & drop it to the Toolbar. To remove a button from the Toolbar, you drag it out of the Toolbar and release the left mouse button.

 

On the Options-TAB you can further customize the Toolbar:


Setup options.png

 

To preserve screen space there are no large icons available.

Option

Description

Menus show recent used commands first

With this option the IDE will learn the menu options you use. It will show only the most used menu options. The idea is that you can find your option quicker this way.

Show full menus after a short delay

This option will show the remaining menu options after short delay so you do not need to click another menu option to show all menu options.

Reset my usage data

This option will reset the data the IDE has collected about your menu choices.

Show Tool tips on toolbars

This option is on by default and it will show a tool tip when you hold the mouse cursor above a toolbar button

Show shortcut keys in Tool tips

This option is on by default and it will show the shortcut in the tool tip. For example CTRL+C for the Copy button.

 

 

The Editor

The editor supports syntax highlighting. Code you enter can be reformatted automatically.

When you press CTRL+J you can select a template. A template is a small piece of code that can be inserted automatically.

When you press CTRL+J you can select a template or you can type the template name and press CTRL+J. If there is only one template starting with that name, the template will be inserted. Otherwise the options are shown.

 

Editor templates.png

 

Templates are stored in the file bascavr.tpl


When you press SHIFT and move the mouse cursor over a variable, constant or other element you will get a tool tip with info.

 

Editor tooltip.png

In the sample above the variable 's' was selected and the tool tip shows that it is a string with a length of 16 bytes in the modules crc8-16-32.bas

This functionality only works when the Code Explorer is shown. This because in order to get the data info, the project code must be processed on the background. This processing is only active when the Code Explorer is active.


Languages   English Deutsch  
Personal tools
Namespaces
Variants
Actions
Navigation
In other languages
Language