
*** Modified files in JOE when it aborted on Fri May 21 22:26:00 1999
*** JOE was aborted by signal 1

*** File 'D160LCD.TXT'

LCD panel of Motorola d160 (LPH7373-2)

Connector layout:

1	data 3
2	data 2
3	data 1
4	data 0
5	GND
6	-5V (needed AFAIK
7	Vcc
8	FC0/CS3- (programmed as CS3) (thru gate between MCU and EEPROM ) 
9	NC
10	Addr 0 
11	Backlight -
12 	Backlight +


Progamming:

This LCD module is Hitatchi 44780 compatible and good 
source of basic LCD information is located at http://www.myke.com/engres/lcd.htm

Module uses 4 bit interface. Location of control and data registers
is determined by CSBAR3 ($fffa58). They are write only regs.  

Normal values for registers are $ffa000 for ControlReg and $ffa001 for DataReg. 

Example:

* Macro file for BD32 debugger  
stop
* Set upper byte of BIUMCR
mm;b $fff400
$0c. 
* set PIOSM registers
mm;b $fff488
*data reg - light on & LCD on
$12
*PIO dir Reg	
$f7.
* CS3 ...
mm $fffa58
$ffa0
$3230 .
* define control & data register
set lc $ffa000
set ld $ffa001
* set 4 bit interface
* bf;b because it seems to be the only write-only command in BD32
bf;b lc lc  $2
bf;b lc lc  $8
* enable display set cursor blinking
bf;b lc lc  $0
bf;b lc lc  $f
* clear display
bf;b lc lc  $0
bf;b lc lc  $1
* 
* display message
bf;b ld ld 4
bf;b ld ld 8
bf;b ld ld 6
bf;b ld ld 5
bf;b ld ld 6
bf;b ld ld 9
bf;b ld ld 2
bf;b ld ld 1
* End of Message
*
* Light off
mm;b $fff488
$02 .
*
* go if needed