What is Code Architect?
Code Architect is a Web and PC based software tool that allows source code to be quickly and easily generated for NXP Microcontrollers. By selecting user-friendly input options, customized C source code will be generated for Keil and Raisonance 8051 Compilers with only a few mouse clicks. The source code may then be cut and pasted or saved and added to a Keil or Raisonance project.
Code Architect allows multiple complex peripherals to be configured and used with a minimum of effort and time.
Code Architect Versions
Code Architect comes in two versions - Internet and Windows.
The Internet version is available at www.codearchitect.org and provides all the features of Code Architect except automated saving of generated files. However, generated code may be cut and pasted from the web page. Note that generated code is not retained. Nor is it linked to any specific users or IP addresses.
The Windows version is available for download by following the relevent link at the bottom of the page. It is a 32-bit Windows application and provides all the features of Code Architect plus the ability to automate saving the generated files. The system requirements are:
- Internet Explorer
4.0 or later
enabled in Internet Explorer
- 3Mb disk space
- Pointing device
The Internet and
Windows versions of Code Architect share a common project file format, therefore
projects saved in one version may be loaded into the other version. This allows
access to your Code Architect projects regardless of whether you are using a
public PC, friend's PC, on a buisness trip, at the office or whether you have
an Internet connection or not.
The user interface is nearly identical in both Internet and Windows versions providing familiarity and ease of use.
Using Code Architect
Code Architect is very straightforward to use.
Across the top of the page there is the project title and links to project options, such as saving a project, loading a project and creating a new project. When Code Architect is first started a new project with the name "Untitled" is automatcally created. When code is generated, the settings will automatically be saved to the project. Once you have finished generating code you may choose the Save Project option to save your project file.
Note: If you do not save your project file you will lose all settings you have made since starting Code Architect. The Windows version will ask you if you wish to save the project when you attempt to close the application. The Internet version will not. Also if you stop using the Internet version for 30 minutes or more, you will lose all settings you have made since accessing the web site.
Generating code is divided into three steps. Step 1 is to select the peripheral or module you wish to generate code for. Selection of the correct device first will be required before you are presented with a list of peripherals available for that device. Simply click on the name of the device or device family followed by the peripheral.
Step 2 is to enter
the options for the peripheral. The options have been made as user-friendly
as possible, however sometimes reference to the datasheet will be required to
understand some of the options. Once selections have been made, clicking on
the Generate button will generate customized C source code based on your selections.
In some situations, notes may be displayed along with the generated code. Notes are shown immediately before the generated code. Typical reasons for notes appearing include:
to use a baud rate that is not possible. In this case the actual baudrate
that will be generated will be given along with the error
- Flash locations in the device must also be configured along with using the generated code. In this case the relevent settings for the Flash locations will be given
Resource conflicts may also be shown along with the generated code. Resource conflicts occur when more than one peripheral that has been configured uses the same device pin or other resource such as a timer. When a resource conflict occurs, the resource in question along with which peripherals use it are shown.
Step 3 is to either save or cut and paste the generated code. Usually the generated code is provided in the form of a header file and C source file, therefore two files must be saved or created. In both the Internet and Windows version cutting and pasting is provided. In the Windows version the source files may be saved by choosing Save Source Files... from the File menu. A link will be provided in both versions to open the generated code in a seperate window as an aid to cutting and pasting.