Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
BASCOM AVR, help reference (2007).PDF
Скачиваний:
305
Добавлен:
12.08.2013
Размер:
17.02 Mб
Скачать

© MCS Electronics, 1995-2007

This screen print shows that $inc.bas could not be compiled. And that array.bas was not yet compiled.

Batch Add Files

Add files to the list. You can select multiple *.BAS files that will be added to the list.

Batch Add Dir

Add a directory to the list. All sub directories will be added too. The entire directory and the sub directories are searched for *.BAS files. They are all added to the list.

Batch Clear List

Clear the list of files.

Batch Clear Good

Remove the files that were compiled without error. You will keep a list with files that compiled with an error.

All results are shown in an error list at the bottom of the screen. When you double click an item, the file will be opened by the editor.

See Also

$NOCOMP

Options Compiler

With this option, you can modify the compiler options.

The following TAB pages are available:

page -63-

© MCS Electronics, 1995-2007

Options Compiler Chip

Options Compiler Output

Options Compiler Communication

Options Compiler I2C , SPI, 1WIRE

Options Compiler LCD

Options Compiler Chip

The following options are available:

Options Compiler Chip

Item

Description

Chip

Selects the target chip. Each chip has a corresponding x.DAT file with

 

specifications of the chip. Note that some DAT files are not available

 

yet.

XRAM

Selects the size of the external RAM. KB means Kilo Bytes.

 

For 32 KB you need a 62256 STATIC RAM chip.

HW Stack

The amount of bytes available for the hardware stack. When you use GOSUB or CALL, you are using 2 bytes of HW stack space.

When you nest 2 GOSUB’s you are using 4 bytes (2*2). Most statements need HW stack too. An interrupt needs 32 bytes.

page -64-

 

© MCS Electronics, 1995-2007

 

 

 

Soft Stack

Specifies the size of the software stack.

 

 

Each local variable uses 2 bytes. Each variable that is passed to a sub

 

 

program uses 2 bytes too. So when you have used 10 locals in a SUB

 

 

and the SUB passes 3 parameters, you need 13 * 2 =26 bytes.

 

Frame size

Specifies the size of the frame.

 

 

Each local variable is stored in a space that is named the frame space.

 

 

When you have 2 local integers and a string with a length of 10, you

 

 

need a frame size of (2*2) + 11 = 15 bytes.

 

 

The internal conversion routines used when you use INPUT num, or

 

 

STR(), or VAL(), etc, also use the frame. They need a maximum of 16

 

 

bytes. So for this example 15+16 = 31 would be a good value.

 

XRAM wait state

Select to insert a wait state for the external RAM.

 

External Access

Select this option to allow external access of the micro. The 8515 for

 

enable

example can use port A and C to control a RAM chip. This is almost

 

 

always selected if XRAM is used

 

Default

Press or click this button to use the current Compiler Chip settings as

 

 

default for all new projects.

 

Options Compiler Output

Options Compiler Output

Item

Description

Binary file

Select to generate a binary file. (xxx.bin)

Debug file

Select to generate a debug file (xxx.dbg)

Hex file

Select to generate an Intel HEX file (xxx.hex)

 

 

page -65-

 

© MCS Electronics, 1995-2007

 

 

 

Report file

Select to generate a report file (xxx.rpt)

 

Error file

Select to generate an error file (xxx.err)

 

AVR Studio object

Select to generate an AVR Studio object file (xxx.obj)

 

file

 

 

Size warning

Select to generate a warning when the code size exceeds the Flash ROM

 

 

size.

 

Swap words

This option will swap the bytes of the object code words. Useful for

 

 

some programmers. Should be disabled for most programmers.

 

 

Don't use it with the internal supported programmers.

 

Optimize code

This options does additional optimization of the generated code. Since it

 

 

takes more compile time it is an option.

 

Show internal

Internal variables are used. Most of them refer to a register. Like

 

variables

_TEMP1 = R24. This option shows these variables in the report.

 

 

 

 

Options Compiler Communication

Options Compiler Communication

Item

Description

Baud rate

Selects the baud rate for the serial communication statements. You can

 

also type in a new baud rate.

 

It is advised to use $BAUD in the source code which overrides this setting.

Frequency

Select the frequency of the used crystal. You can also type in a new frequency. It is advised to use $CRYSTAL in the source code which overrids this setting. Settings in source code are preferred since it is more clear.

page -66-