Hacker News new | ask | show | jobs
Parsing semiconductor datasheets into structured register maps for under $0.25 (regforge.dev)
8 points by coleman2247 98 days ago
3 comments

This would be a good idea of it was reliable however browsing the parsed data for the BMP280 [1] (which in familiar with because I’ve written a driver for this) it looks like it misses a bunch of registers [2]

[1] https://regforge.dev/bmp280_xai_grok-4-1-fast-non-reasoning_... [2] https://www.bosch-sensortec.com/media/boschsensortec/downloa...

I looked over this datasheet. It appears what is in the datasheet was parsed. Looking over section 4.3 which goes over the registers, all of them seem to be captured. What missing registers were you referring to ?
It shows the 0xD0, 0xD0, 0xF3, 0xF4, 0xF5 registers but misses 0xF7-F9 (pressure) and 0xFA-FC (temp) - which are the actual measurement registers - plus all the trimming parameters (0x88-xA1) which you need to calibrate the readings.

Temp (4.3.7) & Press (4.3.6) literally have their own sections in the datasheet.

Slightly strangely I did see that the .h export does contain temp / press registers (but not the trimming params) but they dont show up in the interactive display:

https://passtheaardvark-img.pgs.sh/screen.png

They appear when "all registers" is selected in the drop down menu. Should probably be the default?
It would be nice if vendors just provided a header file...
If DigiKey or Octopart had their act together they'd create a subscription service for $1/month or something like that and offer compiled maps for every part they carry.
if the logic houses had their act together they would publish this in a standard metadata format to begin with, and derive documentation from that.