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 Mips R3000 cosimu... Intel MCS4 (i4004) image processing ... [Sch04] Codeumsetzer [Sch04] Addierer [Sch04] Flipflops [Sch04] Schaltwerke [Sch04] RALU, Min... [Fer05] State-Mac... [Fer05] PIC16F84/... PIC LCD cont... PIC LCD chro... PIC calculator PIC mastermi... PIC16F84 ele... PIC RX/TX PIC CCP PIC CCP PIC Tetris [Fer05] Miscellan... [Fer05] Femtojava FreeTTS | PIC16F84 and LCD with user-defined characters
Circuit Description
This applet demonstrates a
PIC16-based controller for a LC Display
and shows how to create custom symbols
via the user-writeable character-generator functions.
The circuit consists of the microcontroller
and a standard ASCII-mode liquid-crystal display..
Open the PIC user-interface to watch the program execution, setting breakpoints, etc. (I recommend to uncheck the 'update display' checkbox and to click the data and program memories to enforce repainting. This saves a lot of CPU cycles and makes the animation go smoothly). The LC display show a simple animantion based on two new chacracter. The C source code has been written by Ricardo Ferreira to teach embedded systme during the Computer Organization Undergraduate Course, Universidade Federal de Viçosa, Brazil. The following C code shows how you could create new characters via the built-in user-writeable character-generator of the LCD. You can also download an archive file (.tar.gz) with the source code and include files.
// usr/hitech/bin/picl -16f84 -C -Zg gerandocaracter2.c lcd.c delay.c // usr/hitech/bin/picl -16f84 -Ogerandocaracter2.hex \ // gerandocaracter2.obj lcd.obj delay.obj #include | |||
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/95-dpi/pic16f84-lcd-character/gerandocaracter2.html |