Changed sample time to be controled by CTC mode
added 7seg rules