Using a hardware module to interface 8051 MCUs with SPI serial EEPROMs
Keywords:application note? MCU? EEPROM? hardware module?
The firmware was written in assembly language for NXP's P89LPC952 MCU using the Keil ?Vision3 IDE and was developed on the Keil MCB950 evaluation board.
The code was tested using the 25XX256 serial EEPROM. The EEPROM features 256Kbit of memory and 64byte pages. Oscilloscope screen shots are shown in this application note. All timings are based on the internal RC oscillator of the MCU (7.373MHz). If a faster clock is used, the code must be modified to generate the correct delays.
The bus speed in these examples is about 1.8MHz. As explained in the applicable SPI serial EEPROM data sheets, the maximum allowed bus speed depends on the EEPROM's operating voltage. If desired, the bus speed may be changed in the initialization routine by modifying the SPR1 and SPR0 bits in the SPI control register.
View the PDF document for more information.
Related Articles | Editor's Choice |
Visit Asia Webinars to learn about the latest in technology and get practical design tips.