fix: switch ADC reference from FVR to VDD #20
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wait-to-fix
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
daru/PICsense!20
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/adc_reference_vdd"
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 #3
Switched ADC reference from FVR (2.048V) to VDD (battery). FVR is now read as an ADC channel to determine VDD, freeing RA1 for other use.
Changes:
Vt = 2.048 * (1023 - temp_raw) / (4 * fvr_raw),Temp = (0.659 - Vt) / 0.00132 - 40time referenced this pull request2026-07-27 02:18:51 +00:00
time referenced this pull request2026-07-27 02:18:56 +00:00
time referenced this pull request2026-07-27 02:19:02 +00:00
time referenced this pull request2026-07-27 02:19:08 +00:00
time referenced this pull request2026-07-27 02:19:14 +00:00
time referenced this pull request2026-07-27 02:19:20 +00:00
time referenced this pull request2026-07-27 02:19:26 +00:00