Pin sets as output

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Pin sets as output

295 Views
lpcware
NXP Employee
NXP Employee
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.
Labels (1)
0 Kudos
1 Reply

251 Views
lpcware
NXP Employee
NXP Employee
bump
0 Kudos