http://www.facebook.com/yudha.pradipta.1

Friday, 15 June 2012

0
LCD Program Using Bascom-8051


     In this program the data mode used is mode 4 data bits, so it is used only DB4 - DB7. If the microcontroller is only used to write characters to the LCD then the pin R / W can be connected to the ground. Potentiometer used to adjust the contrast of the displayed character.

'==============================================
'Program LCD_1.bas
'Program untuk menampilkan pesan teks sederhana pada LCD
'==============================================
'Inisialisasi LCD
Config Lcd = 16 * 2
Config Lcdpin = Pin , Db4 = P2.4 , Db5 = P2.5 , Db6 = P2.6,
Config Lcdpin = Pin , Db7 = P2.7 , E = P2.2 , Rs = P2.0
P2.1 = 0                      'R/W=0
Initlcd

Cursor Off                         
Cls                                     
Upperline                           
Lcd "Sistem Komputer Gunadarma"
Lowerline                 
Lcd "Kalimalang"

End

0 komentar:

Post a Comment

Silahkan berkomentar, namun tetap jaga kesopanan dengan tidak melakukan komentar spam, dan tuliskan nama jelas.

 
BASIC IT | © 2010 by DheTemplate.com | Supported by Promotions And Coupons Shopping & WordPress Theme 2 Blog