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

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

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

Добавлен: 13.06.2025

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

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

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

CodeVisionAVR

2.3.3 The Serial Communication Terminal

The Terminal is intended for debugging embedded systems, which employ serial communication (RS232, RS422, RS485).

The Terminal is invoked using the Tools|Terminal menu command or the Terminal button on the toolbar.

The characters can be displayed in ASCII or hexadecimal format. The display mode can be toggled using the Hex/ASCII button.

The received characters can be saved to a file using the Rx File button.

Any characters typed in the Terminal window will be transmitted through the PC serial port. The entered characters can be deleted using the Backspace key.

By pressing the Send button, the Terminal will transmit a character whose hexadecimal ASCII code value is specified in the Hex Code edit box.

By pressing the Tx File button, the contents of a file can be transmitted through the serial port.

By pressing the Reset button, the AVR chip on the STK200+/300, VTEC-ISP, DT006, ATCPU or Mega2000 development board is reseted.

At the bottom of the Terminal window there is a status bar in which are displayed the:

computer's communication port;

communication parameters;

handshaking mode;

received characters display mode;

type of emulated terminal;

the state of the transmitted characters echo setting.

© 1998-2007 HP InfoTech S.R.L.

Page 51


CodeVisionAVR

2.3.4 Executing User Programs

User programs are executed by selecting the corresponding command from the Tools menu. You must previously add the Program’s name to the menu.

2.3.4.1 Configuring the Tools Menu

You can add or remove User Programs from the Tools menu by using the Tools|Configure menu command.

A Configure Tools dialog window, with a list of User Programs, will open.

Using the Add button you can add a Program to the Tools menu.

Using the Remove button you can remove a Program from the Tools menu.

© 1998-2007 HP InfoTech S.R.L.

Page 52

CodeVisionAVR

Using the Settings button you can modify the:

Tool Menu Name

Tool Directory and File Name

Command Line Parameters

Working Directory of a selected Program from the list.

Changes can be saved, respectively canceled, using the OK, respectively Cancel buttons.

© 1998-2007 HP InfoTech S.R.L.

Page 53


CodeVisionAVR

2.4 IDE Settings

The CodeVisionAVR IDE is configured using the View and Settings menus.

2.4.1 The View Menu

The folowing settings can be configured using the View menu command:

If the View|Toolbar option is checked the command buttons toolbar will be displayed;

If the View|Navigator/Code Templates/Clipboard History option is checked the Navigator, Code Templates and Clipboard History window is displayed at the left of the Editor window;

If the View|Messages option is checked, the Message window located under the Editor window will be displayed;

If the View|Information Window after Compile/Make option is checked, there will be an Information window displayed after Compiling or Making.

© 1998-2007 HP InfoTech S.R.L.

Page 54

CodeVisionAVR

2.4.2 Configuring the Editor

The Editor can be configured using the Settings|Editor menu command.

The Show Line Numbers check box, allows enabling or disabling the displaying of line numbers in the Editor windows.

The Autoindent check box, allows enabling or disabling the text autoindenting during file editing. The Auto Load Modified Files check box, allows enabling or disabling the automatic loading of files that are opened in the Editor and that were modified by an external program.

The Convert Tabs to Spaces check box, allows enabling or disabling the replacement of the tab character with the appropriate number of spaces while typing. The number of spaces, inserted when pressing the Tab key, can be specified using the Tab Size spin edit.

The Auto Collapsible Blocks Enabled check box allows enabling or disabling the automatic display of the vertical bar which delimits the collapsible blocks in the left of the Editor window

The Automatic Collapsible Blocks|Bar Color list box specifies the color of the collapsible blocks vertical bar.

The font, used by the text Editor and the Terminal, can be specified using the Font button.

By checking or unchecking the Syntax Highlighting Enabled check box, you can enable or disable the C syntax color highlighting of the files displayed in the Editor windows.

The different colors, respectively attributes (Bold and Italic), used for displaying the text in the Editor windows and for C syntax highlighting, can be specified in the appropriate listboxes,

respectively B and I check boxes, in the Syntax Highlighting group.

The Background and Text color settings are the same for both the EditorEdit File and the TerminalTerminal.

The User Defined Keywords List can contain additional keywords for which syntax highlighting is necessary. Their text color, respectively attributes (Bold and Italic), can be specified using the User Defined Keywords list box, respectively B and I check boxes.

© 1998-2007 HP InfoTech S.R.L.

Page 55


CodeVisionAVR

The Editor configuration changes can be saved, respectively canceled, using the OK, respectively Cancel buttons.

By pressing the Default button the default Editor settings are restored.

2.4.3 Configuring the Assembler

The Assembler can be configured using the Settings|Assembler menu command.

The On Assembler Error options allow to select which file will be automatically opened by the Editor in the case of an assembly error.

The Assembler configuration changes can be saved, respectively canceled, using the OK, respectively Cancel buttons.

© 1998-2007 HP InfoTech S.R.L.

Page 56

CodeVisionAVR

2.4.4 Setting the Debugger Path

The CodeVisionAVR C Compiler is designed to work in conjunction with the Atmel AVR Studio debugger version 3 and 4.06 (or later).

Before you can invoke the debugger, you must first specify its location and file name using the

Settings|Debugger menu command.

The AVR Studio version must be specified in the Debugger list box.

Changes can be saved, respectively canceled, using the OK, respectively Cancel buttons.

Pressing the Browse button opens a dialog window that allows selecting the debugger's directory and filename.

© 1998-2007 HP InfoTech S.R.L.

Page 57