Download Processor Expert User Manual
Transcript
PE_User_Manual.book Page 99 Thursday, March 13, 2014 10:12 AM
Application Design
Code Generation and Usage
The processor module is generated according to the currently active target processor
component. The processor module additionally contains:
– microcontroller initialization code
– interrupt processing
• Main module
The main module is generated only if it does not already exist (if it exists it is not
changed). Name of this module is the same as the name of the project.
The main module contains the main function, which is called after initialization of
the microcontroller (from the processor module). By default, this function is
generated empty (without any reasonable code). It is designed so that you can write
code here.
• Event module
The event module is generated only if it does not exist. If it exists, only new events
are added into the module; user written code is not changed.
The event module contains all events selected in the components. By default, these
event handler routines are generated empty (without any meaningful code). It is
considered that user will write code here.
Event module can also contain the generated ISRs for the components that require a
direct interrupt handling (Peripheral Initialization Components). It is possible to
configure the name of event module individually for each component in the
ADVANCED view mode of the Component Inspector. However, note that the event
module is not generated by Processor Expert if there is no event enabled in the
component, except the processor component, for which the event module is always
generated.
• Method list file with description of all components, methods and events generated
from your project. The name of the file is {projectname}.txt or
{projectname}.doc. This documentation can be found in the Documentation
folder.
• Signal names
This is a simple text file {projectname}_SIGNALS.txt or
{projectname}_SIGNALS.doc with a list of all used signal names. The signal
name can be assigned to an allocated pin in the component properties (available in
ADVANCED view mode). This documentation can be found in the Documentation
folder of the Components view. Refer to the Signal Names topic for details.
• Code generation log that contains information on changes since last code
generation. Refer to the Tracking Changes in Generated Code for details.
• XML documentation containing the project information and settings of all
components in XML format. The generated file
Processor Expert User Guide
99