Functions of the board
PC104-PLUS1500
38
b) Downwards counter
Function downwards counter:
The counter starts with the counting value = relaod value and decrements with
each valid edge. At the result of count 0, the counter is loaded with the reload
value at the following valid edge. An interrupt can be generated with the
overflow.
Software clear:
Deletes counter (= 0)
Software trigger:
Sets counter (= reload value)
Example downwards counter
Reload value = 9
Initialisation on rising edge
Interrupt is released
At the current result of count = 0, with the following valid edge the reload value is
reloaded and the interrupt enabled.
Fig. 8-6: Downwards counter