http://www.futureelectronics.com/en/Search.aspx?dsNav=Ntk:PartNumberSearch%7cPSoC+5LP%7c1%7c,Ny:True,Nea:True . This videos shows the implementation of a three state machine, representing a traffic light controller (red, yellow and green). This is done in hardware with no CPU intervention. The project creates a state machine UDB using PSoC Creator and the UDB editor The demo is part of the Digital Workshop available from Cypress. https://youtu.be/IcXbJC4elcQ