AN1154 STMicroelectronics, AN1154 Datasheet - Page 28

no-image

AN1154

Manufacturer Part Number
AN1154
Description
8031-PSD DESIGN TUTORIAL
Manufacturer
STMicroelectronics
Datasheet
AN1154 - APPLICATION NOTE
6. Re-compile the modified tutor8XX.abl file. Repeat Steps 3 to 6 until a successful fit has been found.
7. Examine the Fitter Report File by pulling down the VIEW menu, as shown in Figure 24. The report file
Figure 24. View->Fitter Report
Generating C code
PSDsoft can generate ANSI C code functions and headers for controlling the M88 FLASH+PSD. This is
an optional step. However, it will save you time by implementing low-level PSD driver function and header
files.
The functions and headers are ANSI-C compatible. The .c and .h files that are generated should be edited
to suit your application, then compiled and linked with the rest of your application code, using an MCU
cross-compiler and linker.
The functions and headers that can be generated by PSDsoft include the following operations:
Although C code generation can be performed anytime after a project is opened, we recommend it be
done after you have successfully performed the fit of your design. Once a successful fit is achieved, all pin
functions and PSD configurations are defined, and the C code may be tailored accordingly.
The source C programming files to implement the AGC function for this tutorial have not been provided.
Since this tutorial is meant to cover all aspects of a M88 FLASH+PSD design, though, we cover a
description of how you would use the C code generation utility for your own project.
Take the following steps to generate C code:
1. Pull down the Tools menu in the PSDsoft window and choose Generate C Code, as shown in Figure
28/83
Re-enter the Fitter program, and proceed to Step 7.
shows the results of the fitting process, and the pin assignment for the M88x3Fxx. If you want a fitting
other than the one generated, return to the tutor8XX.abl file to change the signal and pin assignments
as appropriate.
Flash memory program and erase algorithms
EEPROM program algorithms
I/O control and definition
memory and power management.
AI03162

Related parts for AN1154