Counting with DIR and CLK
Next I looked at changes to the state of CLK or DIR while holding one of the
inputs static. |
Test 1 - Change in CLK with DIR ='0' |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
With the LETA counting can occur at the rising and falling edges of both CLK and DIR. As mentioned before when the input RESOLN ='0' then counts occur only at the change in state of DIR. This demonstrated something interesting... the state of DIR and CLK before a change directly influenced the action taken at the new state. In other words... it's a State Machine !!! |
Test 2 - Change in CLK with DIR ='1'
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
These tests were carried out with RESOLN =
1
These correspond to the start of a count-up cycle and the end of a count down cycle. |
Test 3 - Change in DIR with CLK ='0'
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Test 4 - Change in DIR with CLK ='1'
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Putting it together |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Putting it all together into a single diagram of the normal waveform for DIR and CLK during a count up. You get a series
of four possible states for the normal two phases of the CLK & DIR. Looking at the diagram to the right Marker 1 mirrors marker 1 on Test 1, Marker 2 mirrors marker 1 on Test 4, Marker 3 mirrors marker 3 on Test 2, Marker 4 mirrors marker 3 on Test 3, In normal operation only 1 input ever changes at a time, so you won't see '00' going to '11', or '11' going to '00'. |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Counting up, with CLK leading DIR
* no change if resolution = 0 |
Counting down works the opposite way, read the diagram right to left
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
On to Page 4 - Test Input & Summary |