LED/Key/PWM signals routing breadboard setup notes























Now I am extending the LED, key, and later PWM signals from eval board to bread board for testing.

// fongconfig01.h
// ***********************************************************************
// LPC1114 Evaluation Board configuration - last update 2013aug13
// ***********************************************************************

// *** Led and key port pin array array ***

typedef int ledPortPinArrayArray[4][2]; 
typedef int keyPortPinArrayArray[5][2]; 
typedef int pwmPortPinArrayArray[5][2]; 

typedef int portPinArrayArrayIndex;

portPinArrayArrayIndex PortIndex = 0; // port index
portPinArrayArrayIndex PinIndex  = 1; // pin index

typedef struct
{
ledPortPinArrayArray ledPortPinArrayArray[4][2];
keyPortPinArrayArray keyPortPinArrayArray[5][2];
pwmPortPinArrayArray pwmPortPinArrayArray[5][2];
} mcuBoardStruct;

// * Xia Board has 4 LEDs, 5 keys, and 5 PWMs *

ledPortPinArrayArray XiaLedPortPinArrayArray = {{Port1, Pin8}, {Port2, Pin7}, {Port2, Pin8}, {Port2, Pin5}};
int MaxXiaLedNumber = 4;

keyPortPinArrayArray XiaKeyPortPinArrayArray = {{Port0, Pin2},{Port0, Pin3}, {Port3, Pin4}, {Port1, Pin9}, {Port1, Pin4}};
int MaxXiaKeyNumber = 5;

pwmPortPinArrayArray XiaPwmPortPinArrayArray = {{Port0, Pin11},{Port1, Pin1}, {Port1, Pin2}, {Port1, Pin4}, {Port1, Pin9}};
int MaxXiaPwmNumber = 5;

mcuBoardStruct XiaBoardStruct = {{{Port1, Pin8},{Port2, Pin7}, {Port2, Pin8}, {Port2, Pin5}},
                                 {{Port0, Pin2},{Port0, Pin3}, {Port3, Pin4}, {Port1, Pin9}, {Port1, Pin4}},
                                 {{Port0, Pin11},{Port1, Pin1}, {Port1, Pin2}, {Port1, Pin4}, {Port1, Pin9}}
                                 };

mcuBoardStruct *XiaBoard = &XiaBoardStruct;

.END

No comments:

Post a Comment