3 ms·
I hope this is good at extracting register maps from datasheets. That would save a lot of tedious driver work.
by berti 8y ago
I hope this is good at extracting register maps from datasheets. That would save a lot of tedious driver work.
- vortex_ape 8y agoHi berti! I wrote the library and the blog post. Can you point me to some PDFs which have these register maps?
- berti 8y agoTry these: Page 233 http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-8351-MCU_Wireless-AT86RF233_Datasheet.pdf http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-8351-M... Page 45 https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/bst-bmi160-ds000-07.pdf#page45 https://ae-bst.resource.bosch.com/media/_tech/media/datashee... Is the library able to handle cells that span multiple columns?
- vortex_ape 8y agoI assumed that you're talking about page 33 in the first PDF, since it has only 225 pages. I extracted Figure 6-23 from it and the table on page 45 in the second PDF. Here's a gist: https://gist.github.com/vinayak-mehta/cf30a5560f1b8ab4c0b25e34e5c6121b https://gist.github.com/vinayak-mehta/cf30a5560f1b8ab4c0b25e... Yes, Camelot takes care of cells spanning multiple columns! You can check out the Advanced Usage section for explanation on the keyword arguments I used in the gist! https://camelot-py.readthedocs.io/en/master/user/advanced.html https://camelot-py.readthedocs.io/en/master/user/advanced.ht...
- vortex_ape 8y agoNote: I had to decrypt the second PDF using qpdf since the library I'm using to split a PDF into pages (PyPDF2) doesn't support the encryption type of that PDF. Did this: qpdf --decrypt input.pdf output.pdf
- berti 8y agoSorry! Page 203 in the first PDF has a full table if registers, and that bits in them. Thanks very much for the library, and even more for taking the time to create that notebook. The captured data looks excellent. I'll hax some code to translate this data to a header file suitable for writing a driver.
- suba_selvandran 8y agoHi Berti, We are building a tool that can extract register map from a data sheet. You may take a look at the beta version of the tool at http://exportrm.soliton.ai/ http://exportrm.soliton.ai/. The tool supports register map table formats similar to ones found on page 14 in https://www.nxp.com/docs/en/data-sheet/PCA9685.pdf https://www.nxp.com/docs/en/data-sheet/PCA9685.pdf datasheet. The table format that you have mentioned in the example is not supported at this time. We would be adding it soon. If you have any questions or would like to share any feedback, feel free to reach out to us at the email id provided on tool web page.