ВУЗ: Не указан

Категория: Не указан

Дисциплина: Не указана

Добавлен: 12.06.2025

Просмотров: 8227

Скачиваний: 1

ВНИМАНИЕ! Если данный файл нарушает Ваши авторские права, то обязательно сообщите нам.

© MCS Electronics, 1995-2007

Read/Write oscillator Read or write the oscillator settings

Read/Write frequency Read or set the board frequency

All options will set the command line parameters. A file named stk500.cmd will be created by the compiler with the proper syntax.

This file will be executed and the result is stored in the stk500.log file.

Lawicel BootLoader

The Lawicel Bootloader must be used with the StAVeR. The StAVeR contains a bootloader so you only need a serial interface, no parallel programmer or other programmers.

You can also use Hyperterminal.

When you have selected the Lawicel Bootloader from the Options, Programmer, the following window will appear when you press F4.

As the window suggests, press the reset button on the activity board or StAVeR, and the chip will be programmed. This is visible by a second wind that will be shown during programming.

When the programming succeeds, both windows will be closed.

When an error occurs, you will get an error message and you can clock the Cancel button in order to return to the Editor.

AVR ISP Programmer

The AVRISP programmer is AVR ICP910 based on the AVR910.ASM application note.

The old ICP910 does not support Mega chips. Only a modified version of the AVR910.ASM supports Universal commands so all chips can be programmed.

The new AVRISP from Atmel that can be used with AVR Studio, is not compatible! You need to select STK500 programmer because the new AVRISP programmer from Atmel, uses the STK500 protocol.

When you do not want to use the default baud rate that AVR910 is using, you can edit the file bascavr.ini from the Windows directory.

Add the section [AVRISP] Then add: COM=19200,n,8,1

page -84-

© MCS Electronics, 1995-2007

This is the default. When you made your own dongle, you can increase the baud rate

You need to save the file and restart BASCOM before the settings will be in effect.

USB-ISP Programmer

The USB-ISP Programmer is a special USB programmer that is fully compatible with BASCOM's advanced programmer options.

Since many new PC's and especial Laptop's do not have a parallel programmer anymore, MCS selected the USB-ISP programmer from EMBUD.

The drivers are located in the USB sub directory that is located in the BASCOM-AVR appliation folder.

When you connect the programmer, Windows (98, ME, 2000, XP) will recognize the new device automaticly.

Then the Hardware wizard will be started :

page -85-

© MCS Electronics, 1995-2007

Select 'No, not this time' and click Next, as there is no driver at Microsofts web.

The Wiz will show :

You need to select 'Install from a list or specific location' and click Next.

page -86-

© MCS Electronics, 1995-2007

You can specify the path of the USB driver. This is by default :

C:\Program Files\MCS Electronics\BASCOM-AVR\USB

Use the Browse-button to select it, or a different location, depending on your installation.

As the driver is not certified by Microsft, you will see the following window:

You need to select 'Continue Anyway'. A restore point will be made if your OS supports this and the driver will be installed.

After installation you must see the following window :

page -87-


© MCS Electronics, 1995-2007

After you press Finish you will see Windows can use the programmer :

In BASCOM , Options, Programmer you can select the new programmer now. There are no specific options for the USB programmer.

page -88-


© MCS Electronics, 1995-2007

So only the basic programming options are visible.

The USB-ISP programmer is very quick and supports all options that the Sample Electronics and STK200 programmers support.

MCS Bootloader

The MCS Boot loader is intended to be used with the$LOADER sample.

It uses the X-modem Checksum protocol to upload the binary file. It works very quick. The Boot loader sample can upload both normal flash programs and EEPROM images. The Boot loader sends a byte with value of 123 to the AVR Boot loader. This boot loader program then enter the boot loader or will jump to the reset vector (0000) to execute the normal flash program.

When it receives 124 instead of 123, it will upload the EEPROM.

When you select a BIN file the flash will be uploaded. When you select an EEP file, the EEPROM will be uploaded.

The Boot loader has some specific options.

page -89-

© MCS Electronics, 1995-2007

You can choose the boot size which is 1024 for the BASCOM $LOADER example.

Since this space is used from the normal flash memory, it means your application has 1024 less words for the main application. (A word is 2 byte, so 2KB less)

The boot loader is started when the chip is reset. Thus you need to reset the chip after you have pressed F4(program). But when you have connected the DTR line to the chip reset (with a MAX232 buffer) you can reset the chip automatically. You do need to set the 'Reset via DTR' option then.

By choosing 'Close programmer window when ready' the window will be closed when the loader returns 0.

In all other cases it will remain opened so you can look at a possible cause.

After you have pressed F4 to following window will appear :

As you can see, the loader sends a byte with value of 123.

You need to reset the chip, and then you see that the loader returned 123 which means it

page -90-


© MCS Electronics, 1995-2007

received the value.

It will start the upload and you see a progress bar. After the loader is ready, you see a finish code of 0.

A finish code of 0 means that all wend well.

Other finish codes will not close the window even if this option is enabled. You need to manual close the window then.

Options Monitor

With this option you can modify the monitor settings.

OPTION DESCRIPTION

Upload speed Selects the baud rate used for uploading

Monitor prefix String that will be send to the monitor before the upload starts

Monitor suffix String that us sent to the monitor after the download is completed. Monitor delay Time in milliseconds to wait after a line has been sent to the monitor. Prefix delay Time in milliseconds to wait after a prefix has been sent to the monitor.

Options Printer

With this option you can modify the printer settings.

OPTION

DESCRIPTION

Font

Printer font to use when printing

Setup

Click to change the printer setup

Color

Will print in color. Use this only for color printers.

page -91-

© MCS Electronics, 1995-2007

OPTION

DESCRIPTION

Wrap lines

Wrap long lines. When not enabled, long lines will be partial shown.

Print header

Print a header with the filename.

Line

Will be the line number before each line.

numbers

Syntax

Enable this to use the same syntax highlighting as the editor

Left margin

The left margin of the paper.

Right

The right margin of the paper.

margin

Top margin

The top margin of the paper.

Bottom

The bottom margin of the paper.

margin

Window Cascade

Cascade all open editor windows.

Window Tile

Tile all open editor windows.

Window Arrange Icons

Arrange the icons of the minimized editor windows.

Window Minimize All

Minimize all open editor windows.

Help About

This option shows an about box as shown below.

page -92-


© MCS Electronics, 1995-2007

Your serial number is shown on the third line of the about box.

You will need this when you have questions about the product.

The compiler and IDE version numbers are also shown.

When you click the App data dir link, the folder which contains the BASCOM settings will be opened:

It contains the bascom-avr.xml file with all settings and the bascavr.log file. When you need support, you might be asked to email these files.

When you need support, also click the Copy-button. It will copy the following info to the clipboard, which you can paste in your email :

Dont forget that Serial numbers should not be sent to the user istl.

page -93-

© MCS Electronics, 1995-2007

Make sure you sent your email to support and not a public list !

Compiler version :1.11.8.3

IDE version

:1.11.8.5

Serial number

:XX-XXXX-XXXXX

Windows OS

:Microsoft Windows XP

Windows SP

:Service Pack 2

Explorer

:7.0.5730.11

Company

:MCS

Owner

:Mark Alberts

Windows dir

:C:\WINNT

App data dir

:C:\Documents and Settings

System dir

:C:\WINNT\system32

When you click the support link, youe email client will be started and an email to support@mcselec.com will be created.

Click on Ok to return to the editor.

Help Index

Shows the BASCOM help file.

When you are in the editor window, the current word selected or by the cursor wil be used as a keyword.

Notice that when the help window is small, you might need to make the help window bigger to show the whole content.

Help MCS Forum

This option will start your default Webbrowser and direct it to

http://www.mcselec.com/index2.php?option=com_forum&Itemid=59

This forum is hosted by MCS Electronics. There are various forums available. You can post your questions there. Do not cross post your questions on multiple forums and to support.

The forum is available for all users : demo or commercial users.

Note that everything you write might be on line for ever. So mind your language.

Users of the commercial version can email MCS support.

The forum allows uploads for code examples, circuits etc.

If you try to abuse the forum or any other part of the MCS web, you will be banned fromthe site.

page -94-