实验十五 点阵LCD液晶显示屏实验.docx
《实验十五 点阵LCD液晶显示屏实验.docx》由会员分享,可在线阅读,更多相关《实验十五 点阵LCD液晶显示屏实验.docx(11页珍藏版)》请在三一办公上搜索。
1、实验十五点阵LCD液晶显示屏实验一、实验目的:学习获取字模的方法;学习122X32A液晶LCD的原理及编程方法;二、实验内容:在LCD上显示字样。三、实验器材:1、单片机综合实验仪 1 台2、KEIL仿真器1台3、连线若干根4、计算机1台四、工作原理:1、我们选用的122X32A点阵式液晶LCD,是内置SED1520液晶显示控制器 的屏,它集行、列驱动器和控制器于一体,被广泛应用于小规模液晶显示模块中。SED1520 内置2560位显示RAM区,RAM中的1位数据控制液晶屏上一个象素的亮、暗,“1”为亮,“0” 为暗。它具有16个行驱动输出和61个列驱动输出,可以直接与80系列或68系列的CP
2、U 相连,驱动占空比为1/32,显示内容:122X32点。2、122X32A点阵式液晶LCD电路图:122X16DOTS2o o1122X16DOTS16153、极限参数:引脚歹Zyczi符号电平说明1VDD5. 0V电源电压2GND0V接地(GND)3V0可调LCD驱动电压(对比度调节)4/RESH/L复位信号5E1H,HL片使能信号16E2H,HL片使能信号27R/WH/LH:读;L:写8A0H/LH:数据;L:指令9DB0H/L数据位010DB1H/L数据位111DB2H/L数据位212DB3H/L数据位313DB4H/L数据位414DB5H/L数据位515DB6H/L数据位616DB7
3、H/L数据位7名称czi符号测试条件标准值单位最小值最大值电源电压v_-v 一Ta=25C06. 5VLCD驱动电压DD CCV -v012. 0V输入电压DD0V0V V4、电参数:名称czi 符号测试条件标准值单位最小值典型值最大值电压逻辑V -V-4. 755. 05. 25VLCDDDSSV -V-4. 55. 56. 5V电流逻辑DD0I-2. 5-mALCDDDI-2. 0-mALCD工作电压EEVdd-V00C-6. 2-V25 C-5. 5-v(推荐彳首)40 C-4. 8-v输入电压高电平v高电平0. 7V-Vv低电平IHV低电平DD0-DD0. 3Vddv5、Read/Wr
4、ite Timing for the 80-port MPU(Ta=0 to 75C,Vss=.0V 0%)A0, /CS/WR, /RDD0 - D7 (WRITE)D0 - D7(READ)ParameterSignalSymbolConditionRatingUnitMinTypeMaxAddress hold timeA0,t10-nsAddress set-up time/CSAH8t20-nsSystem cycle time/WR,AW8 t1000-nsControl pulse width/RDcyc8tcc200-nsData Set-up timet80-nsData h
5、old timeD0-D7DS8t10-nsRD access timeDH8 tCL=100PF-90nsOutput disable timeACC8t10-60nsThe ratings when Vss=.0V are approximately 100% higher than when Vss=.0V.6、Control timimg for 80 - port/68 - port display(Ta = 0 to 7C, Vss = .0V 0 %)CLParameterSignalSymbolConditionRatingUnitMinTypeMaxLOW pulse wid
6、thCLt35-nsHIGH pulse widthWLCLt35-nsRising timeWHCLt-30150nsFalling timeR t-30150nsFR delay timeFRFtDFRInput timing-2.00.22.0nsOuput timingCl=100pf-0.20.4ns7、指令功能:SED1520有13条指令,从作用上可分为两大类:一类为显示方式的设置 指令,前6条指令为这一类指令,它们只需在初始化程序中写入一次即可。另一类为显示数 据读/写操作的指令,从第7条往下(包括读状态字)都是这类指令。CommandRDWRA0D7D6D5D4D3D2D1D0
7、1Display ON/OFF10010101110/12Display START Line100110Display START address(0-31)3Page Address Set100101110Page(0-3)4Column(Segment)Address Set1000Column address (0-79)5Status Read010BUSYACCON/OFFRET00006Write Display Data101Write Data7Read Display Data011Read Data8ADC Select10010100000/19Static Driv
8、e ON/OFF10010100100/110Duty Select10010101000/111Read Modify Write1001110000012End1001110111013Reset10011100010COM1: Switches the entire display ON or OFF,regardless of the Display RAM dataFRC一or the internal status*COM2: Determines the line of RAM data to be displayed at the display top lineCOM3: S
9、ets the page of the Display RAM in the page address registerCOM4: Sets the column address of the Display RAM in the column address registerCOM5: Reads the statusBUSY 1: Busy(internal processing) 0: READY statusADC1:Rightward(forward)output0:leftward(reverse)outputON/OFF 1: Display OFF0: Display ONRE
10、T1:Resetting0:NormalCOM6:Writes thedata on the databusto RAMCOM7:Reads datafrom the DisplayRAMontothedata busCOM8: Used to reverse the correspondence between the Display RAM column address and segment driver output ports0: Rightward(forward)output 1: leftward(reverse)outputCOM9: Selects normal displ
11、ay operation or static all-lit drive displayoperation.1: Static drive(Power Save)*0: Normal display operationCOM10: Selects the duty factor for driving LCD cells1: 1/32 duty0: 1/16 dutyCOM11: Increments the column address counter by one only when display data written but not when it is read.COM12: C
12、ancels the Ready Modify Write ModeCOM13: Resets the Display START line to the 1st line in the register.Resets the column address counter to 0 and page address register to 3五、接线方案:调用显示“品”字子程IlIlTIInRSl /T1. 口口口口皿皿JZIJnm V & V.I.J EERAkKRkKRkKLCD显示子程序:LCD液晶显示清屏子程序:七、实验步骤:1、设定仿真模式为程序空间在仿真器上,数据空间在用户板上。2
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 实验十五 点阵LCD液晶显示屏实验 实验 十五 点阵 LCD 液晶显示屏
链接地址:https://www.31ppt.com/p-5175277.html