ВУЗ: Не указан
Категория: Не указан
Дисциплина: Не указана
Добавлен: 12.06.2025
Просмотров: 8163
Скачиваний: 1
© MCS Electronics, 1995-2007
With this option you can load an existing program from disk.
BASCOM saves files in standard ASCII format. Therefore, if you want to load a file that was made with another editor be sure that it is saved as an ASCII file. Most programs allow you to export the file as a DOS or ASCII file.
Note that you can specify that BASCOM must reformat the file when it opens it with the Options Environment option. This should only be necessary when loading files made with another editor.
File open shortcut : , CTRL+O
File Close
Close the current program.
The current editor window will be closed. When you have made changes to the program, you will be asked to save the program first. You can then decide to save, cancel, or not to save the changes you have made.
File close shortcut :
File Save
With this option, you save your current program to disk under the same file name. The file name is visible in the Windows caption of the edit window.
If the program was created with the File New option, you will be asked to name the file first. Use the File Save As option to give the file another name.
Note that the file is saved as an ASCII file.
File save shortcut : , CTRL+S
File Save As
With this option, you can save your current program to disk under a different file name. When you want to make some changes to your program, but you do not want to make changes to the current version you can use the "Save As" option. It will leave your program as it was saved, and will create a new file with a new name so you end up with two copies. You then make changes to the new created file.
Note that the file is saved as an ASCII file.
File save as shortcut :
page -29-
© MCS Electronics, 1995-2007
File Print Preview
With this option, you can preview the current program before it is printed. Note that the current program is the program that has the focus.
File print preview shortcut :
File Print
With this option, you can print the current program.
Note that the current program is the program that has the focus.
File print shortcut : , CTRL+P
File Exit
With this option, you can leave BASCOM.
If you have made changes to your program, you can save them upon leaving BASCOM.
All of the files you have open, at the moment you choose exit, will be remembered. The next time you run BASCOM, they will be opened automatically.
File exit shortcut :
View PinOut
The PinOut viewer is a dock able window that shows the case of the active chip. The active chip is determined by the value of $REGFILE.
page -30-
© MCS Electronics, 1995-2007
When you move the mouse cursor over a pin, you will see that the pin will be colored red. At the bottom of the window, a pin description is show. In the sample above you willsee that each line has a different color. This means that the pin has multiple alternative functions. The first blue colored function is as generic IO pin.
The second green colored function is RESET pin.
The third black colored function is PIN change interrupt.
A pin can have one or more functions. Some functions can be used together.
When you move the mouse currsor away, the pin will be colored blue to indicate that you viewed this pin. For example, when you need to look at it again.
You can also search for a pin description. Enter some text and return.
Here is an example when you search the VCC pin :
page -31-
© MCS Electronics, 1995-2007
When pins are found that have the search phrase in the description, the pin will be colored blue.
By clicking 'Clear Pin HL' you can clear all colored pins.
Some chips might have multiple cases. You can select the case from the package list.
page -32-
© MCS Electronics, 1995-2007
When you change from package, all pin colors will be cleared.
When you double click a pin, the pin will be colored green. Another double click will color it red/blue.
When a pin is green, it will not be colored red/blue. The green color serves as a kind of bookmark.
The only exception is the search function. It will make bookmarked green pins, blue too.
Use the right mouse to access a popup menu. This menu allows you to zoomthe image to a bigger or smaller size.
Double click the chip to show the chip data.
page -33-
© MCS Electronics, 1995-2007
When you want to search for a chip, click the 'Chip Search' button.
It will show the following window:
You can provide criteria such as 2 UARTS. All criteria are OR-ed together. This means that when one of the criteria is met, the chip will be included in the list.
page -34-
© MCS Electronics, 1995-2007
Only chips supported by BASCOM will be listed. When a chip has SRAM, and is not supported yet, it will be in the near future since the goal is to support all chips.
When you find an error in the pin description, please send an email to support so it can be corrected.
View PDF viewer
The PDF viewer is dock able panel which is located by default on the right side of the IDE.
The viewer itself contains a tree with the topics and the actual PDF viewer.
The tree topics can be searched by right clicking on the tree. Choose 'Search' and enter a search text.
When a topic has sub topics, the topic is bold.
When you have enabled 'Auto open Processor PDF' in Options, Environment, PDF, the data sheet will be automatically loaded when you change the $REGFILE value.
It can be shown in a new sheet or it can replace the current PDF.
Open a PDF.
page -35-
© MCS Electronics, 1995-2007
Copy selected text to the clipboard. You can not copy fromprotected PDF documents.
First page.
Previous page.
Current page indicator. You can enter a page number to jump to a different page.
Next page. Last page.
Find text in PDF.
Zoom in.
Zoom out.
Rotate page to the left and right.
Print page(s).
When you right click in the PDF, a pop up menu with the most common options will appear. In Options, Environment, PDF you can specify how datasheets must be downloaded. Datasheets you can download with the UpdateWiz.
Or when you have newer ones, you can update it yourself. The microprocessor data sheets are stored in the PDF sub folder.
The names you can find in the DAT files.
For example, when you look in the M88def.dat file :
[DEVICE] |
|
FILE=M88DEF.DAT |
; file name |
pdf=ATmega48_88_168.pdf ; filename which is in \PDF sub dir.
......
The pdf is named atmega48_88_168.pdf in this case. Since the datasheet covers 3 chips, it is stored only once.
When you find newer PDF's dan downloaded with the UpdateWiz, send a note to support@mcselec.com so that the PDF on the server can be updated. Do not send the PDF but send a link to the newer PDF.
View Error Panel
This option will show the Error panel.
page -36-
© MCS Electronics, 1995-2007
When there are no errors, the list will be empty. You will also be able to close the window. When there are errors :
You will not be able to close the window until the error is solved and the programis checked/compiled.
The panel is dockable and by default docked to the bottom of the IDE.
Edit Undo
With this option, you can undo the last text manipulation.
Edit Undo shortcut : , CTRL+Z
Edit Redo
With this option, you can redo the last undo.
Edit Redo shortcut : , CTRL+SHIFT+Z
Edit Cut
With this option, you can cut selected text into the clipboard.
Edit cut shortcut : , CTRL+X
Edit Copy
With this option, you can copy selected text into the clipboard.
Edit copy shortcut : , CTRL+C
Edit Paste
With this option, you can paste text from the clipboard starting at the current cursor position.
page -37-
© MCS Electronics, 1995-2007
Edit paste shortcut : , CTRL+V
Edit Find
With this option, you can search for text in your program.
Text at the current cursor position will automatically be placed in the find dialog box.
Edit Find shortcut : , CTRL+F
Edit Find Next
With this option, you can search again for the last specified search item. Edit Find Next shortcut : , F3
Edit Replace
With this option, you can replace selected text in your program.
Edit Replace shortcut : , CTRL+R
Edit Goto
With this option, you can immediately go to a specified line number.
Edit go to line shortcut : ,CTRL+G
Edit Toggle Bookmark
With this option, you can set/reset a bookmark, so you can jump in your code with the Edit Go to Bookmark option. Shortcut : CTRL+K + x where x can be 1-8
Bookmarks are stored in a file named <project>.BM
Edit Goto Bookmark
With this option, you can jump to a bookmark.
There can be up to 8 bookmarks. Shortcut : CTRL+Q+ x where x can be 1-8
Bookmarks are stored in a file named <project>.BM
page -38-