I am trying to setup the HET of a TMS570LS20216-EP very similar to the sin generation example (spna217).
But I also want to trigger a set of ADC readings and an external pin at a particular point on the sin output pattern.
e.g. If the sin table is 128 samples, at sample 125 I trigger the ADC to take three samples and once complete or at another fixed point (lets say sample 127) I want to toggle an external pin high for a single sample period (or shorter).
I'd want to interrupt when the ADC is complete, so could generate the external pin change in the interrupt routine to guarantee the ADC had completed.
How would I program the HET to generate these two synchronisation signals along with the sin output?
One way I'd thought of achieving this is to have three tables of samples, 1-Sin, 2-ADC trigger, 3-Output
But having two 128 word tables with just two words non-zero seems wasteful.
Is there a better way of doing this using HET instructions?