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 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 PIC16C84 dem... fast PIC16C8... interrupt-dr... on-chip timer EEPROM access EEPROM access RS-232 trans... software RS-232 software RS-... chronograph MIDI footswi... MIDI footswi... MIDI footswi... MIDI organ p... MIDI organ p... ultrasonic r... ultrasonic r... "Phrasendres... "mastermind"... 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 | software RS-232 (multiprocessor) Circuit Description Just for fun, this applet shows a multiprocessor system built from three PIC16C84 microcontrollers. Each controller runs the echo.asm program for software RS-232 half-duplex data transmission (at 300 baud and 8N1) that was demonstrated in the previous applet. Because the B7 output ports are chained to the A4 input ports, each controller will echo the characters sent to it by the previous controller. To use the demo, just type characters into the input terminal GUI window and wait for the data to ripple through the chain of microcontrollers before the data appears in the output terminal window. Again, if the window does not appear automatically, or are stacked one upon another, click on the terminal symbol to open (or close) the terminal GUI window(s) and move those windows to suitable positions on your computer screen. Because the terminal is not configured for local echo, the characters are just encoded in RS-232 format and send on the TX line of the terminal. The program, based on Arizona Microchip application note 555, uses half-duplex communication. That means that the microcontroller cannot listen for incoming characters on port A4 while it is busy sending on port B7. Therefore, characters can be lost or garbled when transmitted too fast. Just insert a short pause after typing a character into the input terminal, to allow for the processing time required by the microcontroller. In this demo, the wait loops for the RS-232 transmission are hard-coded into the microcontroller program. You need to edit and re-assemble the program if you want to play with other baud-rates. | |||
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/72-pic/30-rs232echo/multiecho.html |