State machine controls reset, accepting/counting inserted coins, evaluating-- selection cost, vending the product (light led) and resetting for another vend-- An independant process watches for slider switch transitions and tallys coins-- My seg muxer was reused to display on the seven-seg display and a function was-- included to convert hex into bcd for display