AN945
AN945 is Software Drivers manufactured by STMicroelectronics.
overview of the programming model for the M29F040 and M29W040 is given. The programming differences between the M29F040 and AMD’s Am29F040 are described. Advice on how to modify programs already written for AMD’s Am29F040 device to work with the ST device is included. The source code is written to be as platform independent as possible and requires minimal changes by the user in order to pile and run. The application note explains how the user should modify the source code for their individual target hardware. All of the source code is backed up by ments explaining how it is used and why it has been written as it has. Brief hardware connections to some mon microprocessors are provided at the end of the application note to help the designer understand the bus requirements of the M29F040 and M29W040. This application note does not replace the M29F040 Data Sheet. It refers to the Data Sheet throughout and it is necessary to have a copy in order to follow some of the explanations. The software and acpanying documentation has been fully tested on a target platform. It is small in size and can be applied to any target hardware.
M29F040.H Header file for 8 bit C Routines library M29F040.C 8 bit C Routines library
- These files may be downloaded from .st. or obtained from any Sales offices on PC patible floppy disk.
September 1997
1/29
- APPLICATION NOTE
..
THE M29F040 PROGRAMMING MODEL The M29F040 is a 512K x 8 Flash memory which can be electrically erased and programmed through special coded mand sequences on most standard microprocessor buses. The device is broken down into 8 blocks, each 64K bytes in size. Each block can be erased individually, or the whole chip can be erased at once, erasing all 4Mb. The M29F040 is a single voltage device. It differs from first generation devices which require a 12V supply to program or erase. The...