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/06/03 14:59] – [PWM] ursgraf | subdevices [2020/06/03 14:59] – [Watchdog] ursgraf | ||
---|---|---|---|
Line 86: | Line 86: | ||
===== PPWA ===== | ===== PPWA ===== | ||
- | This function realizes period and pulse width measurements. Make sure to set the base clock of this subdevice correctly, because the time measurement is derived from that clock. | + | This function realizes period and pulse width measurements. Make sure to set the base clock of this subdevice correctly |
^Offset^Size [byte] ^Name^r/ | ^Offset^Size [byte] ^Name^r/ | ||
|0x20|4|base_clk|r|no|base clock in Hz| | |0x20|4|base_clk|r|no|base clock in Hz| | ||
Line 98: | Line 98: | ||
===== Watchdog ===== | ===== Watchdog ===== | ||
- | The watchdog is a decrementing counter which will fire as soon as it reaches 0. The counter decrements with every clock cycle. Is has to be set periodically to a desired value to prevent the watchdog of running out. This preset value determines the watchout time. Make sure to set the base clock of this subdevice correctly, because the watchdog timer is derived from that clock. | + | The watchdog is a decrementing counter which will fire as soon as it reaches 0. The counter decrements with every clock cycle. Is has to be set periodically to a desired value to prevent the watchdog of running out. This preset value determines the watchout time. Make sure to set the base clock of this subdevice correctly |
^Offset^Size [byte] ^Name^r/ | ^Offset^Size [byte] ^Name^r/ |