Fix TMR0 timing (Fosc/4) and sync tx_emulator baud rate #27
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wait-to-fix
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
daru/PICsense!27
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/timer0-tx-baud-sync"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #24
Root cause: PIC12LF1840 Timer0 clock = Fosc/4, not Fosc (datasheet Section 20.1 / Figure 20-1). The Timer0 reload formula didn't account for this, causing a 4x timing error.
Impact: Firmware transmitted at 500 bps while rtl_433 and tx_emulator expected 2000 bps — none of the three components were actually aligned.
Changes: