AN1965 Freescale Semiconductor / Motorola, AN1965 Datasheet - Page 14

no-image

AN1965

Manufacturer Part Number
AN1965
Description
Design of Indirect Power Using the 56F800/E
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Software Implementation
7.2 Bean Modules
14
Each peripheral on the hybrid controller chip or on the EVM board is accessible through a bean.
Processor Expert generates the source code modules containing the implementation of methods
controlling the hardware which provides the bean’s functionality.
The following steps are required to generate the code:
You should not modify generated modules; generated code can be found in the Files folder of
CodeWarriors’s project panel.
User modules, which you can modify, are found in the User Modules folder, where other user modules
can also be added. The Events module (events.c) contains the handling routines for beans’ events, for
example, those caused by interrupt. The Main module (projectName.c) contains the function main()
and all necessary declarations and variables.
All enabled methods are generated into appropriate bean modules during the code generation process.
Every beans method inserted into the project is visible as a subtree of the bean in the Project panel
(found under the Processor Expert tab of CodeWarrior’s project panel).
inserted in the project for a 56F805 implementation; a detailed description of beans is shown in
7-1. See
detailed description of beans used in that implementation.
Add the beans to your project (Processor Expert tab of CodeWarrior’s project panel)
Set up the beans according to the hardware configuration
Generate the source code
Use beans methods in your code (generated functions for beans methods are named
beanName_MethodName)
Figure 7-2
Figure 7-1. Beans Used in Implementing the 56F805
for an illustration of beans used in a 56F8346 implementation and
Freescale Semiconductor, Inc.
For More Information On This Product,
Indirect Power Factor Correction
Go to: www.freescale.com
Figure 7-1
shows the beans
Table 7-2
Table
for a

Related parts for AN1965