An implantable medical device (IMD) comprising a controller adapted to execute instructions included in firmware, a programmable neural therapy source adapted to provide programmable electrical neural stimulation therapy to at least one neural stimulation electrode, and a state machine included in hardware...http://www.google.se/patents/US8024034?utm_source=gb-gplus-sharePatent US8024034 - Programmable neural therapies