2013-11-11
SPI 0,0, SPI 0,1 MAX7219, MCP3208, MCP25LC256 all tested OK
int main()
{
testMax7219v0600(SPI_CHANNEL_0, SLAVE_SELECT_0); // SPI 0,0 LED
testMax7219v0601(SPI_CHANNEL_0, SLAVE_SELECT_1); // SPI 0, 1LED
testAdc04(SPI_CHANNEL_1); // SPI 1 ADC
testMcp3208V0600(SPI_CHANNEL_0, SLAVE_SELECT_0); // SPI 0,0 ADC
testMcp25Lc256(SPI_CHANNEL_1); // SPI 1 EEPROM
testMcp25Lc256V0600(SPI_CHANNEL_0, SLAVE_SELECT_1); // SPI 0,1 EEPROM
}
*** Testing SPI 0,0, SPI 0,1, SPI 1,0 - 2013nov1101 ***
*** testMax7219V0600 - 2013nov11hk0911 ***
*** End of testMax7219V0600 ***
*** testMax7219V0601 - 2013nov11hk0911 ***
*** End of testMax7219V0601 ***
*** testAdcV04 - 2013nov11hk0911 ***
ADC Channel = 0
ADC result milliVolt = 2489
ADC Channel = 1
ADC result milliVolt = 2489
ADC Channel = 2
ADC result milliVolt = 2489
ADC Channel = 3
ADC result milliVolt = 2489
ADC Channel = 4
ADC result milliVolt = 0
ADC Channel = 5
ADC result milliVolt = 0
ADC Channel = 6
ADC result milliVolt = 0
ADC Channel = 7
ADC result milliVolt = 0
*** End of testAdcV04 - 2013nov11hk0911 ***
*** Test ADC - 2013nov10hk2112 ***
ADC Channel = 0
ADC result milliVolt = 2489
ADC Channel = 1
ADC result milliVolt = 2489
ADC Channel = 2
ADC result milliVolt = 2489
ADC Channel = 3
ADC result milliVolt = 2489
ADC Channel = 4
ADC result milliVolt = 2489
ADC Channel = 5
ADC result milliVolt = 2489
ADC Channel = 6
ADC result milliVolt = 2489
ADC Channel = 7
ADC result milliVolt = 2489
*** MCP25LC256 Test - 2013nov11hkt1031 ***
Now writing 0x55 ...
Now testing byte read ...
Readback databyte = 55
Now writing byte 0xaa ...
Now testing byte read ...
Readback databyte = aa
*** End of testMcp25Lc256 ***
*** MCP25LC256 Test - 2013nov11hkt1031 ***
Now writing 0x55 ...
Now testing byte read ...
Readback databyte = 55
Now writing byte 0xaa ...
Now testing byte read ...
Readback databyte = 55
*** End of testMcp25Lc256 ***
.END
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment