Skip to content

samples: drivers: adc: update temperature LUT and reference ADC fixes - #875

Open
JuhoEskeli-AlifSemi wants to merge 1 commit into
alifsemi:mainfrom
JuhoEskeli-AlifSemi:adc_ldo_lut_changes
Open

samples: drivers: adc: update temperature LUT and reference ADC fixes#875
JuhoEskeli-AlifSemi wants to merge 1 commit into
alifsemi:mainfrom
JuhoEskeli-AlifSemi:adc_ldo_lut_changes

Conversation

@JuhoEskeli-AlifSemi

Copy link
Copy Markdown
Contributor

Test the internal temperature sensor readings against the recalibrated ADC and the accompanying driver/HAL changes.

  • Replace the temperature lookup table with the recalibrated data covering ADC codes 885..1341 (-39.9 C .. 85.0 C).
  • Store the table as int16 tenths of a degree indexed directly by (adc_value - ADC_TEMP_MIN), replacing the float 2D array and linear search with an O(1) lookup and a smaller footprint.
  • Return -255.0 instead of -1 for out-of-range ADC codes and update the sample to check for the new sentinel.

Test the internal temperature sensor readings against the recalibrated
ADC and the accompanying driver/HAL changes.

- Replace the temperature lookup table with the recalibrated data
  covering ADC codes 885..1341 (-39.9 C .. 85.0 C).
- Store the table as int16 tenths of a degree indexed directly by
  (adc_value - ADC_TEMP_MIN), replacing the float 2D array and linear
  search with an O(1) lookup and a smaller footprint.
- Return -255.0 instead of -1 for out-of-range ADC codes and update the
  sample to check for the new sentinel.

Signed-off-by: Juho Eskeli <juho.eskeli@alifsemi.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge Work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant