2013-11-15

SPI testing notes


// ***********************************************************************
// Program  - Fong EKG v5.06
// Function - Testing Olimex EKG
// Author   - TL Fong
// Build    - 2013.11.15.01
// Date     - 2013nov15hkt1705
// 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();

// *** SPI Channel Number Only  ***

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

// *** SPI Channel Number and Slave Select Number ***

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

// testDisplayLedArray061(SPI_CHANNEL_0, SLAVE_SELECT_0); // bug!!!
// testDisplayLedArray061(SPI_CHANNEL_1, SLAVE_SELECT_0); // bug!!!
}

.END

No comments:

Post a Comment