诺基亚5110液晶使用说明+实例应用
- 格式:pdf
- 大小:7.18 MB
- 文档页数:23
电气信息学院基于Nokia5110的液晶屏模块设计摘要:本设计是以单片机STC89C52RC为核心器件的基于Nokia5110液晶屏的电子指南针。
整个系统主要由单片机最小系统,电源输入模块,LCD液晶显示模块,磁阻传感器模块和串口电路部分构成。
通过用C语言编程使单片机处理磁阻传感器接收到的X轴和Y轴上的磁场分量,转换为距南方的角度后,通过Nokia5110动态显示。
Nokia5110是一块84×48 的LCD点阵型液晶显示屏,如果字模是12×16 大小的字符,则能显示3 行,每行显示7个汉字。
每个字符都分为上下两部分进行扫描,在每行扫描时以一列8位为单位进行扫描。
通过原理图设计、软件仿真、制作硬质板电路,硬件调试,证明了本设计的可行性。
关键词:Nokia5110,STC89C52RC,磁阻传感器HMC5883L,电子指南针Abstract: This design is a digital compass based on Nokia5110, with the MCU STC89C52RC as its core. The system mainly consists of a MCU minimum system, a power input module, a LCD module, a magnetic sensor module and a serial port module. Through C language programming, the MCU processes the data on the X and Y axes, which is collected by the magnetic sensor. Then it is transformed into an angle indicating its relative direction to the south pole in degrees. Finally, it is shown on the Nokia5110 dynamically. The Nokia5110 is an LCD with 84×48 dots, if a character is displayed with 12×16 dots, then it can display 3 lines, with each line comprising 7 characters. The characters are scanned in two halves, the upper half and the lower half. For each half, 8 bits( a byte)are scanned as a unit at a time. Through schematic design, software simulation, making the printed circuit board and hardware debugging, the feasibility of this design has been proved.Keywords:Nokia5110, STC89C52RC, magnetic sensor, digital compass目录1 前言 .............................................................................................. 错误!未定义书签。
XS128单片机实验:诺基亚5110液晶显示/*********包含的头文件*****************************/#include ;/* common defines and macros */#include "derivative.h"/* derivative-specific definitions */#include "WQ.h"#include "Font6_8.h"#include "Bitmap.h"#include "Font16_16.h"#include "Font8_16.h"/****************宏定义*****************************/#define SCLKPTM_PTM4#define SDINPTM_PTM3#define LCD_DC PTM_PTM5#define LCD_CE PTM_PTM2#define LCD_RES PTM_PTM1#define LEDPTM_PTM0/****************函数申明***************************/void LCD_int(void);void LCD_write_byte(uchar dt,uchar command); void LCD_write_char(uchar *font);void LCD_set_XY(uchar x,uchar y);void LCD_clear(void);/*1.********************************************* *****/// LCD_write_byte: 使用spi接口写数据到LCD// 输入参数:dt 写入的数据// 使用I/o口模拟SPI总线通讯发送一个字节数据到LCD显示// Command : 写数据/命令选择// Data: 2013、4、26/************************************************ ***/void LCD_write_byte(uchar dt,uchar command) { uchar i;LCD_CE=0;//使能LCDdelay_us(40);//延时30us;if(command==0)//判断发送数据还是发送命令LCD_DC=0;elseLCD_DC=1;delay_us(40);//延时30us;for(i=0;i<8;i++){if(dt&0x80)SDIN=1;// 发送高位elseSDIN=0;delay_us(40);//延时30us;SCLK=0;dt=dt<<1;SCLK=1;}LCD_CE=1;//关闭LCD}/*2.********************************************* ****/// 函数 :LCD_set_xy// 功能 :设置LCD坐标函数// 说明:x:横坐标 Y纵坐标// Date:2013/4/26/************************************************ */void LCD_set_XY(uchar x,uchar y){LCD_write_byte(0x40|y,0);//列按位或设置y坐标LCD_write_byte(0x80|x,0);//行按位或设置x坐标}/*3.********************************************/ // LCD_write_char() ;显示英文字符// 输入参数:C:显示的字符// Date:2013/4/26/********************************************/void LCD_write_char (uchar *font) {uint i;for(i=0;i<6;i++)LCD_write_byte(font[i],1);}/*4.********************************************* /// 函数:LCD_clear// 功能:清屏// 参数:无// Date:2013/4/26/************************************************ /void LCD_clear(void) {uint i;LCD_write_byte(0x0c,0);LCD_write_byte(0x80,0);for(i=0;i<504;i++) {LCD_write_byte(0,1);}}/************************************************ */// LCD_init: LCD初始化// 输入参数无// Date :2013、4、26/************************************************ /void LCD_int(void) {LCD_RES=0;delay_ms(2);LCD_RES=1;LCD_write_byte(0x21,0);//初始化LCD,功能设定使用扩充指令LCD_write_byte(0xd0,0);//设定液晶偏置电压; LCD_write_byte(0x20,0);//使用基本指令LCD_write_byte(0x0c,0);//设定显示模式,正常显示}/************************************************ ****/// 主函数:void mian// 功能:在诺基亚5110液晶屏上显示字符// 作者:wangqi// 时间;2013、4、26/************************************************ ****/void main(){unsigned charA[6]={0x00,0x7c,0x12,0x11,0x12,0x7c};unsigned charB[6]={0x00,0x7f,0x49,0x49,0x49,0x36};DDRM = 0xFF;LCD_int();LCD_clear();LED=1;delay_s(5);LED=0;while(1){LCD_set_XY(0,1); LCD_write_char(A); delay_ms(100);LCD_set_XY(10,1);LCD_write_char(A);delay_ms(100);LCD_set_XY(0,3); LCD_write_char(B); delay_ms(100);LCD_set_XY(10,4) ; LCD_write_char(B);}}。
#include <hidef.h> /* common defines and macros */#include "derivative.h" /* derivative-specific definitions */#define uchar unsigned char#define uint unsigned int#define lcd12864_date PORTB //数据口#define lcd12864_rs PTT_PTT5// PTT_PTT5; //寄存器选择输入#define lcd12864_rw PTT_PTT3 //液晶读/写控制#define lcd12864_e PTT_PTT2 //液晶使能控制#define DQ PORTA_PA0 // 定义DQ引脚为P3.3 #define DQ_HIGH() DDRA=0 //设置数据口为输入#define DQ_LOW() DDRA=1;DQ=0; //设置数据口为输出//uint temp; //温度值variable of temperature uchar A1,A2,A3;void delay2(uint i);void Init_Ds18b20(void);uchar Read_One_Byte();void Write_One_Byte(uchar dat);uint Get_Tmp();void DisplayTemp(uint temp) ;void delay(unsigned int t){uint i,j;for(i=t;i>0;i--)for(j=1000;j>0;j--);}void lcd12864_write_cmd(unsigned char command) //写指令{lcd12864_rs=0;lcd12864_rw=0;lcd12864_e=0;lcd12864_date=command;delay(5);lcd12864_e=1;lcd12864_e=0;delay(5);}void lcd12864_write_data(unsigned char data) // 写数据写入一个字符{lcd12864_rs=1;lcd12864_rw=0;lcd12864_e=0;lcd12864_date=data;delay(5);lcd12864_e=1;lcd12864_e=0;delay(5);}void lcd12864_pos(unsigned char x,unsigned char y) //确定位置{unsigned char pos;if (x==1){x=0x80;}else if (x==2){x=0x90;}else if (x==3){x=0x88;}else{x=0x98;}pos=x+y-1;lcd12864_write_cmd(pos); //显示地址}void io_init(){lcd12864_write_cmd(0x30); //基本指令操作lcd12864_write_cmd(0x0C); //显示开,关光标lcd12864_write_cmd(0x01); //清除LCD的显示内容位置计数器调整为0x00 }void lcd12864_wrtie_string( char *str) //写字符串{while(*str!='\0') //未结束{lcd12864_write_data(*str++);}}void init_LCD(){delay(20);lcd12864_write_cmd(0x30);delay(20);lcd12864_write_cmd(0x30);delay(20);lcd12864_write_cmd(0x0c);//开显示,不显示光标,且不闪烁delay(20);lcd12864_write_cmd(0x01); //清屏delay(20);lcd12864_write_cmd(0x06); //每次写入数据后地址指针加1delay(20);}/**/void Display1(){lcd12864_pos(1,2);lcd12864_wrtie_string("温度调节系统");lcd12864_pos(2,1);lcd12864_wrtie_string("菜单1:当前温度");lcd12864_pos(3,1);lcd12864_wrtie_string("菜单2:目标温度");lcd12864_pos(4,1);lcd12864_wrtie_string("菜单3:温度曲线");}void Display2(){lcd12864_pos(1,2);lcd12864_wrtie_string("温度调节系统");lcd12864_pos(2,1);lcd12864_wrtie_string("当前温度:**度");lcd12864_pos(3,1);lcd12864_wrtie_string("目标温度:**度");lcd12864_pos(4,2);lcd12864_wrtie_string(" Welcome ! ");}void main(void){delay(5);DDRB=0xff;DDRT=0xff;// io_init();init_LCD();lcd12864_pos(2,2);lcd12864_wrtie_string(" Welcome To ! ");lcd12864_pos(3,2);lcd12864_wrtie_string("温度调节系统");delay(2000);lcd12864_write_cmd(0x01); //清屏delay(20);while(1){DisplayTemp(Get_Tmp());lcd12864_pos(2,3);lcd12864_write_data(0x30+A1);lcd12864_pos(2,4);lcd12864_write_data(0x30+A2);lcd12864_pos(2,5);lcd12864_write_data(0x2e);lcd12864_pos(2,6);lcd12864_write_data(0x30+A3);/*Display1() ; */}}/*************精确延时函数*****************/ void delay2(unsigned int i){i=10*i;while(--i);}/****************************************** 此延时函数针对的是12Mhz的晶振delay(0):延时518us 误差:518-2*256=6delay(1):延时7us (原帖写"5us"是错的)delay(10):延时25us 误差:25-20=5delay(20):延时45us 误差:45-40=5delay(100):延时205us 误差:205-200=5delay(200):延时405us 误差:405-400=5*******************************************//*****************DS18B20******************/void Init_Ds18b20(void) //DS18B20初始化send reset and initialization command{char presence=1;while(presence){//DQ = 1; //DQ复位,不要也可行。
Philips5000 series Smart UltraHDTV55" class/po4K UHD 2160pHDRWireless LAN 802.11ac MIMO55PFL5703 ArraySmart 4K UltraHDTVYour favorite online content in UltraHDEnjoy true 4K streaming performance with built-in HEVC and VP9 decoders enabling 4Kstreaming on Netflix, YouTube and more services in the future. With a 4K upscaling engine,even your HD videos have never looked better.Enjoy the beauty of 4K Ultra HD•120 Perfect Motion Rate for increased pixel response times•Enjoy HD content in 4K UHD with a 4K upscaling engine•An intelligent dimming backlight for dynamic contrast•Pixel Plus UltraHD for vivid, natural, and real pictures•The beauty of 4K UltraHD TV is in savoring every detail•Expanding the possibilities of visual perceptionComplete digital TV connectivity made simple.•Wireless LAN 802.11ac with MIMO for seamless streaming of 4K•NetTV with Wireless access to online services on your TV•Wirelessly mirror the screen of smart device on your TV•Stunning BrightnessAuthentic and clear sound experience.•20 Watts RMS of rich surround sound to complement 4K images•Immersive sound with clear voice designed by sonic emotionHighlights4K UltraHD4 times the resolution of Full HD brings your viewing experience to the whole new level. Enjoy every detail and the breathtaking beauty of the pictures.High Dynamic RangeHigh Dynamic Range (HDR10) is a technology lets you experience more detail and captivating colors for an even more engaging television experience. More perceivable shades of blacks, whites and all other colors. This boils down to greater perceived brightness and contrast with darker shadows creating a breathtaking image.Pixel Plus Ultra HDExperience Ultra-HD sharpness from Philips. Now you can enjoy your favorite action filmsand sporting events in stunning 4K Ultra HD resolution. And whether you stream online or watch a DVD, Philips' Pixel Plus Ultra-HD Engine delivers sharper images with brighter whites and blacker blacks.Bright ProBrightPro backlith boosts brighter areas of the image by up to twice as much as a regular LED backlight. Bright Pro enables to display exceptional brightness and contrast even in brightly lit rooms. Video scenes which feature bright light sources such as sunlight, fireworks, police lights, flashlights, etc. look more realistic and lifelike.Macro dimmingUsing a proprietary video processing algorithm which measures average luminance level of each video frame, Philips' Macro Dimming intelligent backlight dims the backlight to match every video frame to ensure you have a strain-free life-like viewing experience with bright whites, vivid colors and dark blacks.120 Perfect Motion Rate120 Perfect Motion Rate (PMR) creates extreme motion sharpness for clear and vibrant images in fast action movies. The new Philips PMRstandard reduces response time of the HDTV to produce faster picture transitions and reduces motion artifacts.Net TVPhilips NetTV is built for streaming. With a simple push of a button, gain instant access to popular streaming applications such as Netflix, Vudu, YouTube, all within a clutter-free, easy to use interface. Visit the App Store to download additional content from our extensive entertainment library, with entertainmentoptions to suit everyone. Surf the web on your big screen TV, all without the need ofconnecting a computer. Enjoy smooth streaming of up-to 4K content with the powerful, built-inWireless 802.11ac MIMO Dual-Band chipset.SpecificationsPicture/Display•Aspect ratio: Widescreen(16:9)•Contrast ratio (typical): 1000:1•Response time (typical): 16 ms•Diagonal screen size (inch): 55 inch•Diagonal screen size (metric): 139.7 cm•Panel resolution: 3840x2160p•Picture enhancement: Pixel Plus UltraHD, Black stretch, Digital Noise Reduction, MPEG artifact reduction, 120 PMR, Color Enhancement, Dynamic contrast, Gamma, Macro Dimming•Visible screen diagonal (inch): 54.6 inch •Display screen type: LED UltraHD Display •Viewing angle: 178º (H) / 178º (V)Supported Display Resolution •Computer formats: 640 x 480, 60Hz, 720 x 480, 60Hz, 800 x 600, 60Hz, 1024 x 768, 60Hz, 1280 x 768, 60Hz, 1280 x 1024, 60Hz, 1360 x 768, 60Hz, 1440 x 900, 60 Hz, 1920 x 1080, 60Hz, 1680 x 1050, 60Hz, 1400 x 1050, 60Hz, 3840 x 2160, 60Hz, 4096 x 2160, 60Hz•Video formats: 480i, 60Hz, 480p, 60Hz, 720p, 60Hz, 1080i, 60Hz, 1080p, 24,30,60Hz, 2160p, 24, 30,60HzSound•Equalizer: 5-bands•Output power (RMS): 2 x 10W•Sound System: Sonic Emotion Premium, Stereo, SAP, Dolby AudioLoudspeakers•Built-in speakers: 2Convenience•Child Protection: Child Lock+Parental Control •Clock: Sleep Timer•Ease of Use: AutoPicture, AutoSound, Settings assistant Wizard, Auto Volume Leveling •Remote Control: TV•Screen Format Adjustments: 4:3, Movie expand 14:9, Movie expand 16:9, Super Zoom, Widescreen, unscaled (1080p dot by dot), Full, Automatic •Ease of Installation: Autostore•Multimedia: auto slideshow, USB media browserMultimedia Applications•Multimedia connections: USB Storage Device•Playback Formats: MP3, JPEG Still pictures, MPEG1,MPEG2, H.264/MPEG-4 AVC, H.265/HEVC, AAC,WAVE, AC3, MPEG4Tuner/Reception/Transmission•Aerial Input: 75 ohm F-type•TV system: ATSC, NTSC•Video Playback: NTSC•Tuner bands: UHF, VHFConnectivity•Other connections: Ethernet, Headphone out,Wireless LAN 802.11ac MIMO•EasyLink (HDMI-CEC): One touch play, Powerstatus, System info (menu language), Remote controlpass-through, System audio control, System standby•Audio Output - Digital: Optical (TOSLINK)•AV 1: Shared audio L/R in, CVBS/YPbPr•USB: USB•HDMI1:Shared audio L/R in,HDMI•HDMI 2: Shared audio L/R in, HDMI (Audio ReturnChannel)•HDMI 3: HDMI, Shared audio L/R inPower•Mains power: 120V/60Hz•Power consumption: 135 W•Standby power consumption: < 0.5W•Ambient temperature: 5°C to 40°C (41°F to 104°F)Dimensions•Product weight (lb): 24.0 lb•Box height (inch): 32.0 inch•Box width (inch): 55.7 inch•Box depth (inch): 6.4 inch•Wall mount compatible: 300 x 300 mm•Set Width (inch): 48.7 inch•Set Height (inch): 28.2 inch•Set Depth (inch): 3.7 inch•Set width (with stand) (inch): 48.7 inch•Set depth (with stand) (inch): 8.9 inch•Set height (with stand) (inch): 30.1 inch•Product weight (+stand) (lb): 24.5 lb•Weight incl. Packaging (lb): 33.7 lbAccessories•Included accessories: Table top stand, Quick startguide, User Manual, Remote Control, Batteries forremote control, Screws•Power cord: 59.05 inchNetwork Services•NetTV Apps: Netflix, Vudu, Vewd browser,YouTube, Pandora, Vewd app store, Youtube TV,Showtime Streaming•Network Features: Home Network, WirelessScreencastingIssue date 2023-12-11 Version: 2.1.1UPC: 6 09585 25199 1© 2023 Koninklijke Philips N.V.All Rights reserved.Specifications are subject to change without notice. Trademarks are the property of Koninklijke Philips N.V. or their respective owners.。
nokia5110课程设计一、课程目标知识目标:1. 让学生掌握Nokia 5110液晶显示屏的基本原理和操作方法;2. 了解Nokia 5110在图形显示和文字显示方面的应用;3. 学会运用编程语言(如:MicroPython)对Nokia 5110进行控制和编程。
技能目标:1. 能够独立完成Nokia 5110的硬件连接和初始化;2. 掌握使用编程语言对Nokia 5110显示内容进行设计和编写;3. 能够运用所学的知识解决实际问题,如制作简单的电子时钟、小游戏等。
情感态度价值观目标:1. 培养学生对电子产品的兴趣,激发他们探索未知领域的热情;2. 培养学生的团队合作精神,学会与他人共同解决问题;3. 增强学生的环保意识,让他们了解电子废弃物的回收和处理方法。
课程性质:本课程为实践性较强的课程,结合理论讲解和实际操作,让学生在动手实践中掌握知识。
学生特点:六年级学生具有一定的编程基础和电子知识,好奇心强,喜欢动手实践。
教学要求:教师需关注学生的个体差异,因材施教,鼓励学生积极参与,注重培养学生的实践能力和创新精神。
通过本课程的学习,使学生能够将所学知识运用到实际生活中,提高他们的综合素质。
二、教学内容1. Nokia 5110液晶显示屏原理介绍:包括显示屏的硬件结构、工作原理和显示原理。
- 理解显示屏的像素点阵和色彩显示方式。
- 掌握显示屏的初始化和基本操作。
2. 硬件连接与编程环境搭建:- 学习如何将Nokia 5110与微控制器(如Arduino或MicroPython板)连接。
- 搭建编程环境,熟悉相关开发工具的使用。
3. 图形和文字显示编程:- 学习使用编程语言进行图形绘制和文字显示。
- 掌握如何清屏、绘制点、线、矩形和圆形等基本图形。
- 实现文字的滚动显示和特效。
4. 实际应用案例分析与制作:- 分析并制作简单的电子时钟,学习时间管理和中断处理。
- 设计并实现一个简易小游戏,如贪吃蛇或俄罗斯方块,提高逻辑思维能力。
单片机原理及应用课程设计电气工程学院一、课程设计任务书1.课程设计项目诺基亚5110液晶显示器应用。
2.设计内容1)设计诺基亚5110液晶显示器应用的总体设计方案;2)以MCS-51系列单片机为核心器件和诺基亚5110液晶显示器组成液晶显示硬件系统;3)系统程序编制与调试;4)电路系统的综合调试;5)撰写课程设计论文;6)完成课程设计论文答辩。
3.设计要求1)以STC89C51单片机为控制核心,对诺基亚5110液晶显示器进行控制。
编程使得在LCD显示器上显示字符,如多行滚动显示:“吉林工程技术师范学院”“电气工程学院”。
等字符,还可以显示别的文字;2)单片机课程设计题目的硬件电路、程序由学生自行设计完成。
3)液晶显示器上要显示出设计人的班级,组长的学号等信息。
4.设计进度(2011年6月13日至2011年6月24日)时间设计内容第1-2天查阅资料,方案比较、设计与论证,理论分析与计算第3-5天硬件电路调试第6-8天系统调试第9-10天书写报告、答辩5.设计地点新实验楼323微机实验室二.参考资料[1]李广弟,朱月秀,王秀山编著.单片机基础. 北京:北京航空航天大学出版社,2001[2] 何立民编著.MCS-51系列单片机应用系统设计系统配置与接口技术.北京:北京航空航天大学出版社,1999[3] 蔡美琴等编著.MCS-51 单片机系统及应用.北京:高等教育出版社.1992二、评语及成绩成绩:指导教师:单片机原理及应用课程设计班级:自动化0845 姓名:刘旭阳学号: 11 号指导教师:方健撰写日期: 2011年6月23日Nokia LCD多功能显示摘要液晶显示器件[1](LCD)是一种高新技术的基础元器件。
它利用液晶的各种电光效应,把液晶对电场、磁场、光线和温度等外界条件的变化在一定条件下转换为可视信号而制成的显示器。
液晶显示器具有低电压、低功耗的特点,与CMOS集成电路相匹配.电池作为电源,适合于便携式显示。
Push the appropriate edge of the adjustment switch to move the mirror right,left,up,or down.When you finish,move theselector switch to the center (off)position.This turns off the adjustment switch so you can’t move a mirror out of position by accidentally bumping the switch.Keep the inside and outside mirrors clean and adjusted for best visibility.Be sure to adjust the mirrors before you start driving.The inside mirror has day and night positions.The night position reduces glare from headlights behind you.Flip the tab on the bottom edge of the mirror to select the day or night position.3.4.Mirrors114The outside mirrors are heated to re-move fog and frost.With the ignition switch ON (II),turn on the heaters by pressing the button.The light in the button comes on as a reminder.Press the button again to turn the heaters off.Sitting on or getting under the table,or putting heavy objects on the table,may damage or deform it.Do not put any items on the table while driving.They may fall down or fly around when you go around corners or brake hard.On EX and EX-L models in CanadaMirrors,Center Table115The center table has a beverage holder for the front passengers.To use the front beverage holder,pull on the handle.Push the holder all the way in to close it.Only on vehicles with an automatic transmissionBeverage Holders116CONTINUEDTo remove the table,pull up thecarpet.Lift and pull on the handle toslide the table out.Be careful when you are using thebeverage holder.A spilled liquid thatis very hot can scald you or yourpassengers.Spilled liquids can alsodamage the upholstery,carpeting,and electrical components in theinterior.Beverage Holders,Built-in Table117Unfold the legs.Lock them in place by pushing on the middle of the locking arms.Make sure all four are locked.To put the table back in place,hold on to the handle and put the projection on the table into the hole in the cargo area floor.Built-in Table118Be sure to lock the legs of the table.Do not stand on the table.Do not put a weight of over 44lbs (20kg)on the table.Hot items such as pots,pans,or kettles should not be placed directly on the table top.A storage box is located under the front passenger’s seat.To use it,pull upward slightly on the front center edge of the box and slide it out.CONTINUEDStorage BoxBuilt-in Table,Center Pocket,Storage BoxUsing the Built-in Table119To remove the box for cleaning,pull upward on the front center edge to disengage the locking tabs under the seat bottom,then pull the box out.The coin tray is located on the center dashboard.To open the coin tray,pull on the bottom edge.Close it with a firm push.The light in the tray comes on when the instrument panel lights are on.Only on vehicles with a manual transmissionCoin TrayStorage Box,Driver’s Pocket,Coin Tray120。