i am a newbie to NXP micros
i am using the LPC54xx
i want to output data on a set of pins. i will address each pin on its own becuase they are spread around
i am finding it very difficult to understand how GPIOs are manipulated.
i am setting them as output on the pin configuration tools and its being initialized by the generated code.
i want to start putting 1s and 0s on the pins
Are the below the correct functions to use:
1. GPIO_PortClear ( , , ) to put 0 on the port
for the pin i am using named enbale "E"
GPIO_PortClear (E_PIN_GPIO,E_PIN_PORT,1<< E_PIN_PIN);
2. GPIO_PortSet( , , ) to put 1 on the port
for the pin i am usinf named enbale "E"
GPIO_PortSet (E_PIN_GPIO,E_PIN_PORT,1<< E_PIN_PIN);
3. GPIO_PortMaskedSet( , , ) to write "0" or "1"
please let me know if i am on the right track