You are on page 1of 1

Clic

Serial EEPROM Interfacing (AT24C08 with AT89C2051)


• Home ...................................................................................................................................
• 8051 Forum
Introduction:
• Active Topics
• 8051 Free Projects
Many designers today are implementing embedded systems that require low cost non-volatile memory. Microc hip has
• Blog
addressed this need with a full line of serial EEPROMs, in a variety of memory configurations, using the industry-standard
• Top 10
2- or 3-wire c ommunication protoc ols.
• Datasheets
• Electronic Tutorials
• Electronic Projects
Embedded and Robotics
Internship in Embedded & Robotic design at Delhi NCR starting May'11
• 8051 Tutorials www.thinnk ware .com
• 8051 Course
• 8051 Code Library
• Visual Basic for μC Circuit Diagram
• 8051 Programmer
• Assembler/IDE
• Products
• Ebooks
• Supporting Tools
• Tag Cloud
• Guest Book
• Contact Me
• Privacy policy

Ads by Google
8051 Programming
Microcontroller
8051 Programmer
EEPROM

8051 Mi t ll P j t

Customized UV LED
wavelengths from
280-400nm TO metal
or 5mm plastic
packages
www.e pigap-optronic.com

Motor Controller
Tutorial
Free Web Tutorials
from Galil, the World
Leader in Motor
Controllers.
www.GaliLm c.co m

Embedded and
Robotics
Internship in
Embedded & Robotic
design at Delhi NCR SDA1 EQU P1.1 ;SDA=PIN5
starting May'11 SCL1 EQU P1.0 ;SCL=PIN6
www.thinnk ware .com

WTCMD EQU 10100000B ;WRITE DATA COMMAND


Vehicle Network RDCMD EQU 10100001B ;READ DATA COMMAND
Interface
Network interface
specialists. Equipment ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
for industry and OEMs ; STORE A BYTE IN EEPROM (Data 8F in address location 2AH)
www.AVT-HQ .co m
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

MOV A,#WTCMD ;LOAD WRITE COMMAND


Serial CALL OUTS ;SEND IT
Serial Homeopathy MOV A,#2AH ;GET BYTE ADDRESS
Treatment CALL OUT ;SEND IT
www.drBa tras.co m /Se rial
MOV A,#8FH ;GET DATA
CALL OUT ;SEND IT
CALL STOP ;SEND STOP CONDITION
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
; READ A BYTE FROM EEPROM FROM ADDRESS LOCATION 4DH
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

MOV A,#WTCMD ;LOAD WRITE COMMAND TO SEND ADDRESS


CALL OUTS ;SEND IT
MOV A,#4DH ;GET LOW BYTE ADDRESS
CALL OUT ;SEND IT
CALL CREAD ;GET DATA BYTE
MOV A,R1
CALL MDELAY
RET
;***********************************************************************

You might also like