Using the SCT such as described in the Blinky example here: http://support.code-red-tech.com/CodeRedWiki/NewInVersion4?action=AttachFile&do=get&target=Red_State.pdf. there is an input DOWN to set the operational mode of the state machine.
This input can be mapped to a pin of the LPC (in my case LPC824) using the functions.
Chip_INMUX_SetSCTInMux(LPC_INMUX, SCT_INMUX_0, SCT_INP_IN0);
But how could the DOWN input be controlled by the lpc software instead? I.e. in the example I want the lpc824 firmware to manage the UPDOWN operation.
I have tried to set the pin as a PIO output and write to the port, but it does not seem to work.
|Chip_GPIO_SetDir(LPC_GPIO_PORT, 0, DOWN_IN_PIN), true);|
|Chip_GPIO_SetPinState(LPC_GPIO_PORT, 0, DOWN_IN_PIN), false);|
Any help is appreciated.