2013-11-15

SPI 0,1 is tested OK


SPI 0,1 is tested OK!

testMcp3208V0600(SPI_CHANNEL_0, SLAVE_SELECT_1); // OK


// ***********************************************************************
// Program  - Fong EKG v5.06
// Function - Testing Olimex EKG
// Author   - TL Fong
// Build    - 2013.11.15.02
// Date     - 2013nov15hkt2124
// Hardware - WuyinS/Olimex/CooCox/MagicBlue/WHUT/Somy LPC1114/C14/301
//            Olimex EKG Board (SHIELD-EKG/EMG Rev B, Bulgaria 2011)
// Software - GCC ARM 4.7, CoIDE 1.7.5,  CoLinkEx 1.1, Flash Magic v7.66
// ***********************************************************************

#include "test050.h"

// ***********************************************************************
// Main Function
// ***********************************************************************

int main()
{
testBlinkLedP03();

// *** SPI0, SPI1, default SSEL0, SSEL1   ***

// testMax7219SegmentLed01(SPI_CHANNEL_0); // OK
// testMax7219SegmentLed01(SPI_CHANNEL_1);  // OK

// testMcp25Lc256(SPI_CHANNEL_0); // OK
// testMcp25Lc256(SPI_CHANNEL_1); // OK

// testMcp3208v071(SPI_CHANNEL_0); // OK
// testMcp3208v071(SPI_CHANNEL_1); // OK

// testMcp25Lc256(SPI_CHANNEL_0); // OK
// testMcp25Lc256(SPI_CHANNEL_1); // OK

// *** SPI0, SPI1, specified SSEL0, SSEL0 ***

testMcp25Lc256V0600(SPI_CHANNEL_0, SLAVE_SELECT_0); // OK
testMcp25Lc256V0600(SPI_CHANNEL_1, SLAVE_SELECT_0); // OK;

// testMcp3208V0600(SPI_CHANNEL_0, SLAVE_SELECT_0); // OK
// testMcp3208V0600(SPI_CHANNEL_1, SLAVE_SELECT_0); // OK

// testMax7219SegmentLed01(SPI_CHANNEL_0); // OK
// testMax7219SegmentLed01(SPI_CHANNEL_1);  // OK

// testDisplayLedArray061(SPI_CHANNEL_0, SLAVE_SELECT_0); // OK
// testDisplayLedArray061(SPI_CHANNEL_1, SLAVE_SELECT_0); // OK

// *** SPI0, sepcified SSEL1 ***

testMcp3208V0600(SPI_CHANNEL_0, SLAVE_SELECT_1); // OK
}


*** Blink LED P03 - 2013nov14hkt1553 ***

*** End of test ***


*** MCP25LC256 Test - 2013nov11hkt1031 ***

slaveSelectPortPinArray Port = 00 
slaveSelectPortPinArray Pin  = 02 

 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 ***

slaveSelectPortPinArray Port = 02 
slaveSelectPortPinArray Pin  = 00 

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

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

*** End of testMcp25Lc256 ***                                                                                      

*** Test ADC - 2013nov10hk2112 ***

slaveSelectPortPinArray Port = 00 
slaveSelectPortPinArray Pin  = 07 
ADC Channel = 0
ADC result milliVolt = 1652

slaveSelectPortPinArray Port = 00 
slaveSelectPortPinArray Pin  = 07 
ADC Channel = 1
ADC result milliVolt = 1652

slaveSelectPortPinArray Port = 00 
slaveSelectPortPinArray Pin  = 07 
ADC Channel = 2
ADC result milliVolt = 1652

slaveSelectPortPinArray Port = 00 
slaveSelectPortPinArray Pin  = 07 
ADC Channel = 3
ADC result milliVolt = 1652

slaveSelectPortPinArray Port = 00 
slaveSelectPortPinArray Pin  = 07 
ADC Channel = 4
ADC result milliVolt = 2487

slaveSelectPortPinArray Port = 00 
slaveSelectPortPinArray Pin  = 07 
ADC Channel = 5
ADC result milliVolt = 2479

slaveSelectPortPinArray Port = 00 
slaveSelectPortPinArray Pin  = 07 
ADC Channel = 6
ADC result milliVolt = 2485

slaveSelectPortPinArray Port = 00 
slaveSelectPortPinArray Pin  = 07 
ADC Channel = 7
ADC result milliVolt = 2479

.END


No comments:

Post a Comment