Severson-Group / AMDC-Firmware

Embedded system code (C and Verilog) which runs the AMDC Hardware
http://docs.amdc.dev/firmware
BSD 3-Clause "New" or "Revised" License
30 stars 5 forks source link

Extend encoder to support sampling “trigger” + “done” output #331

Closed annikaolson closed 8 months ago

annikaolson commented 9 months ago

This is a sub-issue of #323.

The goal here is to modify the encoder to support a triggering of the sensor, have it perform the acquisition and sampling, then assert a done signal once completed.

The encoder does not inherently support this interface.

The existing "trigger" is simply based on an active signal from the pwm (either pwm_carrier_low or pwm_carrier _high is high). When this occurs, the instantaneous updates are copied into a synced register. Now, this should happen as per the new "trigger" signal.

Once this is done, output a "done" signal.

The done signal will be sent to the soon-to-be implemented timing manager IP core, which also sends over the trigger signal.

Place any steps here after completion of #330.