You can make a .5 hertz pulse using a timer with interrupts. Here is an example. http://darreltaylor.com/DT_INTS-14/blinky.html