嵌入式软件程序设计实验报告_第1页
嵌入式软件程序设计实验报告_第2页
嵌入式软件程序设计实验报告_第3页
嵌入式软件程序设计实验报告_第4页
嵌入式软件程序设计实验报告_第5页
已阅读5页,还剩5页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

rapid development of the market economy environment to explore public servants duty consumption monetization reform has provided a good foundation. The socialization of rear service work has been launched, and rapid progress in some places and departments, duty consumption monetization of carrier and approach to management has been resolved. Third, in recent years, exploring the monetization of duty consumption has made some progress, have gained some experience and can provide reference to the comprehensive reform of the system of public servants duty consumption further. Implementing an honest canteen, standardize official entertaining management; enhancing the telecommunication expense management; elimination of County travel and countryside subsidies; research village officials capitalization management of corporate spending, and so on. Finally, group .18 session to be held in Beijing from November 9, 2013 to 12th. 35 years ago blew the third plenary session of the reform and opening up in the spring breeze, changed, affect the world; today, 35 years later, in the eyes of the nation and the world expect, again to reform mark China, ushered in the 18 session. XI General Secretary pointed out that Chinas reform has entered a crucial period and the Sham Shui Po District, must be based on greater political courage and wisdom, lose no time in deepening reform in important fields. Dares to crack a hard nut, dares to question the Rapids, which dares to break the barrier of ideas, and dare to benefit cure barriers. Deepening reform and opening up is on schedule to achieve institutional safeguards of the moderately well-off. Under the five in one the General layout of socialist modernization requirements, 18 session of the decision was a five in one and the improvement of overall scheme of reform, will promote an integrated and coordinated economic, political, cultural, social and ecological civilization construction of the five reforms and the partys construction in the area of institutional reform. The five in one programme is to achieve a comprehensive reform of institutional guarantees for objectives of build a well-off society, the smooth progress of the construction of a well-off society and reform the objectives of the programme. One, holding time and place importance on November 9, 2013 to the 18 session of the 12th Beijing since 1978, 35, have been 7 plenary session, each time on major issues of political and economic life of the country has made important deployment. In accordance with PRC political practice, often at every session of the CPC Central Committee in a plenary session was held immediately after the partys Congress, on the theme personnel, discussing election Centrals top leaders, such as the election of the Standing Committee of the political Bureau, through the Central Committee members, decisions, such as members of the Central Military Commission. The second plenary session, is held in two sessions before the general election, mainly to discuss a new State personnel issues. But by the third 彩色屏幕测试实验 班级 姓名 学号嵌入式软件程序设计实验报告实验题目: 彩色屏幕测试实验班 级: 学 号: 姓 名: 一、实验项目:彩色屏幕测试实验二、实验时间: 2011年11月20号三、实验地点: 2号教学区106机房四、实验目的:1、了解彩色LCD显示屏的工作原理和接口 2、掌握arm与LCD显示屏的接口原理 3、掌握LCD显示字符,色彩及绘制简单图形的编程五、实验要求:1、实验前认真预习实验指导书,按要求在纸上编写好程序。 2、不要用手直接摸触实验设备印刷板上的线路引线和集成块的引脚,特别是冬天,以防人体所带静电损坏芯片。六、实验仪器:嵌入式教学实验系统,嵌入式操作软件平台,计算机,直流稳压电源,仿真器,接口模块,示波器7、 实验编程代码void lcd_init(void) rDITHMODE = 0x12210;rDP1_2 = 0xa5a5; rDP4_7 = 0xba5da65;rDP3_5 = 0xa5a5f;rDP2_3 = 0xd6b;rDP5_7 = 0xeb7b5ed;rDP3_4 = 0x7dbe;rDP4_5 = 0x7ebdf;rDP6_7 = 0x7fdfbfe;/ disable,8B_SNGL_SCAN,WDLY=16clk,WLH=16clk,rLCDCON1 = (0x0)|(25)|(MVAL_USED7)|(0x38)|(0x310)|(CLKVAL_COLOR12);/ LINEBLANK=10 (without any calculation) rLCDCON2 = (LINEVAL)|(HOZVAL_COLOR10)|(1021); rLCDCON3 = 0;/ 256-color, LCDBANK, LCDBASEUrLCDSADDR1 = (0x322)1);rLCDSADDR2 = M5D(unsigned int)g_unLcdActiveBuffer+(SCR_XSIZE*LCD_YSIZE)1) | (MVAL21);rLCDSADDR3 = (LCD_XSIZE/2) | ( (SCR_XSIZE-LCD_XSIZE)/2)9 );/The following value has to be changed for better display.rREDLUT =0xfdb96420; / 1111 1101 1011 1001 0110 0100 0010 0000rGREENLUT=0xfdb96420; / 1111 1101 1011 1001 0110 0100 0010 0000rBLUELUT =0xfb40; / 1111 1011 0100 0000rLCDCON1=(0x1)|(25)|(MVAL_USED7)|(0x38)|(0x310)|(CLKVAL_COLOR12);rPDATE=rPDATE&0x0e;lcd_clr();void lcd_clr(void)UINT32T i;UINT32T *pDisp = (UINT32T*)g_unLcdActiveBuffer;for (i = 0; i (SCR_XSIZE * SCR_YSIZE / 4); i+)*pDisp+ = ALLWHITE;#ifdef LCD_STN256_COLORvoid lcd_clr_rect(UINT16T usLeft, UINT16T usTop, UINT16T usRight, UINT16T usBottom, UINT8T ucColor)UINT32T i, j;UINT8T *pDisp = (UINT8T*)g_unLcdActiveBuffer;for(i=usTop;i=usBottom;i+)for(j=usLeft;j=usRight;j+)LCD_PutPixel(j, i, ucColor);#endif#ifdef LCD_STN256_GRAYvoid lcd_clr_rect(UINT16T usLeft, UINT16T usTop, UINT16T usRight, UINT16T usBottom, UINT8T ucColor)UINT16T i=0;UINT16T k,l;UINT16T m;UINT32T ulColor = (ucColor 28) | (ucColor 24) | (ucColor 20) | (ucColor 16) | (ucColor 12) | (ucColor 8) | (ucColor 4) | ucColor;if(usRight-usLeft)=8)for(i=usTop;i=usBottom;i+)for(m=usLeft;m=usRight;m+)LCD_PutPixel(m, i, ucColor);return;if(usLeft%8)=0)k=usLeft;elsek=(usLeft/8)*8+8;if( usRight%8)=0)l= usRight;elsel=( usRight/8)*8;for(i=usTop;i=usBottom;i+)for(m=usLeft;m=(k-1);m+)LCD_PutPixel(m, i, ucColor);for(m=k;ml;m+=8)(*(UINT32T*)(g_unLcdActiveBuffer + i * SCR_XSIZE / 2 + m / 2) = ulColor;for(m=l;m= usDy & (usX0 usX1) | (usDy usDx) & (usY0 usY1) ) GUISWAP(usX1, usX0); GUISWAP(usY1, usY0); y_sign = (usY1 - usY0) / usDy; x_sign = (usX1 - usX0) / usDx; if( usDx = usDy ) for( wCurx = usX0, wCury = usY0, wNextx = usX1, wNexty = usY1, decision = (usDx 1); wCurx = usDx ) decision -= usDx; wCury += y_sign; wNexty -= y_sign; for( wpy = wCury - usWidth / 2; wpy = wCury + usWidth / 2; wpy+ ) LCD_PutPixel(wCurx, wpy, ucColor); for( wpy = wNexty - usWidth / 2; wpy 1); wCury = usDy ) decision -= usDy; wCurx += x_sign; wNextx -= x_sign; for( wpx = wCurx - usWidth / 2; wpx = wCurx + usWidth / 2; wpx+ ) LCD_PutPixel(wpx, wCury, ucColor); for( wpx = wNextx - usWidth / 2; wpx = wNextx + usWidth / 2; wpx+ ) LCD_PutPixel(wpx, wNexty, ucColor); /* name:lcd_draw_hline()* func:Draw horizontal line with appointed color* para:usX0,usY0 - lines start point coordinate*usX1 - lines end point X-coordinate*ucColor - appointed color value*usWidth - lines width* ret:none* modify:* comment:*/void lcd_draw_hline(UINT16T usX0, UINT16T usX1, UINT16T usY0, UINT8T ucColor, UINT16T usWidth)UINT16T usLen; if( usX1 0 ) usLen = usX1 - usX0 + 1; while( (usLen-) 0 ) LCD_PutPixel(usX0 + usLen, usY0, ucColor); usY0+; /* name:lcd_draw_vline()* func:Draw vertical line with appointed color* para:usX0,usY0 - lines start point coordinate*usY1 - lines end point Y-coordinate*ucColor - appointed color value*usWidth - lines width* ret:none* modify:* comment:*/void lcd_draw_vline (UINT16T usY0, UINT16T usY1, UINT16T usX0, UINT8T ucColor, UINT16T usWidth)UINT16T usLen; if( usY1 0 ) usLen = usY1 - usY0 + 1; while( (usLen-) 0 ) LCD_PutPixel(usX0, usY0 + usLen, ucColor); usX0+; 8、 实验结果展示采购的食品原料及成品必须色、香、味、形正常,不采购腐败、变质、有毒有害、霉变生虫、过期、混有异物或感官性状异常及其他不符合卫生标准要求的食品。plenary session, each session of the Central Committee of national institutions and personnel problems have been arranged, you can concentrate on national development and reforms. Previous plenary session is often branded with a central leading collective, often by looking at the third plenum of the initiative to found the current central leadership collective governance characteristics. From the analysis of the process of economic reform in China, plenary session, 12 session, 14, 16 plenary session have programmatic meaning, respectively, marking the four stages of Chinas economic reform, and that the start-up phase of reform, reform, construction phase and perfecting the Socialist market economy framework stage of socialist market economy. Previous plenary session topics proposed to the third plenary session of taking class struggle as the key link, shifted to socialist modernization; 12 session marked the change from rural to urban, established with public ownership as the Foundation of a planned commodity economy; 13 session at a time when both the old and the new system change, governance and rectify the economic order; 14 . Fair and efficient and authoritative Socialist judicial system, safeguard the peoples interests. Legal authority to uphold the Constitution, deepening the reform of administrative law enforcement, ensure that the right to exercise judicial power independently and impartially according to law the prosecution, perfecting the running mechanism of judicial power, improve the system of judicial protection of human rights. Plenary session, Affairs the right to adhere to the system, and let the people authority to let the power run in the Sun, is shut up in a cage of the system power policy. Decision Science, implementation should be constructed strong, supervise the running of powerful system, improve the system of punishing and preventing corruption, promoting political integrity, and strive to achieve cadres honest and Government integrity, clean politics. To form a

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论