Principles of Operation
95
• One-shot
• Repetitive one-shot
Note:
The active polarity for each counter/timer operation mode is software-selectable.
The following subsections describe these modes in more detail.
Event Counting
Use event counting mode if you want to count the number of rising edges that occur on the
counter’s clock input when the counter’s gate signal is active (low-level or high-level). Refer
to
for information about specifying the active gate type.
You can count a maximum of 4,294,967,296 events before the counter rolls over to 0 and starts
counting again.
Using software, specify the counter/timer mode as event counting (count), the C/T clock
source as external, and the active gate type as low-level or high-level.
Make sure that the signals are wired appropriately. Refer to
for an example of
connecting an event counting application.
Up/Down Counting
Use up/down counting mode if you want to increment or decrement the number of rising
edges that occur on the counter’s clock input, depending on the level of the counter’s gate
signal.
If the gate signal is high, the C/T increments; if the gate signal is low, the C/T decrements.
Using software, specify the counter/timer mode as up/down counting (up/down), and the
C/T clock source as external. Note that you do not specify the gate type in software.
Make sure that the signals are wired appropriately. Refer to
for an example of
connecting an up/down counting application.
Note:
Initialize the counter/timer so that the C/T never increments above FFFFFFFFh or
decrements below 0.
Summary of Contents for Data Translation DT9857
Page 1: ...DT9857 and DT9857E UM 25656 M User s Manual Title Page ...
Page 4: ......
Page 10: ...Contents 10 ...
Page 14: ...About this Manual 14 ...
Page 25: ...Part 1 Getting Started ...
Page 26: ......
Page 40: ...Chapter 2 40 ...
Page 64: ...Chapter 4 64 ...
Page 71: ...Part 2 Using Your Module ...
Page 72: ......
Page 126: ...Chapter 6 126 ...
Page 132: ...Chapter 7 132 ...
Page 140: ...Chapter 8 140 ...
Page 180: ...Appendix B 180 ...
Page 181: ...181 C Register Level Programming Writing to the EEPROM Register 182 ...
Page 184: ...Appendix C 184 ...
Page 192: ...Index ...