The 100336 operates as either a modulo-16 up/down counter or as a 4-bit bidirectional shift register. Three Select (S
n) inputs determine the mode of operation, as shown in the Function Select table. Two Count Enable (CEP#, CET#) inputs are provided for ease of cascading in multistage counters. One Count Enable (CET#) input also doubles as a Serial Data (D
0) input for shift-up operation. For shift-down operation, D
3 is the Serial Data input. In counting operations the Terminal Count (TC#) output goes LOW when the counter reaches 15 in the count/up mode or 0 (zero) in the count/down mode. In the shift modes, the TC# output repeats the Q
3 output. The dual nature of this TC#/Q
3 output and the D
0/CET# input means that one interconnection from one stage to the next higher stage serves as the link for multistage counting or shift-up operation. The individual Preset (P
n) inputs are used to enter data in parallel or to preset the counter in programmable counter applications. A HIGH signal on the Master Reset (MR) input overrides all other inputs and asynchronously clears the flip-flops. In addition, a synchronous clear is provided, as well as a complement function which synchronously inverts the contents of the flip-flops. All inputs have 50 kohm pull-down resistors.