Tuesday 23 August 2011

Tutorial LCD 2x16 dengan LPC2138

8 comments
x16
Sebenarnya sangat mudah menggunakan lcd 2x16 dengan ARM7 (LPC2138). Yang susah tuh bikin librarynya, kalo library sudah jadi dan sudah ada ya tinggal disesuain saja dengan compiler dan pin-pin pada mikrokontrol yang bersangkutan.

Sebelumnya saya sudah mencoba memodifikasi libray - library LCD 2x16 yang biasa saya pakai untuk memprogram AVR dengan AVRStudio, tetapi karena library tersebut saya comot dari internet alhasil ga ngerti langkah - langkah kerjanya. Akhirnya belajar dari awal tentang LCD 2x16, bagaimana cara menyalakan.. ada pin RS, RW, EN buat apa.. setelah bisa bikin library sendiri, memodifikasi untuk compiler dan mikrokontrol (LPC2138) yang lain bukanlah hal yang sulit..

Berikut program utamanya :
pass: arm-ku_lcd2
=====================================================================

#include <lpc213x.h>
#include "lcd.h"

unsigned char a;
void tunda(int z)
{
int x;
while (z--)
for (x=0;x<100000;x++);
}

int main(void)
{
init_lcd();

while(1)
{
lcd_puts("LCD 2x16");tunda(10);lcd_clr();
lcd_puts("TUTORIAL LCD");
lcd_gotoxy(1,0);lcd_puts("DENGAN LPC2138");tunda(10);lcd_clr();
lcd_puts("By: ARM-KU.BLOGS");
lcd_gotoxy(1,0);lcd_puts("POT.COM");tunda(10);lcd_clr();
};
}

Download tutorial dan simulasi lengkap :
http://www.4shared.com/file/TuValWE3/3_LCD_2X_16_3.html

8 Responses so far.

  1. Anonymous says:

    can u upload the lcd.h file

  2. ucupzzz says:

    Download tutorial dan simulasi lengkap :
    http://www.4shared.com/file/TuValWE3/3_LCD_2X_16_3.html

  3. birayours says:

    The zip file is password protected, can you give me the password??

  4. Anonymous says:

    pass: arm-ku_lcd2

  5. Anonymous says:

    Hi.
    Thank you for your files and attention.
    We still working with atmel 89s52 and thinking change for lpc 2138.
    Best regards.
    alessandrors.blospot.com

  6. Anonymous says:

    Hi,
    I am working with plc2148, can you give the password for lcd 16*2.

  7. Anonymous says:

    mas ijin tanya, saya mau pakai arm M3 stm32f1, sekiranya perlu perubahan dimana ya mas? newbie mas, makasih

Leave a Reply

 

Blogroll

About