MikroElektronika PIC Microcontrollers PIC16 Specifiche Pagina 135

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 186
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 134
Chapter 6 - Samples
LCD's can get stuck, and program will then stay forever in a loop checking the BUSY bit. The other
way is to introduce a delay in the program. The delay has to be long enough for the LCD to finish
the operation in process. Instructions for writing to and reading from an LCD memory are shown
in the previous table.
At the beginning we mentioned that we needed 11 I/O lines to communicate with an LCD.
However, we can communicate with an LCD through a 4-bit data bus. Thus we can reduce the
total number of communication lines to seven. The wiring for connection via a 4-bit data bus is
shown in the diagram below. In this example we use an LCD display with 2x16 characters, labelled
LM16X212 by Japanese maker SHARP. The message 'character' is written in the first row: and two
special characters '~' and '}' are displayed. In the second row we have produced the word
'mikroElektronika'.
Connecting an LCD display to a microcontroller
File LCD.inc contains a group of macros for use when working with LCD displays.
http://www.mikroelektronika.co.yu/english/product/books/PICbook/6_10Poglavlje.htm (3 of 11) [4/2/2003 16:19:08]
Vedere la pagina 134
1 2 ... 130 131 132 133 134 135 136 137 138 139 140 ... 185 186

Commenti su questo manuale

Nessun commento