lpcware

Pin sets as output

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 18, 2016 by lpcware
Content originally posted in LPCWare by Tarakan on Fri Mar 04 12:13:40 MST 2016
I did a little experiment. I set all the pins as output in LPC824M201 (TSSOP20). Here is a fragment of program:
...
Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_SWM);
Chip_SWM_DisableFixedPin(SWM_FIXED_CLKIN);
Chip_Clock_DisablePeriphClock(SYSCTL_CLOCK_SWM);
Chip_GPIO_Init(LPC_GPIO_PORT);
Chip_GPIO_SetPortDIROutput(LPC_GPIO_PORT, 0, 0xFFFFFFFF);
Chip_GPIO_SetPortMask(LPC_GPIO_PORT, 0, 0x00);
...
int main(void) {
   while(1) {
      DelayMs(10);
      Chip_GPIO_SetPortValue(LPC_GPIO_PORT,0, 0x00);
      DelayMs(10);
      Chip_GPIO_SetPortValue(LPC_GPIO_PORT,0, 0xFFFFFFFF);
   }
}
Work outputs P0_0, 1, 5, 8, 9, 12, 15
Not work outputs P0_4, 10, 11, 13, 14, 17, 23
I tried use function Chip_SWM_DisableFixedPin() without success.
What is the difference between pins?
How to get to work all the pins?
Thenks for ideas.

Outcomes