This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
subdevices [2018/01/30 11:28] – [DAC] sfink | subdevices [2020/05/26 16:27] – [Counter] 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. " | ||
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. | ||
Line 32: | Line 33: | ||
The status register in the subheader is unused with this function. In the configuration register setting the bit 0 will reset the subdevice. | The status register in the subheader is unused with this function. In the configuration register setting the bit 0 will reset the subdevice. | ||
==== Subtypes ==== | ==== Subtypes ==== | ||
- | Currently there are two subtypes of this subdevice. The subtype information can be found in the '' | + | Currently there are three subtypes of this subdevice. The subtype information can be found in the '' |
^Subtype ID^Description^Example^ | ^Subtype ID^Description^Example^ | ||
|0x1|Simple ADC with continuous sampling|ADC128S102| | |0x1|Simple ADC with continuous sampling|ADC128S102| | ||
|0x2|Advanced model with integrated filter and sampling mode selection|AD7606| | |0x2|Advanced model with integrated filter and sampling mode selection|AD7606| | ||
+ | |0x3|Simple ADC, low power|AD7476| | ||
===== DAC ===== | ===== DAC ===== | ||
Line 64: | Line 66: | ||
===== Counter ===== | ===== Counter ===== | ||
- | All modules which count something can implement this interface. An example for this could be a FQD (fast quadrature decoder). It counts the number of edges of a signal. | + | All modules which count something can implement this interface. An example for this could be a FQD (fast quadrature decoder). It counts the number of edges of a signal. The counter module implements a 16 bit counter, hence, reading the counter value will return only 2 bytes. |
^Offset^Size [byte] ^Name^r/ | ^Offset^Size [byte] ^Name^r/ | ||
|0x20|4|count_0|r|no|counter channel 0| | |0x20|4|count_0|r|no|counter channel 0| |