// **********************************************************************
// Program - Fong EKG v5.06
// Function - Testing Olimex EKG
// Author - TL Fong
// Build - 2013.11.17.01
// Date - 2013nov17hkt0932
// 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()
{
// *** Test Blue Magic LPC1114 Minimal Board 2013nov17 ***
// testBlink6LedV0701();
// testMcp3208V0701(SPI_CHANNEL_0); // SPI 0/1 ADC/EEPROM/LED OK
// testMcp3208V0701(SPI_CHANNEL_1);
// testMcp25Lc256V0701(SPI_CHANNEL_0);
// testMcp25Lc256V0701(SPI_CHANNEL_1);
// testMax7219DigitV0701(SPI_CHANNEL_0);
// testMax7219DigitV0701(SPI_CHANNEL_1); // Need power on reset MAX7219, tested twice !!!
// testMcp25Lc256V0702(SPI_CHANNEL_0, SLAVE_SELECT_0); // SPI 0/1 SSEL0 OK
// testMcp25Lc256V0702(SPI_CHANNEL_1, SLAVE_SELECT_0);
// testMcp3208V0702(SPI_CHANNEL_0, SLAVE_SELECT_0); // SPI0/1 SSEL0 OK
// testMcp3208V0702(SPI_CHANNEL_1, SLAVE_SELECT_0);
// testMax7219v0702(SPI_CHANNEL_0, SLAVE_SELECT_0); // SPI0/1 SSEL0 OK
// testMax7219v0702(SPI_CHANNEL_1, SLAVE_SELECT_0);
// testMax7219v0702(SPI_CHANNEL_0, SLAVE_SELECT_2); // SPI0 SSEL2/3 not working!
// testMax7219v0702(SPI_CHANNEL_0, SLAVE_SELECT_3);
// testBlinkLedP07V0701(); // Blink single LED P07 OK SSEL1 OK
// testBlinkLedP011V0701(); // P011 SSEL2 not working!
// testBlinkLedP25V0701(); // P25 SSEL3 not working!
// testBlinkLedP19V0701(); // P19 SSEL4 OK
// testBlinkLedP24V0701(); // P25 SSEL5 not working!
// testMax7219v0702(SPI_CHANNEL_0, SLAVE_SELECT_1); // SPI0 SSEL1/4 OK
// testMax7219v0702(SPI_CHANNEL_0, SLAVE_SELECT_4);
// *** Test WuYinS LPC1114 Minimal Board 2013ov17 ***
testWuYinBlinkLedP33(); // OK 2013nov13/17
// testWuYinEchoKeyP15ByLedP33(); // OK 2013nov13/17
// testMcp3208V0701(SPI_CHANNEL_0); // SPI 0/1 ADC/EEPROM/LED OK 2013nov17
// testMcp3208V0701(SPI_CHANNEL_1);
// testMcp25Lc256V0701(SPI_CHANNEL_0);
// testMcp25Lc256V0701(SPI_CHANNEL_1);
// testMax7219DigitV0701(SPI_CHANNEL_0); // Need power on reset MAX7219!!!
// testMax7219DigitV0701(SPI_CHANNEL_1);
// testMcp25Lc256V0702(SPI_CHANNEL_0, SLAVE_SELECT_0); // SPI 0/1 SSEL0 OK
// testMcp25Lc256V0702(SPI_CHANNEL_1, SLAVE_SELECT_0);
// testMcp3208V0702(SPI_CHANNEL_0, SLAVE_SELECT_0); // SPI 0/1 SSEL0 OK
// testMcp3208V0702(SPI_CHANNEL_1, SLAVE_SELECT_0);
testMax7219v0702(SPI_CHANNEL_0, SLAVE_SELECT_0); // SPI0/1 SSEL0
testMax7219v0702(SPI_CHANNEL_1, SLAVE_SELECT_0); // Need Max7219 power on reset, tested twice!!!
}
// ***********************************************************************
// End
// ***********************************************************************
No comments:
Post a Comment