DIGITAL SIGNAL PROCESSING REPORT LAB 2 VIETNAMESE TEXT DISPLAY

13 3 0
DIGITAL SIGNAL PROCESSING REPORT LAB 2 VIETNAMESE TEXT DISPLAY

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

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 Trầần Quốốc Bảo HO CHI MINH-2022 CONTENTS I Abstract II Introduction BI Code ( program) and comments IV Result V Conclusion 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 AI 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); 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" // OSD9616 I2C address #define OSD9616_I2C_ADDR 0x3C /* * * * 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 // Command / Data cmd[1] = data; return USBSTK5515_I2C_write( OSD9616_I2C_ADDR, cmd, ); } /* * * * * Int16 OSD9616_multiSend( Uint16 comdat, Uint16 data ) * * * * * Sends multiple bytes of data to the OSD9616 * * * */ { Uint16 x; Uint8 cmd[10]; // Command / Data for(x=0;x

Ngày đăng: 20/12/2022, 11:04

Tài liệu cùng người dùng

Tài liệu liên quan