ВУЗ: Не указан
Категория: Не указан
Дисциплина: Не указана
Добавлен: 12.06.2025
Просмотров: 8158
Скачиваний: 1
© MCS Electronics, 1995-2007
BASE64DEC , BASE64ENC , IP2STR , UDPREAD , UDPWRITE , UDPWRITESTR , TCPWRITE , TCPWRITESTR , TCPREAD , GETDSTIP , GETDSTPORT , SOCKETSTAT , SOCKETCONNECT , SOCKETLISTEN , GETSOCKET , CLOSESOCKET , SETTCP , GETTCPREGS , SETTCPREGS , SETIPPROTOCOL , TCPCHECKSUM
Text LCD
Text LCD routines work with normal text based LCD displays.
HOME , CURSOR , UPPERLINE , THIRDLINE , INITLCD , LOWERLINE , LCD , LCDAT , FOURTHLINE , DISPLAY , LCDCONTRAST , LOCATE , SHIFTCURSOR , DEFLCDCHAR , SHIFTLCD , CLS
Trig & Math
Trig and Math routines work with numeric variables.
ACOS , ASIN , ATN , ATN2 , EXP , RAD2DEG , FRAC , TAN , TANH , COS , COSH , LOG , LOG10 , ROUND , ABS , INT , MAX , MIN , SQR , SGN , POWER , SIN , SINH , FIX , INCR , DECR , DEG2RAD
Various
This section contains all statements that were hard to put into another group
CONST , DBG , DECLARE FUNCTION , DEBUG, DECLARE SUB , DEFXXX , DIM , DTMFOUT , EXIT , ENCODER , GETADC , GETKBD , GETATKBD , GETRC , GOSUB , GOTO , LOCAL ,ON VALUE , POPALL , PS2MOUSEXY , PUSHALL , RETURN , RND , ROTATE , SENDSCAN , SENDSCANKBD , SHIFT , SOUND , STCHECK , SUB , SWAP , VARPTR , X10DETECT , X10SEND , READMAGCARD , REM , BITS , BYVAL , CALL , #IF , #ELSE , #ENDIF
page -19-
© MCS Electronics, 1995-2007
Installation
Installation of BASCOM
After you have downloaded the ZIP file you need to UNZIP the file.
On Windows XP, for the DEMO version, run the setupdemo.exe file from within the Zipped file.
The commercial version comes with a license file in the form of a dll. This file is always on the disk where the file SETUP.EXE is located. When explorer does not show this file, you must set the option in explorer to view system files (because a DLL is a system file).
For the commercial version the setup file is named SETUP.EXE
Some resellers might distribute the DLL file in a zipped file. Or the file might have the extension of a number like "123". In this case you must rename the extension to DLL.
Make sure the DLL is in the same directory as the SETUP.EXE file.
When you are using the DEMO version you don't need to worry about the license file.
When you are installing on a NT machine like NT4 , W2000, XP or Vista, you need to have Administrator rights.
After installing BASCOM you must reboot the computer before you run BASCOM.
The installation example will describe how the FULL version installs. This is almost identical to the installation of the DEMO version.
Run the SETUPDEMO.EXE (or SETUP.EXE) by double clicking on it in explorer.
The following window will appear:
(screen shots may differ a bit)
page -20-
© MCS Electronics, 1995-2007
Click on the Next button to continue installation.
The following license info window will appear:
Read the instructions , select 'I accept the agreement' and press the Next button. The following window will be shown :
page -21-
© MCS Electronics, 1995-2007
Read the additional information and click the Next button to continue.
Now the next screen will appear:
You can select the drive and path where you like BASCOM to be installed. You can also accept the default value which is :
C:\Program Files\MCS Electronics\BASCOM-AVR
page -22-
© MCS Electronics, 1995-2007
When you are finished click the Next Button to continue.
When the directory exists, because you install a newer version, you will get a warning :
In case of this warning, select Yes.
You will now see the following window:
You can choose to create into a new Program Group named 'BASCOM-AVR' , or you can modify the name, or install into an existing Program Group. Press the Next-button after you have made your choice.
Now the files will be installed.
After the main files are installed, some additonal files will be installed
page -23-
© MCS Electronics, 1995-2007
These additional files can be PDF files when the program is distrubuted on a CD-ROM.
When the installation is ready you will see the last screen :
You have to reboot your computer when you want to make advantage of the programmers that BASCOM supports. You can also do this at a later stage.
page -24-
© MCS Electronics, 1995-2007
The BASCOM-AVR Program folder is created:
You can view the "Read me" and "License" files content and you can start BASCOM-AVR. BASCOM supports both HTML Help and old Winhelp(HLP). The HLP file is not distributed in the setup. You need to use the Update Wiz to download it. But it is advised to use the HTML-Help file.
When you used to use the HLP file, and find it missing now, turn on 'Use HTML Help' in Options, Environment, IDE.
page -25-
© MCS Electronics, 1995-2007
BASCOM IDE
Running BASCOM-AVR
After you have installed BASCOM, you will find a program entry under MCS Electronics\BASCOM-AVR
Double-click the BASCOM-AVR icon |
to run BASCOM. |
The following window will appear. (If this is your first run, the edit window willbe empty.)
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'.
page -26-
© MCS Electronics, 1995-2007
This will show the following window:
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.
In the example above, the Program Category has been selected and at the right pane, al 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:
page -27-
© MCS Electronics, 1995-2007
To preserve screen space there are no large icons available.
Option |
Description |
Menus show recent used |
With this option the IDE will learn the menu options you |
commands first |
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 |
This option will show the remaining menu options after |
delay |
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 Tooltips on toolbars |
This option is on by default and it will show a tooltip |
when you hold the mouse cursor above a toolbar button |
|
Show shortcut keys in Tooltips |
This option is on by default and it will show the shortcut |
in the tooltip. For example CTRL+C for the Copy button. |
|
File New
This option creates a new window in which you will write your program. The focus is set to the new window.
You can have multiple windows open at the same time.
Only one window can have the focus. When you execute other functions such as Simulate or Program Chip, BASCOM will use the files that belong to the current active program. This is in most cases the program which has the focus.
File new shortcut: , CTRL + N
File Open
page -28-