
The Binary-Tree-Based Dual-Mode Morse Communication Engine is a compact communication system that supports two selectable operating modes:
The operating mode is selected through the control inputs.
The design consists of a binary-tree-based Morse encoder, pulse-duration transmitter, pulse-duration decoder, and communication interface. During transmission, 7-bit ASCII data is converted into Morse code using the binary-tree structure. The Morse symbols are then transmitted as pulses with different durations for dots and dashes.
During reception, the pulse duration is measured to determine whether the received symbol is a dot or dash. The binary-tree decoder then converts the Morse sequence back into the corresponding ASCII character.
The design provides:
The design is controlled using the Tiny Tapeout input and output pins.
| Pin | Function |
|---|---|
| ui[0] | START / DATA_VALID |
| ui[1] | TX/RX selection |
| ui[2] | MODE selection |
| ui[3] | ENABLE |
| uio[7:1] | 7-bit ASCII data |
| uio[0] | Bidirectional Morse channel |
| clk | Clock |
| rst_n | Active-low reset |
| Pin | Function |
|---|---|
| uo[0] | VALID indicator |
| uo[1] | ERROR indicator |
| uio[7:1] | 7-bit ASCII data |
| uio[0] | Bidirectional Morse channel |
Set ui[2] to:
| ui[2] | Mode |
|---|---|
| 0 | HUMAN |
| 1 | MACHINE |
Set ui[1] to:
| ui[1] | Operation |
|---|---|
| 0 | RX |
| 1 | TX |
To transmit data:
To receive data:
For normal operation, the received ASCII data should match the originally transmitted data.
In Human Mode, Morse pulses use standard human-readable timing with timing tolerance for variations in received signals.
In Machine Mode, shorter pulse durations are used for high-speed machine-to-machine communication.
No external hardware is required.
The project can be tested using the Tiny Tapeout digital interface, clock, and reset signals.
For two-chip communication, the uio[0] Morse channel of one chip can be connected to the uio[0] Morse channel of another chip. One chip operates as the transmitter and the other as the receiver.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | START / DATA_VALID | VALID | MORSE: TX output / RX input |
| 1 | TX/RX: 1=TX, 0=RX | ERROR | ASCII bit 0 |
| 2 | MODE: 0=Human, 1=Machine | ASCII bit 1 | |
| 3 | ENABLE | ASCII bit 2 | |
| 4 | ASCII bit 3 | ||
| 5 | ASCII bit 4 | ||
| 6 | ASCII bit 5 | ||
| 7 | ASCII bit 6 |