Go to GlobalSpec.com Home
Alert   Product Alerts
Keep current on the latest products, new suppliers, and technical articles of interest to you. (See Topics)

Using a Hardware Module to Interface 8051 MCUs with SPI Serial EEPROMs

From Microchip Technology, Inc.
 

 

AN1197 Using a Hardware Module to Interface 8051 MCUs with SPI Serial EEPROMs The main features of the 25XXX serial EEPROMs are: Author: Alexandru Valeanu * SPI-compatible serial interface bus Microchip Technology Inc. * EEPROM densities from 128 bits to 512 Kbits * Bus speed from 3 MHz to 20 MHz INTRODUCTION * Voltage range from 1.8V to 5.5V * Low power operation The 25XXX series serial EEPROMs from Microchip * Temperature range from -40°C to +125°C Technology support a half-duplex protocol that functions on a master-slave paradigm that is ideally * Over 1,000,000 erase/write cycles suited to data stream applications. The bus is * Built-in write protection controlled by the microcontroller (master), which This application note is part of a series that provide accesses the 25XXX serial EEPROM (slave) via a source code to help users implement the protocol with simple Serial Peripheral Interface (SPI) compatible minimal effort. serial bus. Bus signals required are a clock input (SCK) Figure 1 is the hardware schematic depicting the inter-plus separate data in (SI) and data out (SO) lines. face between the Microchip 25XXX series serialAccess to the 25XXX serial EEPROM is controlled EEPROMs and NXP's P89LPC952 8051-based MCU.CS) input. Maximum clockthrough a Chip Select ( The schematic shows the connections necessaryfrequencies range from 3 MHz to 20 MHz. between the MCU and the serial EEPROM as tested. Communication to the 25XXX serial EEPROM can be The software was written assuming these con- HOLD) if the clock line ispaused via the hold pin ( WP and HOLD pins are tied to VCCnections. The shared with other peripherals on the SPI bus. While the through resistors, because the write-protect and hold EEPROM is paused, transitions on its inputs are features are not used in the examples provided. CS, allowing the MCU toignored, with the exception of service higher priority interrupts. After releasing the HOLD pin, operations resume from the point when the hold was asserted. FIGURE 1: CIRCUIT FOR P89LPC952 MCU AND 25XXX SERIAL EEPROM (1) Vcc 25XX256 P2.1/MOSI 34 P2.3/MISO33 1 8CS VccP89LPC952 P2.4/SS 32 P2.5/SPICLK31 (2) 2 7SO HOLD (2) 3 6 WP SCK


Products & Services
Microcontrollers (MCU) are complete computer systems on a chip. They combine an arithmetic logic unit (ALU), memory, timer/counters, serial port, input/output (I/O) ports and a clock oscillator. Search by Specification | Learn more about Microcontrollers (MCU)
Specialty microprocessors and microcontrollers are specialty or proprietary products and accessories related to microprocessors and microcontrollers. Learn more about Specialty Microprocessors and Microcontrollers

Product Announcements
R4 Systems, Inc. - Proteus VSM for PIC 16
Proteus VSM for PIC 16 contains everything you need to develop and simulate embedded system designs based around the PIC 16 series of microcontrollers from Microchip Technologies™. (read more)
Microchip Technology, Inc. - Lowest Voltage EEPROM Devices on the Market
Microchip Technology Inc., a leading provider of microcontroller and analog semiconductors, today announced a series of I2C™ EEPROM devices with the lowest operating voltage available on the... (read more)
Renesas Technology America, Inc. - Renesas Free Software Library
Renesas offers full and comprehensive support to design and develop embedded products in less time, at a lower cost and in an easier way. (read more)
Microchip Technology, Inc. - 16-bit MCU Family Combines eXtreme Low Power
Microchip Technology Inc., a leading provider of microcontroller and analog semiconductors, today announced the low-cost, low pin count PIC24F04KA201 family of 16-bit microcontrollers—the latest... (read more)
Microchip Technology, Inc. - First PIC Microcontrollers w/ Mid-range 8-bit Core
New Family with eXtreme Low-Power nanoWatt XLP Technology Delivers Enhanced C Support; Broad Peripheral Set Includes mTouch™ Capacitive Sensing and LCD Drive... (read more)
Microchip Technology, Inc. - nanoWatt XLP™ Microcontrollers
Microchip Technology Inc., a leading provider of microcontroller and analog semiconductors, today announced its next-generation low-power PIC® microcontroller (MCU) families with nanoWatt XLP™... (read more)

Topics of Interest
AN1193 Using C to Interface 8051 MCUs with SPI Serial EEPROMs The main features of the 25XXX serial EEPROMs are: Author: Alexandru Valeanu * SPI-compatible serial interface bus Microchip Technology... (Read More)
The 25XXX series serial EEPROMs from Microchip Technology support a half-duplex protocol that functions on a master-slave paradigm that is ideally suited to data stream applications. The bus is... (Read More)
The 25XXX series serial EEPROMs from Microchip Technology are SPI compatible and have maximum clock frequencies ranging from 3 MHz to 20 MHz. Many times when designing an application which utilizes a... (Read More)
AN1096 Using the C30 Compiler to Interface SPI Serial EEPROMs with dsPIC33F and PIC24F This application note provides assistance and source Author: Martin Kvasnicka code to ease the design process of... (Read More)
AN1147 2 Interfacing 8051 MCUs with I C™ Serial EEPROMs This application note is part of a series that provide Author: Alexandru Valeanu source code to help the user implement the protocol... (Read More)