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);
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();
}