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 Timer and I/O Pins to Interface 8051 MCUs with I2C Serial EEPROMs

From Microchip Technology, Inc.
 

 

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 Microchip Technology Inc. with minimal effort. Figure 1 is the hardware schematic depicting the 2 INTRODUCTION Cinterface between the Microchip 24XXX series of I serial EEPROMs and NXP's P89LPC952 8051-based The 24XXX series serial EEPROMs from Microchip MCU. The schematic shows the connections Technology support a bidirectional, 2-wire bus and data necessary between the MCU and the serial EEPROM transmission protocol. The bus is controlled by the as tested, as well as the required pull-up resistors on microcontroller (master), which generates the Serial the clock line (SCL) and data line (SDA). Not illustrated Clock (SCL), controls the bus access and generates in this application note are the write-protect feature and the Start and Stop conditions, while the 24XXX serial the cascading of multiple devices; thus, the WP pin and EEPROM works as slave. The 24XXX serial SS (ground).address pins A0, A1 and A2 are tied to V 2 C™ compatible and have maximumEEPROMs are I The test software was written assuming these clock frequencies ranging from 100 kHz to 1 MHz. connections. The main features of the 24XXX serial EEPROMs are: 2 C compatible* 2-wire serial interface bus, I * EEPROM densities from 128 bits to 512 Kbits * Bus speed from 100 kHz to 1 MHz * Voltage range from 1.7V to 5.5V * Low power operation * Temperature range from -40°C to +125°C * Over 1,000,000 erase/write cycles * Up to 8 devices may be connected to same bus 2 FIGURE 1: CIRCUIT FOR P89LPC952 MCU AND 24XXX SERIES I C SERIAL EEPROM Vcc 24XX512 A0 Vcc1 8 4.7 k? A1 2 7 WP 7/SDAP1.3 INT0 8A2 3 T0/SCLP1.2 SCL6 P89LPC952 SDAVss 54 Note: A decoupling capacitor (typically 0.1 µF) should be used to filter noise on VCC.


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
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)
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)
R4 Systems, Inc. - Proteus VSM for PIC Micros
Proteus VSM for PIC contains everything you need to develop and simulate embedded system designs based around the PIC series of microcontrollers from Microchip Technologies™. Models are... (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. - mTouch™ Capacitive Touch Evaluation Kit
Kit Enables Designers to Quickly and Easily Evaluate Capacitive Touch User-Interface Designs Using Microchip's 8- and 16-bit PIC® Microcontrollers... (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
AN1190 Using ASM and a Hardware Module to Interface 2 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... (Read More)
The 24XXX series serial EEPROMs from Microchip Technology support a bidirectional, 2-wire bus and data transmission protocol. The bus is controlled by the microcontroller (master), which generates the... (Read More)
AN1079 2 Using the C30 Compiler and the I C™ Peripheral to Interface Serial EEPROMs with dsPIC33F This application note is intended to serve as a Author: Martin Bowman reference for... (Read More)
AN1100 Using the C30 Compiler to Interface Serial EEPROMs with dsPIC33F Figure 1 describes the hardware schematic for the Author: Martin Bowman interface between Microchip's 24XXX series devices... (Read More)
AN1185 Using C and a Timer to Interface 8051 MCUs with UNI/O™ Bus-Compatible Serial EEPROMs Some of the main features of 11XXX serial EEPROMs Author: Alexandru Valeanu are: Microchip Technology... (Read More)