LCD12864显示英文字符实验cylone4e FPGA(EP4CE6)Verilog例程quartus11.0工程源码,可以做为你的学习设计参考。 //本实验是用LCD12864显示英文。(LCD带字库) module lcd (clk, rs, rw, en,dat); input clk; output [7:0] dat; output rs,rw,en; //tri en; reg e; reg [7:0] dat; reg rs; reg [15:0] counter; reg [5:0] current,next; reg clkr; reg [1:0] cnt; parameter set0=6'h0; parameter set1=6'h1; parameter set2=6'h2; parameter set3=6'h3; parameter set4=6'h4; parameter set5=6'h5; parameter set6=6'h6; parameter dat0=6'h7; parameter dat1=6'h8; parameter dat2=6'h9; parameter dat3=6'hA; parameter dat4=6'hB; parameter dat5=6'hC; parameter dat6=6'hD; parameter dat7=6'hE; parameter dat8=6'hF; parameter dat9=6'h10; parameter dat10=6'h12; parameter dat11=6'h13; parameter dat12=6'h14; parameter dat13=6'h15; parameter dat14=6'h16; parameter dat15=6'h17; parameter dat16=6'h18; parameter dat17=6'h19; parameter dat18=6'h1A; parameter dat19=6'h1B; parameter dat20=6'h1C; parameter dat21=6'h1D; parameter dat22=6'h1E; parameter dat23=6'h1F; parameter dat24=6'h20; parameter dat25=6'h21; parameter dat26=6'h22; parameter nul=6'hF1; always @(posedge clk) begin counter=counter+1; if(counter==16'h000f) clkr=~clkr; end always @(posedge clkr) begin current=next; case(current) set0: begin rs<=0; dat<=8'h30; next<=set1; end set1: begin rs<=0; dat<=8'h0c; next<=set2; end set2: begin rs<=0; dat<=8'h6; next<=set3; end set3: begin rs<=0; dat<=8'h1; next<=dat0; end dat0: begin rs<=1; dat<="L"; next<=dat1; end //显示第一行 dat1: begin rs<=1; dat<="y"; next<=dat2; end dat2: begin rs<=1; dat<="c"; next<=dat3; end dat3: begin rs<=1; dat<=" ";next<=dat4; end dat4: begin rs<=1; dat<="F"; next<=dat5; end dat5: begin rs<=1; dat<="r"; next<=dat6; end dat6: begin rs<=1; dat<="e"; next<=dat7; end dat7: begin rs<=1; dat<
TMS320F2812 LCD12864显示 DSP TMS320F2812 LCD12864显示 DSP TMS320F2812 LCD12864显示 DSP
2021-12-01 20:59:57 260KB TMS320F2812 LCD12864显示 DSP
1
/*********************************************************** 实验名称:LCD12864显示汉字示例程序 程序说明:烧好程序,正确插上LCD12864即可观察到LCD上显示的汉字。 注意:USB供电可能不足,这时需要用变压器供电。 ***********************************************************/ /*********************************************************** 模块名称:st7920 并行方式驱动12864液晶驱动 功能概要:st7920显示驱动 完成日期:2008.07.08 驱动芯片:st7920 ***********************************************************/ #include #define uint unsigned int #define uchar unsigned char #define x1 0x80 #define x2 0x88 #define y 0x80 #define comm 0 #define dat 1 sbit RS = P2^0; //H=data; L="command"; sbit RW = P2^1; //H=read; L="write"; sbit E = P2^2; //input enable; sbit PSB= P2^3; //H=并口; L="串口"; sbit RST= P2^5; //Reset Signal 低电平有效 sbit busy=P1^7; //lcd busy bit void wr_lcd (uchar dat_comm,uchar content); void chk_busy (void); void delay (uint us); uchar code tab31[]={ " RF-X1开发板 " " 您学习的首选 " }; uchar code tab32[]={ /*-- 调入了一幅图像:F:\梁\画图\HOCO12832.bmp --*/ /*-- 宽度x高度=128x32 --*/ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x1E,0x00,0x00,0x00,0x00,0x00,0x07,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x7F,0x80,0x00,0x00,0x00,0x00,0x18,0x0C,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x01,0xFF,0x80,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x13,0x10,0x03,0xFE,0x00, 0x03,0xFF,0xC0,0x00,0x00,0x00,0x00,0x58,0x00,0x00,0x00,0x3F,0x30,0x1F,0xFF,0xC0, 0x03,0xFF,0xE0,0x00,0x00,0x00,0x00,0x8C,0x03,0xF0,0x00,0x7F,0xE0,0x7C,0x01,0xE0, 0x03,0xFF,0xF0,0x00,0x00,0x00,0x01,0x36,0x06,0xC0,0x00,0x5F,0xC0,0xFF,0xFC,0x60, 0x01,0xFF,0xF0,0x00,0x00,0x00,0x02,0x1B,0x0F,0x80,0x00,0xFF,0x01,0xFE,0x0F,0x30, 0x00,0xEF,0xF0,0x00,0x00,0x00,0x02,0x6D,0x9F,0x00,0x00,0x3E,0x03,0xFF,0xF1,0x90, 0x00,0xFF,0xF8,0x00,0x00,0x00,0x04,0x36,0xFE,0x00,0x01,0xFF,0x07,0xFF,0xFC,0x90, 0x00,0xEF,0xFF,0xFF,0x80,0x00,0x04,0xDB,0x7E,0x00,0x03,0xFF,0x87,0xFF,0xFC,0xD0, 0x00,0x0F,0xFF,0xFF,0xC0,0x00,0x04,0x6D,0xFC,0x00,0x07,0xFF,0x8F,0xFF,0xFE,0x50, 0x00,0x0
1
本例是基于51单片机而编写的电子万年历,采用LCD12864显示,仿真通过。。。
2021-10-26 15:33:53 115KB 电子万年历 12864
1
STM32F103并行驱动LCD12864显示变量758678678678687678687786786786786786786876876
2021-10-25 09:17:59 3.89MB lcd12864
1
基于51单片机+AD采集电压+DS1621采集温度+LCD12864显示+IIC仿真设计 包含源程序及仿真文件
2021-09-09 13:04:38 154KB 51单片机 AD采集 DS1621
基于51单片机控制步进电机LCD12864显示,步进电机按单—双八拍工作方式,程序配相当丰富的注解,非常适合初学者参考与使用。
2021-08-30 14:06:17 131KB 51单片机
使用avr单片机实现lcd12864显示的示波器仿真设计全套资料
2021-08-09 09:06:22 21KB avr单片机
超声波测距LCD12864显示程序,拿来即用。
2021-08-03 12:16:10 33KB 超声波 测距 12864
1
LCD12864显示智能风扇红外遥控调速 LCD显示当前风速 当前温度 运行时间
2021-07-23 20:21:06 83KB 12864 智能风扇 红外遥控 调速
1