Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

# sramswconf.h

Go to the documentation of this file.

    00001 /*! \file sramswconf.h \brief Software-driven SRAM memory bus access configuration. */
    00002 //*****************************************************************************
    00003 //
    00004 // File Name    : 'sramswconf.h'
    00005 // Title        : Software-driven SRAM memory bus access functions
    00006 // Author       : Pascal Stang - Copyright (C) 2002
    00007 // Created      : 11/11/2002
    00008 // Revised      : 11/13/2002
    00009 // Version      : 1.0
    00010 // Target MCU   : Atmel AVR series
    00011 // Editor Tabs  : 4
    00012 //
    00013 // This code is distributed under the GNU Public License
    00014 //      which can be found at http://www.gnu.org/licenses/gpl.txt
    00015 //
    00016 //*****************************************************************************
    00017
    00018 #ifndef SRAMSWCONF_H
    00019 #define SRAMSWCONF_H
    00020
    00021 // defines
    00022
    00023 // data bus (DATA[0:7]) and low address (ADDR[0:7]) port
    00024 #define SRAM_ADL        PORTA
    00025 #define SRAM_ADL_DDR    DDRA
    00026 #define SRAM_ADL_IN     PINA
    00027 // high address port (ADDR[8:15])
    00028 #define SRAM_AH         PORTC
    00029 #define SRAM_AH_DDR     DDRC
    00030 // page address port (PAGE[0:3])
    00031 #define SRAM_PAGE       PORTB
    00032 #define SRAM_PAGE_DDR   DDRB
    00033 #define SRAM_PAGE_MASK  0x0F
    00034 // control port
    00035 #define SRAM_CTRL       PORTD
    00036 #define SRAM_CTRL_DDR   DDRD
    00037 // control lines
    00038 #define SRAM_ALE        PD5
    00039 #define SRAM_WR         PD6
    00040 #define SRAM_RD         PD7
    00041
    00042 #endif