This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
subdevices [2020/05/26 16:27] – [Counter] ursgraf | subdevices [2020/06/03 14:48] – [ADC] ursgraf | ||
---|---|---|---|
Line 21: | Line 21: | ||
|0x20|4|memory size|r|yes|total memory size for the device (in bytes) including all subdevices| | |0x20|4|memory size|r|yes|total memory size for the device (in bytes) including all subdevices| | ||
|0x24|28|description|r|yes|contains a description, | |0x24|28|description|r|yes|contains a description, | ||
- | Insert the description in hexadecimal notation, e.g. " | + | Insert the description in hexadecimal notation, e.g. " |
The status and configuration registers in the subheader are unused with this function. | The status and configuration registers in the subheader are unused with this function. | ||
===== ADC ===== | ===== ADC ===== | ||
- | This function is used to gather analog input data from an ADC. | + | This function is used to gather analog input data from an ADC. The ADC is connected through SPI. Make sure to set the base clock of this subdevice correctly, because the serial clock is derived from that clock. |
^Offset^Size [byte] ^Name^r/ | ^Offset^Size [byte] ^Name^r/ | ||
|0x20|4|resolution|r|yes|this is the number of resolvable digital steps| | |0x20|4|resolution|r|yes|this is the number of resolvable digital steps| |