The EE Compendium - The Home of Electronic Engineering and Embedded Systems Programming

The Home of Electronic Engineering and Embedded Systems Programming

Intel 8051
Microchip PIC
Motorola 6805
Motorola 68HC11
Motorola 68HC12
Rabbit 2000
More Micros...
LCD Project
MP3 Projects
PC Parallel Port
MAX7219
More Projects...
Project Kits
Software
Code Cache
Compilers
Hardware
CAD / CAE
Components
Distributors
Simulation
Test Equipment
Hotsheet  NEW! 
Articles
Books
Career
Consultants
Forums
Free Stuff
Fun Stuff
Magazines
Portals
Project Management 
Product Reviews
Robotics
Misc. Links
Xicor offers a number of interesting and useful memory devices, including a line of serial EEPROMs and SerialFlash memories, which communicate using SPI-compatible signals. These routines implement a driver for the X25xxxx series of devices.

The functions allow you to read and write from the serial memory, using a bit-banged version of the interface. If you're using a microcontroller which implements SPI in hardware, you can easily modify the software to use that instead.

The functions let you read or write blocks of memory, or read 8, 16, or 32-bit variables. They also let you fiddle with the status register, and enable and disable the software-based data protection.

The code is provided in an archive (XICOR25.ZIP). that contains XICOR25.C and XICOR25.H. To use the module in your program, simply #include XICOR25.H from wherever you need to call the functions, and link XICOR25.C into your program.

  ViewView The Source Code
  DownloadDownload The Source Code

This code was tested using an X25F032, using the PC parallel port for the interface, and using Borland's C/C++ v3.1 compiler, though it can easily be adapted for other targets and other compilers.

  • Xicor Home Page

  •  
    Home About This Site Add URL Contact Us Privacy Link To Us Search What's New?

    —   T H E   E E   C O M P E N D I U M   —
    Copyright © 2008 by EE Compendium, Last Update: Wednesday, 09/06/06