Spanish Italian
17454 Users    

How to Use C18/HI-TECH C Compiler to Interface Serial SRAM Devices to PIC16F/PIC18F Microcontrollers

  Download PDF version of the Article

The purpose of this application note is to offer the designer a set of examples for the read and write functions for using the Microchip SPI serial SRAM.

Microchip’s serial SRAM product line represents a new way to add additional RAM to an application. With the small 8-pin packages and the SPI interface, these devices give designers added system flexibility. The 23XXXX series of serial SRAM devices 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 controlled by the Microcontroller (master), which accesses the 23XXXX using the MSSP peripheral built into the MCU configured for SPI operation. The MSSP peripheral can support throughput up to 5 or 8 MHz depending upon the device family of PIC16/18 MCU Selected. Communication can be paused using the HOLD pin.

The code was tested using the 23K256 SRAM mounted on the general purpose section of the PICDEM™ 2 Plus development board. The MSSP module is configured for SPI Master mode with a clock frequency of 5 MHz. The code is compatible with the PIC16F/18F families of MCUs with the MSSP module.

thank you

thank you

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
10 + 7 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

Who's new

  • fernand
  • Ligrock
  • paolo_0665
  • chanuei
  • JM
  • samsilva77
  • araghube
  • stoll
  • mt
  • orionkw

Who's online

There are currently 0 users and 63 guests online.