AN1368
Developing Embedded Graphics Applications using PIC ?
Microcontrollers with Integrated Graphics Controller
Author:
Pradeep Budagutta
FIGURE 1:
RED + GREEN = YELLOW
Microchip Technology Inc.
INTRODUCTION
Graphic-enabled devices are used extensively in daily
life. They are found everywhere, including indoor
products, such as telephones, calculators, pagers, MP3
players, digital electric meters, smart remote and UPS
displays. They are also used in outdoor products, such
as traffic signals, taxi meters, bus displays, advertise-
ment boards, etc. The list is virtually endless. A current
trend is that many existing devices are becoming
graphic-enabled because it is economically feasible,
easy to use and the latest in technology.
This application note is intended to help engineers who
are designing their first graphic application. It describes
the basic definitions and jargons of graphics applications
and it helps the engineer to understand the theory,
necessary decision factors, hardware considerations,
available microcontrollers and development tools. Soft-
ware libraries and support are available from Microchip
with further literature references for advanced users.
BASICS OF COLOR SCIENCE
In its purest form, color is associated with the
wavelength of light, within human visible range, from
about 400 nm (Violet) to 700 nm (Red), with Yellow
centered at about 575 nm. That means, if a light of
575 nm wavelength is incident on human eyes, it is
perceived as a Yellow light. We have also learned that
colors can be derived from three basic colors: Red,
Blue and Green. For example, Yellow can be derived
by mixing Red and Green lights. Is this true? The
answer is both no and yes. It is no because mixing Red
and Green lights will constitute a mixture of lights with
wavelengths of 700 nm and 560 nm, and there is not a
wavelength representing Yellow. The answer is yes
because human eyes perceive this mixture as a Yellow
colored light. Therefore, we see the mixture of Red and
Green lights as a single Yellow light, as shown in
Figure 1 . This is due to the color recognition properties
of the human eye.
? 2011 Microchip Technology Inc.
Human eyes perceive the light as a Yellow colored light
instead of separate Red and Green colored lights. This
color recognition property of the human eye is the
foundation of the RGB (Red, Green and Blue) model.
The model states that the human eye can be made to
perceive different colors by mixing appropriate
proportions (intensities) of Red, Blue and Green colors.
Therefore, a ‘colored’ light can be formed by mixing
different proportions of Red, Green and Blue colors.
? Mixing the same proportions of three RGB colors
gives a Gray color
? Mixing a zero amount of all RGB colors gives a
Black color
? Mixing a maximum amount of all RGB colors
gives a White color
Varying the intensity of light, while keeping the same
proportion of RGB, gives different shades of Gray,
which is also known as ‘Grayscale’. Using a single
color (a fixed proportion of RGB) throughout an appli-
cation gives a ‘Monochrome’ application, meaning a
single color.
Since everything is represented in bits and bytes in a
digital system, then how can actual colors be repre-
sented as a number in the form of bits or bytes? Each
of these three basic colors (RGB) can represent a byte
for a number ranging from 0 to 255. Therefore, with
3 bytes, we can represent 16 million colors (2 24 ) and
this is termed as “True Color”. It is also common to use
16 bits to represent colors. With 16 bits, we can
represent 64K colors (2 16 ), which is sufficient for many
graphics applications.
DS01368A-page 1
相关PDF资料
AC164130 BOARD DAUGHT PICTL PLUS ECAN/LIN
AC164131 BOARD DAUGHTER USB PICTAIL PLUS
AC164132 BOARD DAUGHTER PICTAIL ETHERNET
AC164141 BOARD SMART CARD / SIM CARD
AC164142 BOARD DAUGHTER PWR LINE MODEM
AC164144 LLC PICTAIL PLUS DAUGHTR BRD
AC164145 BOARD DAUGHTER PWR LINE MODEM
AC243005-1 KIT MEMORY SERIAL SUPERFLASH 1
相关代理商/技术参数
AC164128 功能描述:子卡和OEM板 dsPICDEM Motor Cntrl PICtail Plus RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
AC164129 功能描述:子卡和OEM板 Audio PICtail Plus Daughter Board RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
AC164130 功能描述:网络开发工具 ECAN/LIN PICtail Plus Daughter Board RoHS:否 制造商:Rabbit Semiconductor 产品:Development Kits 类型:Ethernet to Wi-Fi Bridges 工具用于评估:RCM6600W 数据速率:20 Mbps, 40 Mbps 接口类型:802.11 b/g, Ethernet 工作电源电压:3.3 V
AC164130-2 功能描述:子卡和OEM板 CAN/LIN PICtail Plus Daughter Board RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
AC164131 功能描述:子卡和OEM板 USB PICtail Plus Daughter Board RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
AC164132 功能描述:以太网开发工具 100Mbps Ethernet PICtail Plus DB RoHS:否 制造商:Micrel 产品:Evaluation Boards 类型:Ethernet Transceivers 工具用于评估:KSZ8873RLL 接口类型:RMII 工作电源电压:
AC164133 功能描述:电源管理IC开发工具 dsPIC BuckBoost PICtail Daughtr Brd RoHS:否 制造商:Maxim Integrated 产品:Evaluation Kits 类型:Battery Management 工具用于评估:MAX17710GB 输入电压: 输出电压:1.8 V
AC164133 制造商:Microchip Technology Inc 功能描述:Buck/Boost Converter PICtail P