« P-COMP MIDI LAB | Main | ICM FINAL PROPAGANDA MACHINE »

LCD PROJECT FROM ADV. MICRO

Thanks to Gary, we were given these awesome (and free) boards with LCD screens. This is the assembly and my first real CODE!

LCD1.jpg

The PIC i had originally ordered is not programmable with the PIC Programmer we have. It was a 16F688, so i had to find other options...

LCD2.jpg

And here's the LCD! With headers so that i can use for other projects...

And here's the code:

'****************************************************************
'* Name : LCD *
'* Author : benny *
'* Notice : Copyright (c) 2006 benny *
'* : All Rights Reserved *
'* Date : 10/6/2006 *
'* Version : 1.1 *
'* Notes : *
'* : *
'****************************************************************


DEFINE LCD_DREG PORTC
DEFINE LCD_DBIT 4
DEFINE LCD_RSREG PORTA
DEFINE LCD_RSBIT 1
DEFINE LCD_EREG PORTA
DEFINE LCD_BITS 4
DEFINE LCD_LINES 2
DEFINE LCD_COMMANDUS 2000
DEFINE LCD_DATAUS 50

LEDpin VAR PORTA.2

GOSUB blinkie

main:
LCDOUT $FE,1, "HELLO"
LCDOUT $FE,$C0, "FUCKERS"
goto main

blinkie:
b var byte
For b = 0 to 3
HIGH LEDpin
pause 250
Low LEDpin
pause 250
next b
RETURN

TrackBack

TrackBack URL for this entry:
http://itp.nyu.edu/~bp432/cgi-bin/mt/mt-tb.cgi/23