* SELAMAT DATANG DI SEKAWAN SERVIS ELECTRONIC * SERVIS:TV,COMPUTER,DVC,Ampli fier dll. * Spesialis Kulkas,AC Rumah, AC mobil dan Mesin Cuci. * Alamat: Taraman Sidoharjo Sragen *

SEK4W4N SERVIS ELECTRONIC

Attaching an LCD Display

On 0 komentar

lcd display Attaching an LCD Display

A LCD display can be connected with two methods.
·By wiring the LCD-pins to the processor port pins. This is the pin mode. The advantage is that you can choose the pins and that they don’t have to be on the same port. This can make your PCB design simple. The disadvantage is that more code is needed.
·By attaching the LCD-data pins to the data bus. This is convenient when you have an external RAM chip and will add only a little extra code.
The LCD-display can be connected in PIN mode as follows:
LCD DISPLAYPORTPIN
DB7PORTB.714
DB6PORTB.613
DB5PORTB.512
DB4PORTB.411
EPORTB.36
RSPORTB.24
RWGround5
VssGround1
Vdd+5 Volt2
Vo0-5 Volt3
Sponsored Link :
.
This leaves PORTB.1 and PORTB.0 and PORTD for other purposes.
You can change these pin settings from the Options LCD menu.
BASCOM supports many statements to control the LCD-display.
For those who want to have more control of the example below shows how to use the internal BASCOM routines.
$ASM
Ldi _temp1, 5         ‘load register R24 with value
Rcall _Lcd_control   ‘it is a control value to control the display
Ldi _temp1,65        ’load register with new value (letter A)
Rcall _Write_lcd      ’write it to the LCD-display
$END ASM
Note that _lcd_control and _write_lcd are assembler subroutines which can be called from BASCOM.
See the manufacturer’s details from your LCD display for the correct pin assignment.
from :BASCOM (MCS Electronic)

0 komentar: