参数资料
型号: AC164127-7
厂商: Microchip Technology
文件页数: 30/34页
文件大小: 0K
描述: BOARD DISPLAY CTLR PLUS S1D13517
特色产品: AC164127-7 Graphics Controller
标准包装: 1
系列: PICtail™ Plus
主要目的: 显示器,LCD 控制器
已用 IC / 零件: S1D13517
主要属性: 与 PIC32 入门套件和 Explorer 16 开发板一起使用
已供物品:
AN1368
APPENDIX B: DOUBLE-BUFFERING
Manipulating pixels on the screen requires direct writes
to the frame buffer. While these changes are being
3.
In the swap stage, the draw buffer is swapped
with the frame buffer (by exchange of pointers),
as shown in Figure B-3 .
executed, the screen is also refreshed. This means that
the changes are displayed immediately as the frame
buffer is being updated. This is not a suitable scheme
when the changes are slow, for example, decoding an
FIGURE B-3:
SWAP STAGE
image or having a large number of widgets on a screen.
The display may appear slow in that case and can
cause user dissatisfaction.
Draw Buffer
Exchange
Frame Buffer
One solution to this problem is to use a double-buffering
scheme supported by the Microchip Graphics Library. In
this scheme, the changes are not directly written to the
frame buffer, but instead, they are written to a separate
4.
In the final stage, the frame buffer is copied to
the draw buffer, so the buffers have the same
contents, as shown in Figure B-4 .
buffer, called the ‘Draw Buffer’. After all the changes are
made, the draw buffer and frame buffer are exchanged.
Now the draw buffer becomes the frame buffer, and
because of all the changes drawn there, the changes
appear spontaneous to the user. Of course, there will be
a delay, as all the changes have to be written to the draw
buffer before displaying it. This delay is generally more
FIGURE B-4:
Draw Buffer
FINAL STAGE
Copy
Frame Buffer
tolerable than displaying the changes slowly.
After exchanging of the buffers, the latest buffer (which
5.
The workflow cycle continues.
is now the frame buffer) is copied to the new draw buf-
fer in the background, then the new draw buffer is in
sync with what is being displayed. New changes are
then written to the draw buffer and the cycle continues.
As the double-buffering scheme uses two buffers, the
RAM requirement will double.
In the Microchip Graphics Library, if double-buffering is
enabled, the frame buffer and draw buffer are
exchanged after the changes of all the widgets on a
screen are done (i.e., the new screen appears after the
whole screen is updated and not after updating an
individual widget).
The workflow of double-buffering is as follows:
1. In the initial stage, the draw buffer and frame buffer
have the same contents, as shown in Figure B-1 .
When to Use Double-Buffering?
Use double-buffering when:
? There are large numbers of widgets on a screen
? The decoding and displaying of images are
required
? The display resolution is larger than the WQVGA,
even if the above points do not hold true
When Not to Use Double-Buffering?
Do not use double-buffering when:
? The immediate display of changes is required. For
example, plotting a graph.
? The RAM available for display is limited.
? The display resolution is smaller than the
FIGURE B-1:
Draw Buffer
INITIAL STAGE
Frame Buffer
WQVGA (this is not a hard rule).
How to Use Double-Buffering?
Double-buffering can be used as follows:
? Enable double-buffering by defining,
USE_DOUBLE_BUFFERING in the
2.
In the drawing stage, only the draw buffer is
modified, and therefore, the frame buffer is not
visible to the user, as shown in Figure B-2 .
GraphicsConfig.h .
? See the section on double-buffering in the
Microchip Graphics Library Help file for code
FIGURE B-2:
DRAWING STAGE
examples.
Draw Buffer
DS01368A-page 30
Frame Buffer
? 2011 Microchip Technology Inc.
相关PDF资料
PDF描述
0982661103 CBL 39POS 0.5MM JMPR TYPE A 4"
MT2000-3.0-X-SP HEAT SHRINK TUBING
ISL6506ACBZ-T IC PWR SUPPLY CTRLR/MONITR 8SOIC
REC5-4815DRW/H4/C CONV DC/DC 5W 36-72VIN +/-15VOUT
0982661102 CBL 39POS 0.5MM JMPR TYPE D 4"
相关代理商/技术参数
参数描述
AC164127-8 功能描述:子卡和OEM板 Graph Display Truly 5.7" 640x480 Board RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
AC164127-9 功能描述:子卡和OEM板 Graphics Display 7" 800x480 Board RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
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