LCD 驱动

LCD的型号是 CM162-4  有U1, U2. 外形尺寸(L*W*H)/mm  80*36*12, 点数/mm 5*8, 内藏控制器 SPLC 780

------------------------------------------------------------------------
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
------------------------------------------------------------------------
|GND|VDD| VO| RS| RW| E |DB0|DB1|DB2|DB3 |DB4 | DB5| DB6| DB7|BL1 |BL2 |
------------------------------------------------------------------------
 
LCD 2行*16列 (1~2行) (1~16列)
LCD共有14个针脚

只能显示字符, 不能显示图形,(也因为本实验不需要那么强大的功能, 所以选择了字符型显示器)


private Display() //构造函数

static public void write(int line, int column, String text)// 行,列,字符串 2*16

static public void writeIntAt(int line, int column, int value, int digits)//行,列,整数值,整数的位数  2*16
java栈的思想,想把低位压栈,再压高位, 后进先出

 

 

//以下是本地方法, 这些方法的实现是由 m68hc11汇编来实现的
static public native void writeAt(int line, int column, char ch); // 2*16
static public native void clear(); //清除LCD上的内容
static public native void init();  //执行LCD初始化序列

lcd驱动程序在 display.s11中

display.s11中的主要函数
1. ds_lcdInit   java原形为:void init();
2. handyboard_Display_clear  java原形为:void clear();
3. handyboard_Display_writeAt  java原形为: void writeAt(int line, int column, char ch);
4. ds_write
5. loadDriver 子函数 lcd_delay

 

 

 

你可能感兴趣的:(论文,java,delay,汇编,string,图形,db2)