📄 lcd12864_3wires_draw.s
字号:
.byte 0,127
.byte 254,0
.byte 0,7
.byte 255,159
.byte 255,7
.byte 255,192
.byte 127,252
.byte 31,255
.byte 0,255
.byte 252,0
.byte 0,15
.byte 255,143
.byte 255,7
.byte 255,192
.byte 127,248
.byte 31,255
.byte 1,255
.byte 252,0
.byte 0,15
.byte 255,15
.byte 255,3
.byte 255,192
.byte 255,248
.byte 63,255
.byte 255,255
.byte 248,0
.byte 0,15
.byte 255,15
.byte 255,131
.byte 255,224
.byte 255,248
.byte 63,255
.byte 255,255
.byte 248,0
.byte 0,31
.byte 255,7
.byte 255,131
.byte 255,225
.byte 255,240
.byte 127,255
.byte 255,255
.byte 240,0
.byte 0,31
.byte 254,7
.byte 255,193
.byte 255,241
.byte 255,240
.byte 127,255
.byte 255,255
.byte 224,0
.byte 0,63
.byte 254,7
.byte 255,193
.byte 255,243
.byte 255,224
.byte 127,255
.byte 255,255
.byte 192,0
.byte 0,63
.byte 254,3
.byte 255,192
.byte 255,251
.byte 255,224
.byte 255,255
.byte 255,255
.byte 128,0
.byte 0,127
.byte 252,3
.byte 255,224
.byte 255,251
.byte 255,192
.byte 255,255
.byte 255,255
.byte 0,0
.byte 0,127
.byte 252,3
.byte 255,224
.byte 127,255
.byte 255,193
.byte 255,255
.byte 255,252
.byte 0,0
.byte 0,127
.byte 248,1
.byte 255,240
.byte 127,255
.byte 255,129
.byte 255,255
.byte 255,224
.byte 0,0
.byte 0,255
.byte 255,255
.byte 255,248
.byte 63,255
.byte 255,131
.byte 255,255
.byte 255,192
.byte 0,0
.byte 0,255
.byte 255,255
.byte 255,248
.byte 63,255
.byte 255,131
.byte 255,243
.byte 255,192
.byte 0,0
.byte 0,255
.byte 255,255
.byte 255,248
.byte 63,255
.byte 255,3
.byte 255,227
.byte 255,224
.byte 0,0
.byte 1,255
.byte 255,255
.byte 255,252
.byte 31,255
.byte 255,7
.byte 255,227
.byte 255,224
.byte 0,0
.byte 1,255
.byte 255,255
.byte 255,252
.byte 31,255
.byte 254,7
.byte 255,195
.byte 255,224
.byte 0,0
.byte 3,255
.byte 255,255
.byte 255,254
.byte 31,255
.byte 254,15
.byte 255,193
.byte 255,240
.byte 0,0
.byte 3,255
.byte 255,255
.byte 255,254
.byte 15,255
.byte 254,15
.byte 255,129
.byte 255,240
.byte 0,0
.byte 3,255
.byte 255,255
.byte 255,254
.byte 15,255
.byte 252,15
.byte 255,129
.byte 255,248
.byte 0,0
.byte 7,255
.byte 255,255
.byte 255,255
.byte 7,255
.byte 252,31
.byte 255,129
.byte 255,248
.byte 0,0
.byte 7,255
.byte 255,255
.byte 255,255
.byte 7,255
.byte 248,63
.byte 255,0
.byte 255,248
.byte 0,0
.byte 15,255
.byte 192,0
.byte 31,255
.byte 131,255
.byte 248,63
.byte 255,0
.byte 255,248
.byte 0,0
.byte 15,255
.byte 128,0
.byte 15,255
.byte 131,255
.byte 240,63
.byte 254,0
.byte 255,252
.byte 0,0
.byte 15,255
.byte 128,0
.byte 15,255
.byte 195,255
.byte 240,127
.byte 254,0
.byte 127,252
.byte 0,0
.byte 31,255
.byte 0,0
.byte 15,255
.byte 193,255
.byte 240,127
.byte 252,0
.byte 127,252
.byte 0,0
.byte 31,255
.byte 0,0
.byte 7,255
.byte 193,255
.byte 224,127
.byte 252,0
.byte 127,254
.byte 0,0
.byte 31,255
.byte 0,0
.byte 7,255
.byte 224,255
.byte 224,255
.byte 248,0
.byte 127,254
.byte 0,0
.byte 63,254
.byte 0,0
.byte 3,255
.byte 224,255
.byte 192,255
.byte 248,0
.byte 63,254
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,127
.byte 192,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,127
.byte 192,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,127
.byte 128,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,63
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,63
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,31
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,30
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,14
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,12
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,12
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.dbsym e PIC2 _PIC2 A[1024:64:16]kc
.area text(rom, con, rel)
.dbfile E:\MyDesign\ICCAVR\ATmega128\LCD12864\lcd12864_3wires_draw.c
.dbfunc e main _main fV
; i -> R20
.even
_main::
sbiw R28,3
.dbline -1
.dbline 193
; /***********************************************************************
; 工 程:ST7920驱动的12864液晶的3线串行驱动模式
; 创建日期:2007年9月16日
; 创 建 人:朱海峰
; 邮 箱:ntzhf100@163.com QQ:543376422
; 引脚定义:RS(CS)=====>PB5
; RW(SID)====>PB6
; EN(SCLK)===>PB7
; PSB为硬件控制,接高电平为8位或4位的并行模式,接低电平为串行模式
; ************************************************************************/
; #include <iom128v.h>
; #include <macros.h>
;
; #define uchar unsigned char
; #define uint unsigned int
; #define nop() NOP()
; #define xtal 8
; #define CS PB5
; #define SID PB6
; #define SCLK PB7
;
; #define Set_CS() DDRB |= (1<<CS);PORTB |= (1<<CS)
; #define Set_SID() DDRB |= (1<<SID);PORTB |= (1<<SID)
; #define Set_SCLK() DDRB |= (1<<SCLK);PORTB |= (1<<SCLK)
;
; #define Clr_CS() DDRB |= (1<<CS);PORTB &=~(1<<CS)
; #define Clr_SID() DDRB |= (1<<SID);PORTB &=~(1<<SID)
; #define Clr_SCLK() DDRB |= (1<<SCLK);PORTB &=~(1<<SCLK)
;
;
;
; //====================================================================
; //函数声明
; void Delay(uint ms); //延时子程序
; void W_1byte(uchar RW, uchar RS, uchar W_data);
; void Write_8bits(uint W_bits);
; void LCD_Init(void);
; void Char_Set_XY(uchar x, uchar y, uchar *p);
; void Set_Draw(void);
; //设定哪一行,从那一个位置开始到那一个位置结束使用反白
; //x=液晶屏上汉字的位置(1~8);end_x=汉字结束的地址(1~8);y=1~4行
; //clear=1:清除反白;clear=0:设置反白;
; void Set_White(uchar x,uchar y,uchar end_x,uchar clear);
; void Draw_Pic(uchar x, uchar y, const uchar *Draw);
; /*
; /********************************************************************
; ********************************************************************/
; const uchar PIC1[64][16]={
; /*-- 调入了一幅图像:C:\Documents and Settings\Administrator\桌面\atmel.bmp --*/
; /*-- 宽度x高度=128x64 --*/
;
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x00,0x00,
; 0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x00,0x00,
; 0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x00,0x00,
; 0x00,0x00,0x01,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x00,0x00,
; 0x00,0x00,0x03,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x00,0x00,
; 0x00,0x00,0x03,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x00,0x00,
; 0x00,0x00,0x07,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x00,0x00,
; 0x00,0x00,0x07,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x00,0x00,
; 0x00,0x00,0x0F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0x00,0x00,
; 0x00,0x00,0x0F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF8,0x00,0x00,
; 0x00,0x00,0x00,0x07,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x07,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,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00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3C,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
; };
;
; //==================================================================
;
; const uchar PIC2[64][16]={
; /*-- 调入了一幅图像:C:\Documents and Settings\Administrator\桌面\AVR.BMP --*/
; /*-- 宽度x高度=128x64 --*/
;
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3C,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x43,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xBD,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x27,
; 0x00,0x00,0x1F,0xFF,0x83,0xFF,0xE0,0x00,0x00,0xFF,0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0x00,0x7F,0xFC,0x00,0x00,
; 0x1F,0xFF,0x00,0x00,0x0F,0xFF,0xC1,0xFF,0xF0,0x7F,0xFC,0x00,0x7F,0xFC,0x00,0x00,
; 0x1F,0xFF,0x00,0x00,0x07,0xFF,0xC1,0xFF,0xE0,0x7F,0xFC,0x00,0x7F,0xFE,0x00,0x00,
; 0x1F,0xFF,0x00,0x00,0x07,0xFF,0xE0,0xFF,0xE0,0xFF,0xF8,0x00,0x7F,0xFE,0x00,0x00,
; 0x3F,0xFE,0x00,0x00,0x03,0xFF,0xE0,0xFF,0xC0,0xFF,0xF8,0x00,0x3F,0xFE,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
; };
;
; /********************************************************************/
;
; void main()
; {
.dbline 194
; uchar i = 0;
clr R20
.dbline 195
; PORTB = 0XFF; //
ldi R24,255
out 0x18,R24
.dbline 196
; DDRB = 0XFF; //PB口全部设为输出模式
out 0x17,R24
.dbline 197
; Clr_CS();
sbi 0x17,5
.dbline 197
cbi 0x18,5
.dbline 198
; Clr_SID();
sbi 0x17,6
.dbline 198
cbi 0x18,6
.dbline 199
; Clr_SCLK();
sbi 0x17,7
.dbline 199
cbi 0x18,7
.dbline 200
; LCD_Init();
xcall _LCD_Init
.dbline 201
; Delay(50);
ldi R16,50
ldi R17,0
xcall _Delay
.dbline 202
; LCD_Init(); //初始化两边是关键,否则液晶上电重起将不能显示
xcall _LCD_Init
xjmp L3
L2:
.dbline 204
.dbline 205
nop
.dbline 206
nop
.dbline 207
ldi R16,500
ldi R17,1
xcall _Delay
.dbline 208
ldi R24,<L5
ldi R25,>L5
std y+1,R25
std y+0,R24
clr R18
clr R16
xcall _Char_Set_XY
.dbline 209
ldi R24,<L6
ldi R25,>L6
std y+1,R25
std y+0,R24
ldi R18,1
ldi R16,2
xcall _Char_Set_XY
.dbline 210
ldi R24,<L7
ldi R25,>L7
std y+1,R25
std y+0,R24
ldi R18,2
clr R16
xcall _Char_Set_XY
.dbline 211
ldi R24,<L8
ldi R25,>L8
std y+1,R25
std y+0,R24
ldi R18,3
ldi R16,3
xcall _Char_Set_XY
.dbline 212
ldi R16,2000
ldi R17,7
xcall _Delay
.dbline 213
ldi R16,2000
ldi R17,7
xcall _Delay
.dbline 214
xcall _Set_Draw
.dbline 215
ldi R16,100
ldi R17,0
xcall _Delay
.dbline 216
clr R2
std y+2,R2
ldi R24,7
std y+0,R24
ldi R18,1
ldi R16,1
xcall _Set_White
.dbline 217
clr R2
std y+2,R2
ldi R24,6
std y+0,R24
ldi R18,2
ldi R16,3
xcall _Set_White
.dbline 218
clr R2
std y+2,R2
ldi R24,8
std y+0,R24
ldi R18,3
ldi R16,1
xcall _Set_White
.dbline 219
clr R2
std y+2,R2
ldi R24,5
std y+0,R24
ldi R18,4
ldi R16,4
xcall _Set_White
.dbline 220
ldi R16,2000
ldi R17,7
xcall _Delay
.dbline 221
ldi R16,2000
ldi R17,7
xcall _Delay
.dbline 222
ldi R24,1
std y+2,R24
ldi R24,4
std y+0,R24
ldi R18,1
ldi R16,4
xcall _Set_White
.dbline 223
ldi R24,1
std y+2,R24
ldi R24,5
std y+0,R24
ldi R18,2
ldi R16,5
xcall _Set_White
.dbline 224
ldi R24,1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -