Is there any tool for pin configuration and initialization of the LPC1778 like the MCUExpresso Config tool as currently only LPC55xx devices are available on it.
Solved! Go to Solution.
Hello @pb02,
You still can use the PINSEL, and do the process by yourself; nonetheless, there is functions as the one you point out, that helps you to do the process. It may be easier to do the configuration trough the functions, but it could be both ways according your needs.
For IOCON: I/O pin configuration, you can set a pinmux for a single pin with IOCONPinMuxSet() or set a pinmux for group of pins with IOCON_SetPinMuxing().
For further information related to the SDK and functions you could use for your configuration, please check the MCUXpresso SDK API Reference Manual: IOCON: I/O pin configuration.
Best regards, Raul.
Thank you so much for helping out @RaRo.
I am quite new to LPC architecture.
I just went through these, the underlying doubt is that like the old legacy headers, all pins of a port can be configured via the PINSEL register, but as per headers and examples in LPCOPEN the pins have to be set using the Chip_IOCON_PinMux function individually for each pin, is that the correct interpretation?
Thanks and Regards,
pb02
Hello @pb02,
You still can use the PINSEL, and do the process by yourself; nonetheless, there is functions as the one you point out, that helps you to do the process. It may be easier to do the configuration trough the functions, but it could be both ways according your needs.
For IOCON: I/O pin configuration, you can set a pinmux for a single pin with IOCONPinMuxSet() or set a pinmux for group of pins with IOCON_SetPinMuxing().
For further information related to the SDK and functions you could use for your configuration, please check the MCUXpresso SDK API Reference Manual: IOCON: I/O pin configuration.
Best regards, Raul.
Hello @pb02,
Unfortunately, there is not a tool like ConfigTools that supports that microcontroller. You could check LPCOpen Software for LPC17XX or LPCOpen Libraries and Examples for LPC17xx examples, they could be useful as a guide for the pin configuration and initialization.
In case you are using MCUXpresso IDE, in this link MCUXpresso IDE - Using LPCOpen Examples you may find a way to import the examples of LPCOpen, work with them and debug your board.
Best regards, Raul.