AnsweredAssumed Answered

How to control an input signal to SCT from the firmware?

Question asked by henning larsen on Jul 6, 2016
Latest reply on Jul 7, 2016 by henning larsen

Using the SCT such as described in the Blinky example here: 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_SWM_MovablePinAssign(SWM_SCT_IN0_I, DOWN_IN_PIN);


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.