Sequence Recording - TechTechTechnologies/Prometheus GitHub Wiki
Here's what need to happen to record a sequence:
Configuration page needs to be set. The configuration page contains 12 bytes of tuning information, 1 byte of mode information, and 4 bytes pointing to the start of the sequence.
Then the recorder waits until the taps change: Internal registers containing the last taps configuration for each LFSR bitwise AND with current taps configuration. Compare to 0 for tap change signal lines.
When a taps change occurs:
- latch in relevant counter
- latch in relevant taps
- set current command in memory buffer
- increment memory pointer
- reset counters
if the memory pointer is not at 255, then go back to waiting. otherwise, the page is full:
- switch buffers
- signal write ready
- reset memory pointer to 4
- go back to waiting
if the recording line turns off, then set end command, switch buffers, and signal for write, then go back into idle state
The first four bytes of each page gives the address of the next page. If those are 0, then the page is empty.