How to Create a State Machine using UDBs with PSoC 5LP