Counters

Required
The pulse port, adds one step when activated by pulse

Optional
The reset port set the counter value to zero

The set ports writes the current input to the counter

U/D sets counter to count up or down

The binary counter
counts one step per pulse in binary

00

01

10

11

The decimal counter
counts one step per pulse like this:

1000

0100

0010

0001