2013-11-16
SPI MAX7219 testing notes
// **********************************************************************
// Program - Fong EKG v5.06
// Function - Testing Olimex EKG
// Author - TL Fong
// Build - 2013.11.16.01
// Date - 2013nov16hkt1735
// 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();
// *** 1.1 SPI0/1 default SSEL0 - MCP25LC256 EEPROM OK ***
// testMcp25Lc256(SPI_CHANNEL_0);
// testMcp25Lc256(SPI_CHANNEL_1);
// *** 1.2 SPI0/1 default SSEL0 - MCP3208 ADC OK ***
// testMcp3208v071(SPI_CHANNEL_0);
// testMcp3208v071(SPI_CHANNEL_1);
// *** 1.3 SPI0/1 default SSEL0 - MAX7219 7 segmet LED OK ***
// testMax7219SegmentLed01(SPI_CHANNEL_0);
// testMax7219SegmentLed01(SPI_CHANNEL_1);
// *** 2.1 SPI0/1, specify SSEL0 - MCP25LC256 EEPROM OK ***
// testMcp25Lc256V0600(SPI_CHANNEL_0, SLAVE_SELECT_0);
// testMcp25Lc256V0600(SPI_CHANNEL_1, SLAVE_SELECT_0);
// *** 2.2 SPI0/1, specify SSEL0 - MCP3208 ADC OK ***
// testMcp3208V0600(SPI_CHANNEL_0, SLAVE_SELECT_0);
// testMcp3208V0600(SPI_CHANNEL_1, SLAVE_SELECT_0);
// *** 2.3 SPI0/1, specify SSEL0 - MCP7219 7 segment LED ***
// testDisplayLedArray061(SPI_CHANNEL_0, SLAVE_SELECT_0); // not working!
// testDisplayLedArray061(SPI_CHANNEL_1, SLAVE_SELECT_0); // not working!
// *** 1.3 retesting OK ***
// testMax7219SegmentLed01(SPI_CHANNEL_0);
// testMax7219SegmentLed01(SPI_CHANNEL_1);
// *** 2.3 retesting OK this time !!!***
// testDisplayLedArray061(SPI_CHANNEL_0, SLAVE_SELECT_0);
// testDisplayLedArray061(SPI_CHANNEL_1, SLAVE_SELECT_0);
// *** 2.3 retesting after power down/up - not working **
// testDisplayLedArray061(SPI_CHANNEL_0, SLAVE_SELECT_0); // not working!
// testDisplayLedArray061(SPI_CHANNEL_1, SLAVE_SELECT_0); // not working!
// *** 1.3, 2.3 in sequence OK ***
testMax7219SegmentLed01(SPI_CHANNEL_0);
testMax7219SegmentLed01(SPI_CHANNEL_1);
testDisplayLedArray061(SPI_CHANNEL_0, SLAVE_SELECT_0);
testDisplayLedArray061(SPI_CHANNEL_1, SLAVE_SELECT_0);
// ***********************************************************************
// End
// ***********************************************************************
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment