2013-11-03
Testing SPI0 and SPI1 with Dual MCP3208 OK
I tested both SPI0 and SPI1 and found everything OK.
testBlinkLpc1114LedP03();
testMcp3208(SPI_CHANNEL_0, ADC_CHANNEL_0);
testMcp3208(SPI_CHANNEL_0, ADC_CHANNEL_1);
testMcp3208(SPI_CHANNEL_0, ADC_CHANNEL_2);
testMcp3208(SPI_CHANNEL_0, ADC_CHANNEL_3);
testMcp3208(SPI_CHANNEL_0, ADC_CHANNEL_4);
testMcp3208(SPI_CHANNEL_0, ADC_CHANNEL_5);
testMcp3208(SPI_CHANNEL_0, ADC_CHANNEL_6);
testMcp3208(SPI_CHANNEL_0, ADC_CHANNEL_7);
testMcp3208(SPI_CHANNEL_0, ADC_CHANNEL_0);
testMcp3208(SPI_CHANNEL_1, ADC_CHANNEL_0);
testMcp3208(SPI_CHANNEL_1, ADC_CHANNEL_1);
testMcp3208(SPI_CHANNEL_1, ADC_CHANNEL_2);
testMcp3208(SPI_CHANNEL_1, ADC_CHANNEL_3);
testMcp3208(SPI_CHANNEL_1, ADC_CHANNEL_4);
testMcp3208(SPI_CHANNEL_1, ADC_CHANNEL_5);
testMcp3208(SPI_CHANNEL_1, ADC_CHANNEL_6);
testMcp3208(SPI_CHANNEL_1, ADC_CHANNEL_7);
ADC Channel = 0
ADC result milliVolt = 1647
ADC Channel = 1
ADC result milliVolt = 1651
ADC Channel = 2
ADC result milliVolt = 1651
ADC Channel = 3
ADC result milliVolt = 1651
ADC Channel = 4
ADC result milliVolt = 2487
ADC Channel = 5
ADC result milliVolt = 2479
ADC Channel = 6
ADC result milliVolt = 2484
ADC Channel = 7
ADC result milliVolt = 2479
ADC Channel = 0
ADC result milliVolt = 1654
ADC Channel = 0
ADC result milliVolt = 2489
ADC Channel = 1
ADC result milliVolt = 0
ADC Channel = 2
ADC result milliVolt = 1627
ADC Channel = 3
ADC result milliVolt = 1621
ADC Channel = 4
ADC result milliVolt = 1626
ADC Channel = 5
ADC result milliVolt = 1628
ADC Channel = 6
ADC result milliVolt = 1629
ADC Channel = 7
ADC result milliVolt = 1627
.END
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment