Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 13 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
13
Dung lượng
683,24 KB
Nội dung
HO CHI MINH UNIVERSITY OF TECHNOLOGY FACULTY OF ELECTRICAL & ELECTRONICS ENGINEERING DEPARTMENT OF CONTROL ENGINEERING & AUTOMATION DIGITAL SIGNAL PROCESSING REPORT LAB VIETNAMESE TEXT DISPLAY PROFESSOR: LÊ TIÊẾN THƯỜNG CLASS: TT01 -GROUP -SEMESTER 221 Student’s name Ph m Nguyễễn Trung Tín Student’s ID 2051203 Trầần Quốốc Bảo 1951119 HO CHI MINH-2022 0 CONTENTS I Abstract II Introduction III Code ( program) and comments IV Result V Conclusion 0 I Abstract The aim of this experiment is learning about how to communicate with the TMS320C5515 kit, how to use Charset editor software to get the code of each character Study the sample code to learn how to program the code for the kit's screen to display the required requirements After this experiment, we better understand and how to program the kit to explore more advanced features of the kit II Introduction - Introducing oled LCD of TMS320C5515/35 and implementing the display on oled LCD - LCD of TMS320C5515/35 is a 96x16 OLED display screen which has 96 columns and 16 rows The display screen is divided into two regions, so actually we have two 96x8 to display a text - For this project, to illustrate each character, we need 5x8 pixels To keep the space between characters, we use only 4x7 pixels for designing Each led in LCD is activated by setting to bit The picture below will clearly show the rules of writing on LCD Fig How to define a character in LCD - In project sample lcd-osd9616, to print out a character, they implement a function called printLetter Int16 printLetter(Uint16 l1,Uint16 l2,Uint16 l3,Uint16 l4) { OSD9616_send(0x40,l1); 0 OSD9616_send(0x40,l2); OSD9616_send(0x40,l3); OSD9616_send(0x40,l4); OSD9616_send(0x40,0x00); return 0; } Where l1 consider as A0, l2 as A1, l3 as A2, l4 as A3 III Code (program) and comments /* * Copyright 2010 by Spectrum Digital Incorporated * All rights reserved Property of Spectrum Digital Incorporated */ /* * OSD9616 OLED Test * */ #include"usbstk5515.h" #include"usbstk5515_i2c.h" #include"usbstk5515_gpio.h" #include"lcd.h" #define OSD9616_I2C_ADDR 0x3C // OSD9616 I2C address /* * * * * Int16 OSD9616_send( Uint16 comdat, Uint16 data ) * * * * Sends bytes of data to the OSD9616 * * * * */ Int16 OSD9616_send( Uint16 comdat, Uint16 data ) { Uint8 cmd[2]; cmd[0] = comdat & 0x00FF; // Specifies whether data is Command or Data cmd[1] = data; // Command / Data return USBSTK5515_I2C_write( OSD9616_I2C_ADDR, cmd, ); } /* * * * * Int16 OSD9616_multiSend( Uint16 comdat, Uint16 data ) * 0 * * Sends multiple bytes of data to the OSD9616 * * -Int16 OSD9616_multiSend( Uint8* data, Uint16 len ) { Uint16 x; Uint8 cmd[10]; for(x=0;x