Fujitsu MB91V360 Посібник користувача - Сторінка 16

Переглянути онлайн або завантажити pdf Посібник користувача для Материнська плата Fujitsu MB91V360. Fujitsu MB91V360 20 сторінок. Levelshifter board

Fujitsu MB91V360 Посібник користувача

3.3 Simple test routine for SRAM of Level-Shifter board

/********************************************************************************************/
/* Levelshifter – Simple Test Routine for SRAM-Access with CS6
/* Usage MEM window of Softune workbench for memory check at 20:00000000 */
/* Notes: before usage of the SRAM must be set jumper and pre selected CS6
/*
by software with port function register
/********************************************************************************************/
#include "MB91360.H"
#include "global.h"
/* declarations */
/* prototypes */
/*****************************************************************************/
/* Main Routine */
/*****************************************************************************/
void main(void)
{
#define DATATYPE long
volatile DATATYPE Data;
volatile DATATYPE *pData;
unsigned long i;
/* set size of SRAM-Memory
#define RAM_SIZE 0x40000
/* set chip select for test
#define CS6_Adr 0x20000000
pData = (DATATYPE *)CS6_Adr;
PFR7_PF76
= 1;
PFR27
= 0x40;
ASR6 = CS6_Adr>>16;
AMR6 = 0x000F;
AMD6 = 0x17;
CSE = 0x42;
/*****************************************************************************/
/* RAM check 0x12345678 */
/*****************************************************************************/
pData = (DATATYPE*)CS6_Adr;
for ( i=0;i<RAM_SIZE;i++ )
*pData++ = 0x12345678;
*/
pData = (DATATYPE*)CS6_Adr;
for ( i=0;i<RAM_SIZE;i++ )
if ( *pData++ != 0x12345678 )
__asm(" INTE ");
at this Adress-4 */
/*****************************************************************************/
/* RAM check 0x55555555 */
/*****************************************************************************/
pData = (DATATYPE*)CS6_Adr;
for ( i=0;i<RAM_SIZE;i++ )
*pData++ = 0x55555555;
*/
pData = (DATATYPE*)CS6_Adr;
UG-910005-24
LEVELSHIFTER BOARD
Chapter 3 Appendix
/* include all IO-Register definitions */
/* some useful definitions */
0:0000-F:FFFF */
*/
/* Chip-select area 2 */
/* Pointer at ext. SRAM */
/* PFR select CS6 */
/* ... */
/* 1Mbyte address range 2000:0000-200F:FFFF */
/* 32 bits bus width, 7 wait cycles,
RDY disable, SRAM 150ns cycle time */
/* CS1 + CS6 enable */
/* set Pointer at start-ADR of ext. SRAM */
/* (2 x 512kbyts) */
/* write Testpattern into ext.SRAM of LevelShifter-Board
/* set Pointer at start-ADR of ext. SRAM */
/* (2 x 512kbyts) */
/* check memory - SRAM of LevelShifter-Board */
/* --> Emulator stop by memory error
/* set Pointer at start-ADR of ext. SRAM */
/* (2 x 512kbyts) */
/* write Testpattern into ext.SRAM of LevelShifter-Board
/* set Pointer at start-ADR of ext. SRAM */
- 16 -
*/
*/
*/
© Fujitsu Microelectronics Europe GmbH