⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hyj.lss

📁 240*320 TFT屏用M16读取SD卡内BMP格式图片.和汉字显示程序(字库也是存在SD卡里
💻 LSS
📖 第 1 页 / 共 5 页
字号:
     630:	ae 9a       	sbi	0x15, 6	; 21
	
	PORTA= index;
     632:	81 ea       	ldi	r24, 0xA1	; 161
     634:	8b bb       	out	0x1b, r24	; 27
	LCD_WR_L;
     636:	ac 98       	cbi	0x15, 4	; 21
	LCD_WR_H;
     638:	ac 9a       	sbi	0x15, 4	; 21
/***************************
    写8位数据函数
****************************/
void LCD_WriteByte(uint8 data)
{
	LCD_RS_H;
     63a:	ab 9a       	sbi	0x15, 3	; 21
	LCD_CS_H;
     63c:	ae 9a       	sbi	0x15, 6	; 21
	
	DATA= data;
     63e:	1b ba       	out	0x1b, r1	; 27
	LCD_WR_L;
     640:	ac 98       	cbi	0x15, 4	; 21
	LCD_WR_H ;
     642:	ac 9a       	sbi	0x15, 4	; 21
         写寄存器函数
********************************/
void LCD_WriteRegister(uint8 index)
{

	LCD_RS_L ;
     644:	ab 98       	cbi	0x15, 3	; 21
    LCD_CS_H;
     646:	ae 9a       	sbi	0x15, 6	; 21
	
	PORTA= index;
     648:	80 ea       	ldi	r24, 0xA0	; 160
     64a:	8b bb       	out	0x1b, r24	; 27
	LCD_WR_L;
     64c:	ac 98       	cbi	0x15, 4	; 21
	LCD_WR_H;
     64e:	ac 9a       	sbi	0x15, 4	; 21
/***************************
    写8位数据函数
****************************/
void LCD_WriteByte(uint8 data)
{
	LCD_RS_H;
     650:	ab 9a       	sbi	0x15, 3	; 21
	LCD_CS_H;
     652:	ae 9a       	sbi	0x15, 6	; 21
	
	DATA= data;
     654:	1b ba       	out	0x1b, r1	; 27
	LCD_WR_L;
     656:	ac 98       	cbi	0x15, 4	; 21
	LCD_WR_H ;
     658:	ac 9a       	sbi	0x15, 4	; 21
	delay_us(90);
	LCD_WriteRegister(0xA0);
	delay_us(10);
	LCD_WriteByte(0x00);
	delay_us(10);
	LCD_WriteCommand(0,0x70,0xC8);
     65a:	48 ec       	ldi	r20, 0xC8	; 200
     65c:	50 e0       	ldi	r21, 0x00	; 0
     65e:	60 e7       	ldi	r22, 0x70	; 112
     660:	80 e0       	ldi	r24, 0x00	; 0
     662:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>

	delay_ms(10);
	
	LCD_WriteCommand(0,0x72,0xA3);
     666:	43 ea       	ldi	r20, 0xA3	; 163
     668:	50 e0       	ldi	r21, 0x00	; 0
     66a:	62 e7       	ldi	r22, 0x72	; 114
     66c:	80 e0       	ldi	r24, 0x00	; 0
     66e:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(0,0x73,0x04);
     672:	44 e0       	ldi	r20, 0x04	; 4
     674:	50 e0       	ldi	r21, 0x00	; 0
     676:	63 e7       	ldi	r22, 0x73	; 115
     678:	80 e0       	ldi	r24, 0x00	; 0
     67a:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(0,0x75,0x45);
     67e:	45 e4       	ldi	r20, 0x45	; 69
     680:	50 e0       	ldi	r21, 0x00	; 0
     682:	65 e7       	ldi	r22, 0x75	; 117
     684:	80 e0       	ldi	r24, 0x00	; 0
     686:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(0,0x76,0x23);
     68a:	43 e2       	ldi	r20, 0x23	; 35
     68c:	50 e0       	ldi	r21, 0x00	; 0
     68e:	66 e7       	ldi	r22, 0x76	; 118
     690:	80 e0       	ldi	r24, 0x00	; 0
     692:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(0,0x77,0x08);
     696:	48 e0       	ldi	r20, 0x08	; 8
     698:	50 e0       	ldi	r21, 0x00	; 0
     69a:	67 e7       	ldi	r22, 0x77	; 119
     69c:	80 e0       	ldi	r24, 0x00	; 0
     69e:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(0,0x78,0x08);
     6a2:	48 e0       	ldi	r20, 0x08	; 8
     6a4:	50 e0       	ldi	r21, 0x00	; 0
     6a6:	68 e7       	ldi	r22, 0x78	; 120
     6a8:	80 e0       	ldi	r24, 0x00	; 0
     6aa:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(0,0x79,0x00);
     6ae:	40 e0       	ldi	r20, 0x00	; 0
     6b0:	50 e0       	ldi	r21, 0x00	; 0
     6b2:	69 e7       	ldi	r22, 0x79	; 121
     6b4:	80 e0       	ldi	r24, 0x00	; 0
     6b6:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(0,0x7F,0xF0);
     6ba:	40 ef       	ldi	r20, 0xF0	; 240
     6bc:	50 e0       	ldi	r21, 0x00	; 0
     6be:	6f e7       	ldi	r22, 0x7F	; 127
     6c0:	80 e0       	ldi	r24, 0x00	; 0
     6c2:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(0,0x71,0x81);	
     6c6:	41 e8       	ldi	r20, 0x81	; 129
     6c8:	50 e0       	ldi	r21, 0x00	; 0
     6ca:	61 e7       	ldi	r22, 0x71	; 113
     6cc:	80 e0       	ldi	r24, 0x00	; 0
     6ce:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_ms(2);

	LCD_WriteCommand(0,0x0D,0x23);
     6d2:	43 e2       	ldi	r20, 0x23	; 35
     6d4:	50 e0       	ldi	r21, 0x00	; 0
     6d6:	6d e0       	ldi	r22, 0x0D	; 13
     6d8:	80 e0       	ldi	r24, 0x00	; 0
     6da:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(0,0x11,0x00);
     6de:	40 e0       	ldi	r20, 0x00	; 0
     6e0:	50 e0       	ldi	r21, 0x00	; 0
     6e2:	61 e1       	ldi	r22, 0x11	; 17
     6e4:	80 e0       	ldi	r24, 0x00	; 0
     6e6:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(0,0x12,0x00);
     6ea:	40 e0       	ldi	r20, 0x00	; 0
     6ec:	50 e0       	ldi	r21, 0x00	; 0
     6ee:	62 e1       	ldi	r22, 0x12	; 18
     6f0:	80 e0       	ldi	r24, 0x00	; 0
     6f2:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(0,0x21,0x37);
     6f6:	47 e3       	ldi	r20, 0x37	; 55
     6f8:	50 e0       	ldi	r21, 0x00	; 0
     6fa:	61 e2       	ldi	r22, 0x21	; 33
     6fc:	80 e0       	ldi	r24, 0x00	; 0
     6fe:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(0,0x22,0x02);
     702:	42 e0       	ldi	r20, 0x02	; 2
     704:	50 e0       	ldi	r21, 0x00	; 0
     706:	62 e2       	ldi	r22, 0x22	; 34
     708:	80 e0       	ldi	r24, 0x00	; 0
     70a:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(0,0x23,0x24);
     70e:	44 e2       	ldi	r20, 0x24	; 36
     710:	50 e0       	ldi	r21, 0x00	; 0
     712:	63 e2       	ldi	r22, 0x23	; 35
     714:	80 e0       	ldi	r24, 0x00	; 0
     716:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	delay_us(10);
	LCD_WriteCommand(0,0x24,0x13);
     71a:	43 e1       	ldi	r20, 0x13	; 19
     71c:	50 e0       	ldi	r21, 0x00	; 0
     71e:	64 e2       	ldi	r22, 0x24	; 36
     720:	80 e0       	ldi	r24, 0x00	; 0
     722:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(0,0x25,0x0A);
     726:	4a e0       	ldi	r20, 0x0A	; 10
     728:	50 e0       	ldi	r21, 0x00	; 0
     72a:	65 e2       	ldi	r22, 0x25	; 37
     72c:	80 e0       	ldi	r24, 0x00	; 0
     72e:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(0,0x26,0x82);
     732:	42 e8       	ldi	r20, 0x82	; 130
     734:	50 e0       	ldi	r21, 0x00	; 0
     736:	66 e2       	ldi	r22, 0x26	; 38
     738:	80 e0       	ldi	r24, 0x00	; 0
     73a:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(0,0x27,0x01);
     73e:	41 e0       	ldi	r20, 0x01	; 1
     740:	50 e0       	ldi	r21, 0x00	; 0
     742:	67 e2       	ldi	r22, 0x27	; 39
     744:	80 e0       	ldi	r24, 0x00	; 0
     746:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(0,0x1E,0x25);
     74a:	45 e2       	ldi	r20, 0x25	; 37
     74c:	50 e0       	ldi	r21, 0x00	; 0
     74e:	6e e1       	ldi	r22, 0x1E	; 30
     750:	80 e0       	ldi	r24, 0x00	; 0
     752:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(0,0x1F,0x59);
     756:	49 e5       	ldi	r20, 0x59	; 89
     758:	50 e0       	ldi	r21, 0x00	; 0
     75a:	6f e1       	ldi	r22, 0x1F	; 31
     75c:	80 e0       	ldi	r24, 0x00	; 0
     75e:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);

	//GAMMA设置
	LCD_WriteCommand(1,0x30,0x0777);
     762:	47 e7       	ldi	r20, 0x77	; 119
     764:	57 e0       	ldi	r21, 0x07	; 7
     766:	60 e3       	ldi	r22, 0x30	; 48
     768:	81 e0       	ldi	r24, 0x01	; 1
     76a:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(1,0x31,0x0444);
     76e:	44 e4       	ldi	r20, 0x44	; 68
     770:	54 e0       	ldi	r21, 0x04	; 4
     772:	61 e3       	ldi	r22, 0x31	; 49
     774:	81 e0       	ldi	r24, 0x01	; 1
     776:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(1,0x32,0x0555);
     77a:	45 e5       	ldi	r20, 0x55	; 85
     77c:	55 e0       	ldi	r21, 0x05	; 5
     77e:	62 e3       	ldi	r22, 0x32	; 50
     780:	81 e0       	ldi	r24, 0x01	; 1
     782:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(1,0x33,0x0444);
     786:	44 e4       	ldi	r20, 0x44	; 68
     788:	54 e0       	ldi	r21, 0x04	; 4
     78a:	63 e3       	ldi	r22, 0x33	; 51
     78c:	81 e0       	ldi	r24, 0x01	; 1
     78e:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(1,0x34,0x0333);
     792:	43 e3       	ldi	r20, 0x33	; 51
     794:	53 e0       	ldi	r21, 0x03	; 3
     796:	64 e3       	ldi	r22, 0x34	; 52
     798:	81 e0       	ldi	r24, 0x01	; 1
     79a:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(1,0x35,0x0333);
     79e:	43 e3       	ldi	r20, 0x33	; 51
     7a0:	53 e0       	ldi	r21, 0x03	; 3
     7a2:	65 e3       	ldi	r22, 0x35	; 53
     7a4:	81 e0       	ldi	r24, 0x01	; 1
     7a6:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(1,0x36,0x0333);
     7aa:	43 e3       	ldi	r20, 0x33	; 51
     7ac:	53 e0       	ldi	r21, 0x03	; 3
     7ae:	66 e3       	ldi	r22, 0x36	; 54
     7b0:	81 e0       	ldi	r24, 0x01	; 1
     7b2:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(1,0x37,0x0333);
     7b6:	43 e3       	ldi	r20, 0x33	; 51
     7b8:	53 e0       	ldi	r21, 0x03	; 3
     7ba:	67 e3       	ldi	r22, 0x37	; 55
     7bc:	81 e0       	ldi	r24, 0x01	; 1
     7be:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(1,0x38,0x0444);
     7c2:	44 e4       	ldi	r20, 0x44	; 68
     7c4:	54 e0       	ldi	r21, 0x04	; 4
     7c6:	68 e3       	ldi	r22, 0x38	; 56
     7c8:	81 e0       	ldi	r24, 0x01	; 1
     7ca:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(1,0x39,0x0555);
     7ce:	45 e5       	ldi	r20, 0x55	; 85
     7d0:	55 e0       	ldi	r21, 0x05	; 5
     7d2:	69 e3       	ldi	r22, 0x39	; 57
     7d4:	81 e0       	ldi	r24, 0x01	; 1
     7d6:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(1,0x3A,0x0666);
     7da:	46 e6       	ldi	r20, 0x66	; 102
     7dc:	56 e0       	ldi	r21, 0x06	; 6
     7de:	6a e3       	ldi	r22, 0x3A	; 58
     7e0:	81 e0       	ldi	r24, 0x01	; 1
     7e2:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(1,0x3B,0x0666);
     7e6:	46 e6       	ldi	r20, 0x66	; 102
     7e8:	56 e0       	ldi	r21, 0x06	; 6
     7ea:	6b e3       	ldi	r22, 0x3B	; 59
     7ec:	81 e0       	ldi	r24, 0x01	; 1
     7ee:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(1,0x3C,0x0777);
     7f2:	47 e7       	ldi	r20, 0x77	; 119
     7f4:	57 e0       	ldi	r21, 0x07	; 7
     7f6:	6c e3       	ldi	r22, 0x3C	; 60
     7f8:	81 e0       	ldi	r24, 0x01	; 1
     7fa:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(1,0x3D,0x0777);
     7fe:	47 e7       	ldi	r20, 0x77	; 119
     800:	57 e0       	ldi	r21, 0x07	; 7
     802:	6d e3       	ldi	r22, 0x3D	; 61
     804:	81 e0       	ldi	r24, 0x01	; 1
     806:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(1,0x3E,0x0777);
     80a:	47 e7       	ldi	r20, 0x77	; 119
     80c:	57 e0       	ldi	r21, 0x07	; 7
     80e:	6e e3       	ldi	r22, 0x3E	; 62
     810:	81 e0       	ldi	r24, 0x01	; 1
     812:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(1,0x3F,0x0777);
     816:	47 e7       	ldi	r20, 0x77	; 119
     818:	57 e0       	ldi	r21, 0x07	; 7
     81a:	6f e3       	ldi	r22, 0x3F	; 63
     81c:	81 e0       	ldi	r24, 0x01	; 1
     81e:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(1,0x40,0x0777);
     822:	47 e7       	ldi	r20, 0x77	; 119
     824:	57 e0       	ldi	r21, 0x07	; 7
     826:	60 e4       	ldi	r22, 0x40	; 64
     828:	81 e0       	ldi	r24, 0x01	; 1
     82a:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(1,0x41,0x0777);
     82e:	47 e7       	ldi	r20, 0x77	; 119
     830:	57 e0       	ldi	r21, 0x07	; 7
     832:	61 e4       	ldi	r22, 0x41	; 65
     834:	81 e0       	ldi	r24, 0x01	; 1
     836:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(1,0x42,0x0777);
     83a:	47 e7       	ldi	r20, 0x77	; 119
     83c:	57 e0       	ldi	r21, 0x07	; 7
     83e:	62 e4       	ldi	r22, 0x42	; 66
     840:	81 e0       	ldi	r24, 0x01	; 1
     842:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);
	LCD_WriteCommand(1,0x43,0x0777);
     846:	47 e7       	ldi	r20, 0x77	; 119
     848:	57 e0       	ldi	r21, 0x07	; 7
     84a:	63 e4       	ldi	r22, 0x43	; 67
     84c:	81 e0       	ldi	r24, 0x01	; 1
     84e:	0e 94 fa 02 	call	0x5f4	; 0x5f4 <LCD_WriteCommand>
	delay_us(10);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -