Hi, I use the lpc54628 and have a problem whit the SCTimer (INSYNC).
Table 334. UM10912 Rev. 2.4 11 November 2019
I use 5 Inputs and all 10 events rise/fall edge. On inputs 0 – 3 whit INSYNC Bit 0 - 3 = 1 everything works like it should. But Input 4 doesn’t work properly. Too use it properly I must set the corresponding INSYNC Bit4 (13 Bit in SCT CONFIG Register). But the UM says these bits are reserved, the IDE shows that only Config Register bits 12 - 9 are for INSYNC and the SDK code also sets only 4 bits.
Se here:


LPC54628.h the Mask for the INSYSNC.
#define SCT_CONFIG_INSYNC_MASK (0x1E00U)
#define SCT_CONFIG_INSYNC_SHIFT (9U)
And also, the function SCTIMER_GetDefaultConfig() set only 4 bit INSYNC.
void SCTIMER_GetDefaultConfig(sctimer_config_t *config)
{
…
/* Default value is 0xFU, it can be clear as 0 when speical conditions met.
* Condition can be clear as 0: (for all Clock Modes):
* (1) The corresponding input is already synchronous to the SCTimer/PWM clock.
* (2) The SCTimer/PWM clock frequency does not exceed 100 MHz.
* Note: The SCTimer/PWM clock is the bus/system clock for CKMODE 0-2 or asynchronous input
* clock for CKMODE3.
* Another condition can be clear as 0: (for CKMODE2 only)
* (1) The corresponding input is synchronous to the designated CKMODE2 input clock.
* (2) The CKMODE2 input clock frequency is less than one-third the frequency of the bus/system clock.
* Default value set as 0U, input0~input7 are set as bypasses. */
config->inputsync = 0xFU;
}
Course when I set the 4 bit in INSYNC by debugger, apparently everything works like it should.
Is there an error in the documentation and SDK, or is there a something wrong in the Config Register bits 16 - 13 INSYNC (Bits 7-4) and we should not use them?