Welcome to hificat.com ---- HANGZHOU KinCony ELECTRONICS CO.,LTD.
About Us Contact Us          Our Patents Our Articles        Forum      SiteMap    Chinese Version

Chapter 1. Overview Chapter 2. Emulation Guide Chapter 3. Build Your First Project Chapter 4. In System Programming
Chapter 5. USB Interface Installation Chapter 6. LED Display Application Chapter 9. FAQ Chapter 10. System Configuration and Service
 
Chapter 7. Basic Experiments
7.1. Experiment with LED 7.2. Experiment with Flowing LEDs 7.3. Experiment with Keys 7.4. Experiment with Beeper
7.5. Experiment with Relay 7.6. Experiment with LED Display 7.7. Experiment with Serial Port  
 
8.1. Experiment with Matrix Key 8.2. Experiment with Stepping Motor 8.3. Experiment with 1-Wire Digital Thermometer DS18B20
8.4. Experiment with 24C01 EEPROM 8.5. Experiment with 93C46 Serial EEPROM 8.6. Experiment with DS1302 Real-time Clock
8.7. Experiment with 8-bit Serial AD Converter ADC0832 8.8. Experiment with 1602 Character LCD Module 8.9. Experiment with 12864 Graphic LCD
8.10. Experiment with Infra-red Remote Controller 8.11. Experiment with Wireless Encoding Module Chapter 11. User Feedback

Chapter 8. Advanced Experiments

8.5. Experiment with 93C46 Serial EEPROM

The 93C46 provides 1024 bits of serial electrically-erasable programmable read-only memory (EEPROM) organized as 64 words of 16 bits each. The device is opti-mized for use in many industrial and commercial applications where low-power and low-voltage operation are essential. The 93C46 is available in space-saving 8-lead PDIP, 8-lead JEDEC SOIC, and 8-lead TSSOP packages.

The 93C46 is enabled through the Chip Select pin (CS) and accessed via a three-wire serial interface consisting of Data Input (DI), Data Output (DO), and Shift Clock (SK). Upon receiving a Read instruction at DI, the address is decoded and the data is clocked out serially on the data output DO pin. The write cycle is completely self-timed and no separate erase cycle is required before write. The write cycle is only enabled when the part is in the erase/write enable state. When CS is brought high following the initiation of a write cycle, the DO pin outputs the ready/busy status of the part.

CS: Chip Select

SK: Serial Data Clock

DI: Serial Data Input

DO: Serial Data Output

GND: Ground

VCC: Power Supply

NC: No Connect

Instruction Set for the AT93C46E:

Instruction

SB

Op Code

Address

Comments

READ

1

10

A5 − A0

Reads data stored in memory, at specified address

EWEN

1

00

11XXXX

Write enable must precede all programming modes

ERASE

1

11

A5 − A0

Erase memory location An − A0

WRITE

1

01

A5 − A0

Writes memory location An − A0

ERAL

1

00

10XXXX

Erases all memory locations. Valid only at VCC = 4.5V to 5.5V

WRAL

1

00

01XXXX

Writes all memory locations. Valid only at VCC = 4.5V to 5.5V

EWDS

1

00

00XXXX

Disables all programming instructions

Program Function

The experiment illustrates the I2C communication between MCU and 24C01 EEPROM. Data 0x55 and 0xAA are written to EEPROM at memory address 0x02 and 0x03. The data read from EEPROM will be displayed on LED display. By default, the address to be read is 0x02, user can change the address.

Toggle on the function select to ‘93C**’ before this experiment.

Schematic Diagram

Program Flow Chart



COPYRIGHT2003--2008 HANGZHOU KinCony ELECTRONICS CO.,LTD. All Rights Reserved

Add:Rm 11-3-702, Pujing Jiayuan, Gongshu District, Hangzhou, Zhejiang, China.
Tel:+86-0571-85956028,Fax:+86-0571-88230070 E-mail: hificat@163.com  ICQ:164806453  Webmaster:Hificat