Thank you for supporting me. But I just have one problem.Since you will be using FFs, you will need to figure out how much FFs you need. Here is a formula you can use.
NumberOfFlipFlops = log(MaxCount) / log(2)
Where MaxCount is the highest number you want to count to.
For example, if you want to count to a maximum of 16, you need 4 Flip Flops.
NumberOfFlipFlops = log(16) / log(2)
Answer is 4 flip flops.
On the other hand, if you want to know how much a group of filps will count to, you can use this formula.
MaxCount = 2^NumberOfFlipFlops
This formula works because exponent is the opposite (complement) of log.
For example, if you have 4 FFs,
2^4 = 16
In your case, the need to count to 362.
log(362) / log(2) = 8.499845887
Since you must use a whole FF, you need to round that number off to 9 flip flops, since 8 flips will only count to 256. (use the formula) 9 will however cout to 512 (way more than you need, but you have no choice here)
Next you need to determine what type of FFs you will use (JK, D, etc.)
D FFs are easier to use, while JK are more universal and give more versatility.
Determine if Counter will be Synchronous or Asynchronous.
I am gonna assume you know how to connect them.
You need away to set the FFs to the top number (362) and then put the FFs in a mode to count down. With further detection or a switch, instruct the FFs to count up.
While this circuit is not hard to do, it is a rather large circuit. Especially if you use JKs. Logic gates are also needed for detection. It would be a lot easier if you use counter ICs