Arduino IDE program to control 8253 Programmable interval timer

You are also going to need a couple of shift registers if you can't afford to use 8 pins for the data bits since the device uses an 8 bit "bus"