// **************************************************************************************** // Project : // Program Name : // Programer : // Create date : // History : // Launguage : // **************************************************************************************** // (1)Description // // **************************************************************************************** #define PI_LOOP_N 600000 #include "LPC13xx.h" int main( void ) { unsigned int LEDlst=0; unsigned int lp; // ******************** // 1.Initialized Segmant // ******************** // (1)Define I/O PORT LPC_GPIO2->DIR = 0x000000FF; //GP2の0〜7Bitを出力に設定する(uint32型) // ******************** // 2.Main // ******************** LEDlst = 1; while(1){ if(LEDlst == 1){ LEDlst = 2; }else if(LEDlst > 127){ LEDlst = 1; }else{ LEDlst = LEDlst * 2; } LPC_GPIO2->DATA = LEDlst; //GP2にデータを書き込む(uint32型) for(lp=0;lp