Engineers who engage in microcontrollers generally like to use the Ultra Edit editor because it can make the programmed language keywords highlight color display, but also support Chinese. Although Keil can also brighten the keyword color, it is not very good for Chinese support. In addition, the Ultra Edit editor is also "perceived" capabilities with the Keil editor. When we have changed the editor to change the editor, there will be a prompt window, prompting us to edit The content has been changed by another program, is it to be reloaded? After clicking "Yes" will reload the changed content. But we have to open two windows, switch back, sometimes it is very inconvenient, in fact, we can make them more closely.
Let Ultra EDI have compilation
Open Ultra Edit, select the "Advanced" Project Tool Configuration of the menu, click, open the tool configuration window, enter: "C51% f" in the Command Bar (do not enter quotation marks). Enter your Keil's installation path in the Work Catalog, if you install it on the D disk, you can enter: "D: / keil / c51 / bin" (do not enter quotation marks). Of course, you can also click "Bin" folder. Then we enter your name in the Menu Project Name (M) ", I entered:" Compiler ". In order to see the output, we must also do the following settings, tick in the box in front of the "Save Activity File"; tick in the box in front of the "Output to List Window"; in front of "capture output" Tick in the box. Finally click on the "Insert" button. The design is as shown in the figure. Don't forget to click the "OK" button, otherwise we have done it in front.
Let's try our results. Open a C file, click the "Advanced" menu, appear in the "Advanced" drop-down menu, click on it, see what you have? The result is compiled in the output window. If there is a mistake, the prompt information on the screen directly double-click, you can jump to the line where the error file is located, is it very professional? Does Ultra Edit become a professional compiler? ! Of course, you have to make a batch file, directly generate the HEX file. However, the author suggested that the project is built after Ultra Edit, then compiles, simulates.
To compile the assembly file, enter: "A51% F" in the "Command Bar", enter your name, I entered: "ASM". Other settings are the same. However, the output result cannot be prompted to specifically error information.
Use Keil to open Ultra Edit
Open KEIL, select the "Tools" menu, click the "Customize Tools Menu" option, "Customize Tools Menu" window appears. Click on "Menu Content:" to the right of the right side, enter: "Ultra Edit" In Command Enter the path to Ultra Edit executive, such as "D: / Program files / UltraEdit / uedit32.exe" . Enter: "% f" in Arguments. Set good interface as shown. Click "OK" and return to the key of Keil. Use the mouse to click the file to open in the project management bar, make the file name into an anti-color, open the "Tools" menu, with the "Ultra Edit" option in the drop-down menu, click, the appropriate file is opened in the Ultra Edit Editor. ! You can make it easy to modify the file in Ultra Edit. In addition, the Ultra Edit editor can not highlight the keyword of the ASM file, we can open the WordFile of the Ultra Edit root to make this feature. The author has made Ultra EDI's keywords to the A51, the PIC assembly file, can be displayed highlights. I have already uploaded Wordfile to http://www.xiao-qi.com/comm/afiledir.php3, everyone can download, override the wordfile under the Ultra Edit root directory.