Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
SMC SRAM Example

Purpose

This example shows how to configure the Static Memory Controller (SMC) for SRAM, and do write and read operations to check the configuration.

Requirements

This package can be used with SAM evaluation kits.

Description

An accurate one-to-one comparison is necessary between SRAM and SMC waveforms for a complete SMC configuration.

  • The required steps are:
    • Configure EBI I/O for SRAM connection
    • Configure PMC to enable the SMC clock.
    • Refer to the "AC Characteristics" section of the customer SRAM datasheet.
    • Configure SMC timing to fix the characteristics
    • Configure SMC mode register for page mode if any.
    • Access the SRAM for write or read.

Usage

  1. Build the program and download it inside the evaluation board.
  2. On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
    • 115200 bauds
    • 8 bits of data
    • No parity
    • 1 stop bit
    • No flow control
  3. Start the application.
  4. In the terminal window, the following text should appear:
    -- SMC SRAM Example --
    -- xxxxxx-xx
    -- Compiled: xxx xx xxxx xx:xx:xx --