Download View - Onset
Transcript
Section 7 - Application Notes for the Model 8
ANSI-C
Tattletale Installation and Operation Manual
DisplayFlashMap();
break;
case 'F' :
GetFlashID();
break;
case 'Q' :
ResetToMon();
}
goto loop;
}
// end main
/*******************************************************************************
**
SetupExtFlashMem
Setup external memory
*******************************************************************************/
void SetupExtFlashMem(void)
{
XMemOEPar = XMemCSHiPar = XMemCSLoPar = PORT16;
*XMemOEBase =
*XMemOEOpts =
(XMemBaseAddr >> 8) | SZ1M;
|
|
|
|
|
|
|
|
|
M_MDSYNC
M_BYTEU
M_BYTEL
M_CSWRITE
M_CSREAD
M_DSSTRB
M_WAIT6
M_SPCS
M_SPCU
M_AVEC
&
&
&
&
&
&
CLR
SET
SET
CLR
SET
CLR
&
&
&
SET
SET
CLR
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
0 = async, 1 = synchronous
upper byte
lower byte
write
read
0 = address, 1 = data strobe
wait states
supervisor
user
0 = ext rupt, 1 = autovector
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
0 = async, 1 = synchronous
upper byte
lower byte
write
read
0 = address, 1 = data strobe
wait states
supervisor
user
0 = ext rupt, 1 = autovector
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
0 = async, 1 = synchronous
upper byte
lower byte
write
read
0 = address, 1 = data strobe
wait states
supervisor
user
0 = ext rupt, 1 = autovector
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
;
*XMemHiBase =
*XMemHiOpts =
(XMemBaseAddr >> 8) | SZ1M;
|
|
|
|
|
|
|
|
|
M_MDSYNC
M_BYTEU
M_BYTEL
M_CSWRITE
M_CSREAD
M_DSSTRB
M_WAIT6
M_SPCS
M_SPCU
M_AVEC
&
&
&
&
&
&
CLR
SET
CLR
SET
SET
CLR
&
&
&
SET
SET
CLR
;
*XMemLoBase =
*XMemLoOpts =
(XMemBaseAddr >> 8) | SZ1M;
|
|
|
|
|
|
|
|
|
M_MDSYNC
M_BYTEU
M_BYTEL
M_CSWRITE
M_CSREAD
M_DSSTRB
M_WAIT6
M_SPCS
M_SPCU
M_AVEC
&
&
&
&
&
&
CLR
CLR
SET
SET
SET
CLR
&
&
&
SET
SET
CLR
;
}
/* SetupExtFlashMem() */
/*****************************************************************************
**
**
**
******************************************************************************/
Page 7-22
Onset Computer Corporation - Model 8 with C
D-3285-C