
I have used a 4bit synchronous counter to used And and Or gates to simulate "." and "-" of morsecode.
We can test it by connecting a 7 segment display and we can change inputs with a button(for J it's ".---" and for R it's ".-.").
button, 7 segment display, clock
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | OUT0 | ||
| 1 | OUT1 | ||
| 2 | |||
| 3 | |||
| 4 | |||
| 5 | |||
| 6 | |||
| 7 |