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

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

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

Добавлен: 12.06.2025

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

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

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

© MCS Electronics, 1995-2007

When you use your own drawing routine you can also save the pictures uncompressed by setting the Uncompressed check box. The resulting BGF files can not be shown with the showpic or showpicE statements anymore in that case!

The BGF format is made up as following:

first byte is the height of the picture

second byte is the width of the picture

for each row, all pixels are scanned from left to right in steps of 6 or 8 depending on the font size. The resulting byte in stored with RLE compression

The RLE method used is : byte value, AA(hex), repeats.

So a sequence of 5, AA, 10 means that a byte with the value of 5 must be repeated 16 times (hex notation used)

Option

Description

Height

The height in pixels of the image.

Width

The width in pixels of the image.

Font

The T6963 supports 6x8 and 8x8 fonts. This is the font select that must

match the CONFIG statement. For other displays, use 8*8.

Type

The size of the display. When the size is not listed, use one with the same

width.

SED Series

If your display is a SEDxxxx chip, select this option.

Uncompressed

Images are RLE encoded. Select this option when you do not want to

compress the image.

Tools Stack Analyzer

The Stack analyzer helps to determine the proper stack size.

See $DBG for the proper usage of this option.

Tools Plugin Manager

The Plugin Manager allows you to specify which Plug-in's needs to be loaded the next time you start BASCOM.

page -60-

© MCS Electronics, 1995-2007

Just select the plug in's you want to load/use by setting the check box. The plug in's menu's will be loaded under the Tools Menu.

To add a button to the toolbar, right click the mouse on the menu bar, and choose customize.

When you want to write your own plug in's, contact support@mcselec.com

Tools Batch Compile

The Batch Compiler is intended to compile multiple files.

Shortcut : CTRL+B

The Batch compile option was added for internaltest usage. It is used by MCS to test the provided test samples.

The following window is shown :

page -61-

© MCS Electronics, 1995-2007

There are a number of menu options.

File Load Batch

Load an earlier created and saved batch file list from disk.

File Save Batch

Save a created list of files to disk

When you have composed a list with various files it is a good idea to save it for later re usage.

File Save Result

Save the batch compile log file to disk. A file named batchresult.txt will be saved in the BASCOM application directory.

File Exit

Close window

Batch Compile

Compile the checked files. By default all files you added are checked. During compilation all files that were compiled without errors are unchecked.

page -62-


© 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-