I'm trying to get the ADC to trigger from ADCSTART1_IN using timer2 match 0.
In the process I've noticed that the LPC43xx user guide (UM10503 rev 2.3) has errors.
CREG6 - Table 104, bit 4 = CTOUTCTRL
0 = Combine SCT and timer match outputs. SCTimer/PWM outputs are Red with timer outputs.
1 = SCTimer/PWM outputs only. SCTimer/PWM outputs are used without timer match outputs.
BTW the 'Red' should be 'ORed'.
GIMA 18.2 - To configure the GIMA inputs for the timers and SCT, set the CTOUTCTRL bit in CREG6 (Table 104). This bit controls whether the SCT outputs are ORed with the timer match outputs or whether the SCT outputs only are used.
Table 207  To configure the GIMA inputs for the timers and SCT, set the CTOUTCTRL bit in CREG6 (Section 11.4.9). This bit controls whether the SCT outputs are ORed with the timer match output or whether the SCT outputs only are considered.
SCT 30.2 The SCT outputs are ORed with various timer match outputs if bit CTOUTCTRL in CREG6 is zero (see Table 104; this is the default). Set the CTOUTCTRL bit to one to use the SCT outputs without interference from the timers.
So in two instances the manuals says SCT & timer outputs are combined when CTOUTCTRL = 0, and in two instances the manual says they are combined when CTOUTCTRL = 1
In any case I can't get the ADCSTART1_IN to work yet.