74193
The 74193 is a 74-series synchronous 4-bit binary up/down counter.
74193 Pinout
.--__--.
D1 ->|01 16|-- VCC
Q1 <-|02 15|<- D0
Q0 <-|03 14|<- +Clear
Down ->|04 13|-> Borrow Out
Up ->|05 12|-> Carry Out
Q2 <-|06 11|<- /Load
Q3 <-|07 10|<- D2
GND --|08 09|<- D3
'------'
- VCC, GND: power supply
- D0-D3: data inputs
- Q0-Q3: counter outputs
- /Load: copy the current content of D to Q when this pin is low
- Up, Down: count up or down the Q at the rising edge of these pins
- +Clear: set all Q contents to 0 when this pin is high
- Carry Out, Borrow Out: normally high, becomes low when the counter was at 15 (Carry Out) or 0 (Borrow Out) and the falling edge of Up/Down happens, stays low until the rising edge of Up/Down
Q0-Q3 (dec) 00000 1 2 1 0 15... 0 1 0 15 14
||||| | | | | ||||| | | | | |
D0-D3 (dec) xxxxx x x x x 15... x x x x x
||||| | | | | ||||| | | | | |
Up xxxxx__/^\_/^\___________xxxxx___/^^^\______/^^^\_________________
Down xxxxx__________/^\_/^\___xxxxx____________________/\_/^^^\______/^
Carry Out ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\______/^^^^^^^^^^^^^^^^^^^^^
Borrow Out ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\______/^
/Load xxxxx^^^^^^^^^^^^^^^^^^^^\___/^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+Clear ^^^^^\____________________________________________________________
_ = low
^ = high
/ = rising edge
\ = falling edge
x = doesn't matter
Source: [1]