mirror of
https://github.com/dougg3/mac-rom-simm-programmer.git
synced 2024-11-22 06:32:23 +00:00
I had forgotten to check the control lines for ground shorts.
This commit is contained in:
parent
65c6654660
commit
bfeadc7e3a
@ -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.
|
// Then read the values back and check for any zeros. This would indicate a short to ground.
|
||||||
Ports_SetAddressDDR(0);
|
Ports_SetAddressDDR(0);
|
||||||
Ports_SetDataDDR(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_AddressPullups_RMW(SIMM_ADDRESS_PINS_MASK, SIMM_ADDRESS_PINS_MASK);
|
||||||
Ports_DataPullups_RMW(SIMM_DATA_PINS_MASK, SIMM_DATA_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);
|
DelayMS(DELAY_SETTLE_TIME_MS);
|
||||||
|
|
||||||
@ -55,6 +61,24 @@ int SIMMElectricalTest_Run(void)
|
|||||||
numErrors++;
|
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
|
// Now, check each individual line vs. all other lines on the SIMM for any shorts between them
|
||||||
ElectricalTestStage curStage = TestingAddressLines;
|
ElectricalTestStage curStage = TestingAddressLines;
|
||||||
int x = 0;
|
int x = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user