2013-11-19

SPI troubleshooting notes


void testMax7219v0702(uint8_t spiChannelNumber, uint8_t slaveSelectNumber)
{
printf("\n\n*** test Max7219 - 2013nov19 ***\n\n");
// spiSetup060(spiChannelNumber, slaveSelectNumber);
spiSetup070(spiChannelNumber, slaveSelectNumber); // this version will NOT
                                                 // repeatedly set up SPI
displayMcp7219Display8DigitsV0701(spiChannelNumber, slaveSelectNumber, \
                         2, 2, 3, 4, 5, 6, 7, 8);
printf("\n*** End of test ***\n");

// *** For debugging only ***
printf("\n*** Now repeat 400 times every 10 mS ***\n");
uint8_t i;
for (i = 0; i < 200; i++)
{
displayMcp7219Display8DigitsV0701(spiChannelNumber, slaveSelectNumber, \                   3, 2, 3, 4, 5, 6, 7, 8);
delayMilliSecond(10);
}
// *** End of debugging ***
}

.END

No comments:

Post a Comment