# Designing a special counter using logic gates

I need to design a counter circuit that counts in 5-bit binary form between the numbers (0-31) by 5 using only logic gates without any programming. when the counter reaches 30 it must go as 3..8..13.. as next loop and so on..I'm thinking of using D-type FF's and full adders for this purpose. But after a lot of searching I could not apply it yet! I have a simulation file that does that circuit job successfully and exactly as I want..but I cannot understand how does the circuit work? Could you please explain to me how this circuit is working? and what are the roles of plugged full adders? how it can be possible to design another circuit doing the same count pattern? https://drive.google.com/open?id=0B7bJDDDSwTBCeEpLb0RZOTkxaW8

The simulation was done by Logicly.

Clarification: the counting will be like: 0..5..10..15..20..25..30..3..8..13..18..23..28..1..6..11..16..21..26..31..4..9..14..19..24..29..2..7..12..17..22..27..0.. in a 5-bit binary form ( 5 LEDs can be used as an output representation)

Here are screenshots for the simulation: full adders structures :

• "it must go as 3..8..13.. as next loop and so on"?????????? Probably nobody is going to download your file. – Andy aka Jul 27 '17 at 10:00
• I wrote additional explanation. – utdlegend Jul 27 '17 at 10:05
• I think it can be interesting for some people to see such a circuit..I hope someone download and see it! – utdlegend Jul 27 '17 at 11:12
• The problem with your .logicly file is that it requires one to also download and install a commercial program in order to view it. Please at least show us a screenshot here. – Dave Tweed Jul 27 '17 at 11:20
• Screenshots are uploaded! – utdlegend Jul 27 '17 at 11:34