Skip to content

Fix phase shift on loading pulse#242

Open
oskay wants to merge 6 commits into
masterfrom
feature/7-struct-assignment-stepclear
Open

Fix phase shift on loading pulse#242
oskay wants to merge 6 commits into
masterfrom
feature/7-struct-assignment-stepclear

Conversation

@oskay
Copy link
Copy Markdown
Contributor

@oskay oskay commented Mar 21, 2026

No description provided.

EmbeddedMan and others added 6 commits March 14, 2026 08:22
Replace ~80 lines of per-command-type field-by-field FIFO copy with a
single struct assignment: CurrentCommand = FIFOPtr[gFIFOOut];

C18 generates unrolled MOVFF POSTINC code for struct assignments (proven
on the enqueue side). This eliminates the per-field multiply-by-47
address recomputation. One multiply for the source address, then a
single block copy of all 47 bytes.
gFIFOCommand is no longer used after the field-by-field copy dispatch
was replaced with struct assignment. Frees one byte of precious near
(access bank) RAM.
Clear step pins unconditionally before the FIFO struct copy. This caps
the step pulse width at ~3-4us on command transition ticks for all
command types.
…ex files, created v3.1.7 EBF Windows updater
@EmbeddedMan EmbeddedMan self-requested a review March 24, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants