1. Trang chủ
  2. » Công Nghệ Thông Tin

Hệ thống nhúng - Chương 8 pot

20 175 0

Đ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

Thông tin cơ bản

Định dạng
Số trang 20
Dung lượng 1,02 MB

Nội dung

1 Hệ thống nhúng Thạc sĩ Lê Mạnh Hải Embedded Systems 2 Lesson 8 :THE DARK SCREEN Motivation: • Generating the composite video signal • Using the Output Compare modules • Memory allocation • Image serialization • Building the video module • Testing the video generator • Measuring performance • The dark screen • A Test Pattern 3 Flight plan • In this lesson we will consider techniques to interface to a TV screen or, for that matter, to any display that can accept a standard composite video signal. • It will be a good excuse to use new features of several peripheral modules of the PIC24 and review new programming techniques. • Our first project objective will be to get a nice dark screen (a well-synchronized video frame), but we will soon fill it up with several entertaining graphical applications. 4 Preflight checklist • MPLAB® IDE, • MPLAB C30 compiler and the • MPLAB SIM simulator, • Explorer16 demonstration board and the • MPLAB ICD2 In Circuit Debugger 5 The flight • There are many different formats and standards today in use in the world of video, but perhaps the oldest and most common one is the so-called “composite” video format. • This is what was originally used by the very first TV sets to appear in the consumer market, and today it represents the minimum common denominator of every video display, whether a modern high-definition flat-screen TV of the latest generation, a DVD player, or a VHS tape recorder. 6 Video image • All video devices are based on the same basic concept: the image is “painted” one line at a time, starting from the top left corner of the screen and moving horizontally to the right edge, then quickly jumping back to the left edge at a lower position and painting a second line, and so on and on, in a zig-zag motion, until the entire screen has been scanned. • Then the process repeats and the entire image is refreshed fast enough for our eyes to be tricked into believing that the entire image is present at the same time, and if there is motion, it is fluid and continuous. 7 8 9 Basic features • the horizontal synchronization pulse, used by the display to identify the beginning of each line. • the so-called back porch, that creates a dark frame around the image. • the actual line luminosity signal; the higher the voltage, the more luminous the point. • the so-called front porch, producing the right edge of the image. 10 • The color information is transmitted separately, modulated on a high frequency subcarrier. • The three main standards differ significantly in the way they encode the color information but, for our purposes, it will be easy to ignore the problem altogether to obtain a simple black-and-white display output. . 1 Hệ thống nhúng Thạc sĩ Lê Mạnh Hải Embedded Systems 2 Lesson 8 :THE DARK SCREEN Motivation: • Generating the composite video signal • Using. 211) • Image serialization (page 212) • Building the video module (pg. 21 4-2 17) • Testing the video generator (pg. 21 8- 2 20) . it is fluid and continuous. 7 8 9 Basic features • the horizontal synchronization pulse, used by the display to identify the beginning of each line. • the so-called back porch, that creates

Ngày đăng: 01/08/2014, 21:20

w