|TAMS / Java / Hades / applets: contents | previous | next|
adders and arithm...
LFSR and selftest
I/O and displays
CMOS circuits (sw...
byte- vs. wo...
8251 parity ...
8251 error d...
Mips R3000 cosimu...
Intel MCS4 (i4004)
image processing ...
[Sch04] RALU, Min...
|USART 8251 bits-per-word demonstration
This applet demonstrates RS-232 transmission with different
number of databits per transmitted character.
Usually, the USART 8251 chip is configured to use eight databits
per transfer, but it can also be used with seven, six, or just five
databits per word.
The original ASCII code uses seven data bits per character to encode lowercase and uppercase characters, digits, punctuation, and some control characters. Newer encodings like ISO 8859-1 require eight bits per character and include additional symbols like umlauts. Obviously, at least 26+26+10 different code words are required for the letters and digits alone, which means that at least seven bits per data word are required when punctuation is included. Therefore, custom encodings must be used when only six or five databits are selected per data word. One typical example is the five-bit encoding historically used for teletype machines, where a special control character shifted between letters and digits etc.
The demo sequence used in this applet reconfigures the 8251 to first use eight bits per word, then seven, then six, then five. The only way to do this is to write a command word with the internal-reset bit (D6) set to the 8251 chip, which resets the internal command state machine. Afterwards, a new mode selection followed by a new command instruction have to be written to the chip. The same data sequence of
0x55 0xaa 0x33 0x00
is used as an example in all four settings. The following screenshot shows example waveforms generated by the 8251 during the demo with eight and seven databits per word. The reconfiguration from eight to seven databits takes places while CnD is high in the screenshot.
After the demo sequence has completed, the simulation is paused and the waveforms are redrawn. Zoom into the waveforms to verify the behaviour of the 8251. You can now also click the "continue" button in the simulator control panel to continue the simulation and transmit additional characters or reset the chip configuration to further explore the behaviour of the 8251.
|Print version | Run this demo in the Hades editor (via Java WebStart)|
|Usage | FAQ | About | License | Feedback | Tutorial (PDF) | Referenzkarte (PDF, in German)|