Digital Signal Processing Lab No. 2 Vietnamese Text Display.pdf

24 0 0
Digital Signal Processing Lab No. 2  Vietnamese Text Display.pdf

Đ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

lOMoARcPSD|38590726 HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY FACULTY OF ELECTRICAL AND ELECTRONIC ENGINEERING -o0o - DIGITAL SIGNAL PROCESSING LAB No 2: Vietnamese Text Display Lecturer: Prof Dr LE TIEN THUONG 2051131 Course ID: EE2016 2051130 TT06 Class: 5 Group: Phan Van Nguyen Khanh Member: Nguyen Dinh Khanh HO CHI MINH CITY, NOVEMBER 30th, 2022 Downloaded by BINH NGUYEN (tailieuso.15@gmail.com) lOMoARcPSD|38590726 Table of Contents I ABSTRACT 1 II INTRODUCTION 1 III PROBLEM 1 IV APPROACHES 2 V PROCEDURES 3 VI RESULTS & CODES 4 VII CONCLUSION 16 VIII REFERENCES 16 Downloaded by BINH NGUYEN (tailieuso.15@gmail.com) lOMoARcPSD|38590726 I ABSTRACT This report would like to introduce module of TMS320C5515/35 eZDSPTM USB Stick Development Tool and briefly outline the process of implementing the display of an desired Vietnamse texts on LCD II INTRODUCTION LCD of TMS320C5515/35 is a 96x16 OLED display screen which has 96 columns and 16 rows of pixels The display screen is divided into two rows (in the presented codes, pages or lines) , so actually we have two 96x8 pages to display a text For this project, to illustrate each character, we need 5x8 pixels To keep the space between characters, we use only most right 4x7 pixels for deriving the sets of desired characters Each led in LCD is activated by setting to bit HIGH that passing to sets of DATA rows Therefore, an array of 4 HEX codes are recommended to illustrate each proper character The picture below will clearly show the rules of writing on LCD III PROBLEM From example in lcd-osd9616, you will rewrite your required text: “Trường Đại Học Bách Khoa TPHCM_Chương Trình Tiên Tiến_HK1_2022_23_ Thí nghiệm XỬ LÝ SỐ TÍN HIỆU” - Make sure the clarity of your characters 1 Downloaded by BINH NGUYEN (tailieuso.15@gmail.com) lOMoARcPSD|38590726 Due to the limitation of memory, the screen only displays 128 columns for each page Find a solution for showing full text in one-time display Capture the result and write a report IV APPROACHES In this project, all deriving codes are based on sample source files in lcd- osd9616, in oled_test.c In order to satisfy the tasks: Firstly, to print out a character, we mainly used the pre-defined function in C files, Int16 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 Noticably,writing the character backwardly is MUST due to its physically on- chip memory operations printLetter(0x40,0x70,0x48,0x30); // a printLetter(0x00,0x78,0x48,0x78); // o printLetter(0x00,0x60,0x20,0x78); // h printLetter(0x41,0x36,0x08,0x7f); // K Another point is that the pointer to writing address in SDRAM are automatically increased so no further action to cursor is needed Secondly, to make an on-screen running display, some following codes must be called, with the efforts of sending commands to LCD hardware /* Set vertical and horizontal scrolling */ cmd[0] = 0x00; cmd[1] = 0x29; // Vertical and Right Horizontal Scroll cmd[2] = 0x00; // Dummy byte cmd[3] = 0x00; // Define start page address cmd[4] = 0x01; // Set time interval between each scroll step cmd[5] = 0x01; // Define end page address cmd[6] = 0x01; // Vertical scrolling offset OSD9616_multiSend( cmd, 7 ); OSD9616_send(0x00,0x2f); /* Keep first 8 rows from vertical scrolling */ cmd[0] = 0x00; cmd[1] = 0xa3; // Set Vertical Scroll Area cmd[2] = 0x08; // Set No of rows in top fixed area cmd[3] = 0x08; // Set No of rows in scroll area OSD9616_multiSend( cmd, 4 ); 2 Downloaded by BINH NGUYEN (tailieuso.15@gmail.com) lOMoARcPSD|38590726 Eventually, to repair the limitation of SDRAM, our solutions are to seperate desired texts into various pieces and display different parts gradually on screen as we reset the pages An USBSTK5515_waitusec( Uint32 usec ) system library functions are necessary as the system-clock is so fast that our human’s eyes are able to oberserve the LCD screen’s change USBSTK5515_waitusec( 7000000 ); /*Re-fill page 0 */ OSD9616_send(0x00,0x00); // Set low column address OSD9616_send(0x00,0x10); // Set high column address OSD9616_send(0x00,0xb0+0); // Set page for page 0 to page 5 for(i=0;i

Ngày đăng: 08/03/2024, 16:38

Từ khóa liên quan

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

Tài liệu liên quan