Specifications

33
if (StoredValue != TestBit16[Loop]) /*compare w/ values in TestBit16[]*/
{
DisplayErrorMessage(StoredValue,TestBit16[Loop]);
if (!(AskUser())) return ERROR;
result = ERROR;
}
}
return result;
}
/**************************************************************************/
/**************************************************************************/
/* Module : Test16Write8Read() */
/* Parameters : NONE */
/* Return Type : char */
/* Created On : 05/04/95 */
/* Modified On : 05/23/95 */
/* Description : This routine does 16 bit writes and 8 bit reads from the*/
/* fifos. This test makes sure that fifos are accessed */
/* properly. */
/**************************************************************************/
/**************************************************************************/
char Test16Write8Read()
{
unsigned char ValueA,ValueB,result,Loop;
result = FALSE;
for (Loop=0;Loop<6;++Loop)
FIFO = TestBit16[Loop]; /*16 bit writes from TestBit16[] */
for (Loop=0;Loop<6;++Loop)
{
ValueA = FIFOA; /*8 bit read from FIFO A */
ValueB = FIFOB; /*8 bit read from FIFO B */
if (ValueA != TestBit8[Loop]) /*compare w/ values in TestBit8[] */
{
puts("FIFO A Error");
DisplayErrorMessage(ValueA,TestBit8[Loop]);
if (!(AskUser())) return ERROR;
result = ERROR;
}
if (ValueB != TestBit8[Loop+6]) /*compare w/ values in TestBit8[] */
{
puts("FIFO B Error");
DisplayErrorMessage(ValueB,TestBit8[Loop+7]);
if (!(AskUser())) return ERROR;
result = ERROR;
}
}
return result;
}
/**************************************************************************/
/**************************************************************************/
/* Module : InterruptWriteTest() */
/* Parameters : NONE */
/* Return Type : char */
/* Created On : 05/04/95 */
/* Modified On : 05/04/95 */
/* Description : This routine is entered during an interrupt if WRITE is */
/* to be performed. This routine simply writes values to */