LPC54608 M1-pin(1,20port) cannot onoff

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC54608 M1-pin(1,20port) cannot onoff

357件の閲覧回数
実奥山
Contributor II

I tried onoff test of IO port. It is M1-pin,(port1,20).

Other pins do on-off.

But M1 pin do not   on-off.

Below is a sample program.

port(1,17)  do on-off.

But port(1,20 M1 pin) do not   on-off.

    GPIO_Clken(1);         /* GPIO1 CLK enable */

GPIO_PinInit(1,17, &output_config);  

GPIO_PinInit(1,20, &output_config);

               oPort_sub(1,17,1);
               oPort_sub(1,17,0);

               oPort_sub(1,20,1);
               oPort_sub(1,20,0);

0 件の賞賛
1 返信

312件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

Dear Sir,

I have tested the P1_20 pin on LPC54608 board, no problem.

Pls use the code to have a try based on SDK.

BR

XiangJun Rong

    //configure P1_20 pin as GPIO
    //enable clock of P1 and IOCON
    SYSCON->AHBCLKCTRLSET[0]|=1<<15|1<<13;
    //configure the pin P1_20  as GPIO
    IOCON->PIO[1][20]=0x100; //dogital GPIO mode
    //configure the P1_20 direction register as output mode
    GPIO->DIRSET[1]=1<<20;
    GPIO->NOT[1]=1<<20;
    GPIO->NOT[1]=1<<20;
    GPIO->NOT[1]=1<<20;
    //toggle the P1_20 pin

in the main loop

while(1)

{

GPIO->NOT[1]=1<<20;

delay();

}

0 件の賞賛