Arduino IDE program to control 8253 Programmable interval timer

OOoooh Man! Thank you so much! this is amazing! and soo helpful. and saves me from posting my embarrassing code attempt haha. Im bread boarding it right now to see if i can get it work. I actually wont be using a shift register so i will try to figure out how I can modify the code you provided. Seriously thank you a million times!