AN1154 STMicroelectronics, AN1154 Datasheet - Page 30

no-image

AN1154

Manufacturer Part Number
AN1154
Description
8031-PSD DESIGN TUTORIAL
Manufacturer
STMicroelectronics
Datasheet
AN1154 - APPLICATION NOTE
2. After you have made your selection, first click Apply, then click OK. In this example, three files will be
3. Click on the “Coded Examples” tab at the top of the dialog box, as shown in Figure 27.
30/83
written to your folder(s), which are:
The m8813F1.h file contains define statements for each individual C function within the m8813F1.c file.
Later, edit m8813F1.h, and simply remove the comment delimiters (//) from the define statement for
any C function that you would like to be compiled with the rest of your C source code.
– Functions: This is for specifying the folder in which you would like to place the C function file (.c).
– C Code Selection: Select the categories of C code functions that you would like to integrate into
– Description: This offers a description of the functions that are generated if selected in the “C Code
– m8813F1.c: the ANSI-C source for all of the selected functions
– m8813F1.h: the ANSI-C header file to define particular PSD registers
– map813F1.h: the ANSI-C header file to define locations of system memory elements (Flash,
file(s) at this point since these header files may referenced by name within other header files or the
C functions that are also generated by PSDsoft. Once all of the headers and functions are copied
to their designated folders, you may edit the header file names any way you wish, as long as you
change their names in the respective “#include” statements.
(Click the Browse button to help in filling in this section). Typically, a folder in your MCU cross-
compiler environment is chosen. This file will contain the functions you specify in the next section.
your C application program. Under “PSD Category” are the major PSD functional groups that are
supported with C code for the PSD device that is used for this project. Under “C Code Coverage” is
a brief list of the individual functions that are available within each category. To select more than
one category, hold the “Ctrl” key while making selections with the left mouse button. Even if more
than one category is selected, though, only one .c file is generated because functions are appended
within the same file.
Selection” box. If you double-click on a function within the Description box, the C code that will be
generated is shown, so you can get an idea of what will appear in the sample C file.
EEPROM, PSD registers, etc.).

Related parts for AN1154