2013-11-17

Olimex SPI 0/1 EEPROM/ADC/LED(MAX7219) tests OK


Olimex SPI 0/1 EEPROM/ADC/LED(MAX7219) tests OK

int main()
{
// *** Test Olimex Eval Board 2013nov17 ***
// testBlinkOlimexLed1();
// testOlimexLedKey01();

// testMcp25Lc256V0701(SPI_CHANNEL_0);
// testMcp25Lc256V0701(SPI_CHANNEL_1);

// testMcp3208V0701(SPI_CHANNEL_0);
// testMcp3208V0701(SPI_CHANNEL_1);

testMax7219DigitV0701(SPI_CHANNEL_0);
testMax7219DigitV0701(SPI_CHANNEL_1); // Need power on reset MAX7219, tested twice !!!

}

testMcp25Lc256V0701(SPI_CHANNEL_0);
testMcp25Lc256V0701(SPI_CHANNEL_1);

*** Test EEPROM - 2013nov16 ***

 Now writing 0x55 ...
 Now testing byte read ...
 Readback databyte = 55 

 Now writing byte 0xaa ...
 Now testing byte read ...
 Readback databyte = aa 

*** End of test ***                                          

*** Test EEPROM - 2013nov16 ***

 Now writing 0x55 ...
 Now testing byte read ...
 Readback databyte = 55 

 Now writing byte 0xaa ...
 Now testing byte read ...
 Readback databyte = aa 

*** End of test ***   


testMcp3208V0701(SPI_CHANNEL_0);
testMcp3208V0701(SPI_CHANNEL_1);

*** Test ADC - 2013nov16 ***

ADC Channel = 0
ADC result milliVolt = 1651
ADC Channel = 1
ADC result milliVolt = 1654
ADC Channel = 2
ADC result milliVolt = 1652
ADC Channel = 3
ADC result milliVolt = 1654
ADC Channel = 4
ADC result milliVolt = 2489
ADC Channel = 5
ADC result milliVolt = 2474
ADC Channel = 6
ADC result milliVolt = 2482
ADC Channel = 7
ADC result milliVolt = 2474

*** End of test ***

*** Test ADC - 2013nov16 ***

ADC Channel = 0
ADC result milliVolt = 2489
ADC Channel = 1
ADC result milliVolt =    0
ADC Channel = 2
ADC result milliVolt = 1626
ADC Channel = 3
ADC result milliVolt = 1626
ADC Channel = 4
ADC result milliVolt = 1629
ADC Channel = 5
ADC result milliVolt = 1625
ADC Channel = 6
ADC result milliVolt = 1633
ADC Channel = 7
ADC result milliVolt = 1626

*** End of test

testMax7219DigitV0701(SPI_CHANNEL_0);
testMax7219DigitV0701(SPI_CHANNEL_1); // often need power on reset MAX7219, always need to 
                                     // test twice !!!

*** Segment LED 01 - 2013nov06hkt1128 ***

*** Segment LED 01 - 2013nov06hkt1128 ***

.END

No comments:

Post a Comment