TAMS / Java / Hades / applets: contents | previous | next | ||||
Hades Applets contents visual index introduction std_logic_1164 gatelevel circuits delay models flipflops adders and arithm... counters LFSR and selftest memories programmable logic state-machine editor counter counter with... counter up-down counter up-d... man-wolf-goa... branch-predi... stack contro... traffic ligh... RS232 transm... misc. demos I/O and displays DCF-77 clock relays (switch-le... CMOS circuits (sw... RTLIB logic RTLIB registers Prima processor D*CORE MicroJava Pic16 cosimulation Mips R3000 cosimu... Intel MCS4 (i4004) image processing ... [Sch04] Codeumsetzer [Sch04] Addierer [Sch04] Flipflops [Sch04] Schaltwerke [Sch04] RALU, Min... [Fer05] State-Mac... [Fer05] PIC16F84/... [Fer05] Miscellan... [Fer05] Femtojava FreeTTS | RS232 transmitter fsm Circuit Description Another simple demonstration of the JavaFSM state machine editor. The applet shows one possible realization of an transmitter for the RS232 serial protocol (8N1) using a parallel data register and an multiplexer. (An alternative implementation is to use a shift-register instead of the parallel register and multiplexer.) First, select the data word to be transmitted using the switches D7 .. D0. Next, set the send switch to its on-state and wait for the next rising clock edge to latch the data input into the data buffer registers, and to start the transmission sequence. The state machine enters its start state, followed by a transition through the states d0,d1,d2,d3,d4,d5,d6,d7, and then either the stop or wait states on the next clock cycles. The state machine outputs control the multiplexer to output the corresponding states required by the RS232 protocol, namely the start bit (0), the eight data bits (D0 .. D7), and one stop bit (1). Depending on whether or not the send switch was toggled back to the off-state, the machine will wait in either its wait or idle states. For the next transmission, select the send-switch again and wait for the next rising edge of the clock. What changes are required to implement the 8O1 protocol with one start bit, eight data bits, one even-parity bit calculated from the eight data bits, and 2 stop bits? | |||
Print version | Run this demo in the Hades editor (via Java WebStart) | ||||
Usage | FAQ | About | License | Feedback | Tutorial (PDF) | Referenzkarte (PDF, in German) | ||||
Impressum | http://tams.informatik.uni-hamburg.de/applets/hades/webdemos/45-misc/10-fsm-editor/rs232.html |