Specifications

24
{
NEWLN();
PrintHex(counter);
puts("Loop");
fail |= Programmed_IO_Test();
fail |= Interrupt_IO_Test();
/*fail |= DMA_IO_Test();*/
}
break;
default:
NEWLN();
RET340BUG();
}
if (fail)
puts("\nHardware Diagnostics Completed. Board is not fully functional.\n");
else
puts("\nHardware Diagnostics Completed. Board is fully functional.\n");
}
}
/**************************************************************************/
/**************************************************************************/
/* Module : ConfigureMC() */
/* Parameters : NONE */
/* Return Type : void */
/* Created On : 05/04/95 */
/* Modified On : 05/15/95 */
/* Description : Configures the MC68340 CPU. */
/* Loads the interrupt handler for IRQ3 */
/* Configures the SIM for unrestricted data space,no show */
/* cycles, partial interrupt request mode. */
/* */
/* To place the TNT in a different address space, assign */
/* appropriate values to the chip select registers. */
/* To change the interrupt priority, make changes to the */
/* HARDWARE.H file. */
/* */
/* Reference : MC68340 User's Manual (MC68340UM/AD Rev 1) Section 4. */
/**************************************************************************/
/**************************************************************************/
void ConfigureMC()
{
unsigned int *Exception;
(unsigned int)Exception = AVECIRQ3;
CSBAR2 = 0x00FFEFF1; /*CS base address register*/
CSAMR2 = 0x000007F3; /*CS address mask register*/
SIMMCR = IARB; /*configure SIM */
AVR = IRQ3; /*autovector for IRQ3 */
*Exception = (unsigned int)handler; /*load interrupt handler */
}
/**************************************************************************/
/**************************************************************************/
/* Module : Programmed_IO_Test() */
/* Parameters : NONE */
/* Return Type : char */
/* Created On : 05/04/95 */
/* Modified On : 05/15/95 */
/* Description : Performs 5 types of Programmed I/O tests: */
/* */