I had forgotten to check the control lines for ground shorts.

This commit is contained in:
Doug Brown 2011-12-04 17:09:57 -08:00
parent 65c6654660
commit bfeadc7e3a
1 changed files with 24 additions and 0 deletions

View File

@ -38,8 +38,14 @@ int SIMMElectricalTest_Run(void)
// Then read the values back and check for any zeros. This would indicate a short to ground.
Ports_SetAddressDDR(0);
Ports_SetDataDDR(0);
Ports_SetCSDDR(false);
Ports_SetOEDDR(false);
Ports_SetWEDDR(false);
Ports_AddressPullups_RMW(SIMM_ADDRESS_PINS_MASK, SIMM_ADDRESS_PINS_MASK);
Ports_DataPullups_RMW(SIMM_DATA_PINS_MASK, SIMM_DATA_PINS_MASK);
Ports_SetCSPullup(true);
Ports_SetOEPullup(true);
Ports_SetWEPullup(true);
DelayMS(DELAY_SETTLE_TIME_MS);
@ -55,6 +61,24 @@ int SIMMElectricalTest_Run(void)
numErrors++;
}
if (!Ports_ReadCS())
{
// TODO: Log all these errors somewhere?
numErrors++;
}
if (!Ports_ReadOE())
{
// TODO: Log all these errors somewhere?
numErrors++;
}
if (!Ports_ReadWE())
{
// TODO: Log all these errors somewhere?
numErrors++;
}
// Now, check each individual line vs. all other lines on the SIMM for any shorts between them
ElectricalTestStage curStage = TestingAddressLines;
int x = 0;