element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Documents Using of SPI to interface with Epson S1D13781 graphics controller
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Engagement
  • Author Author: Former Member
  • Date Created: 5 Aug 2010 4:50 AM Date Created
  • Last Updated Last Updated: 7 Oct 2021 6:02 AM
  • Views 722 views
  • Likes 0 likes
  • Comments 0 comments
Related
Recommended

Using of SPI to interface with Epson S1D13781 graphics controller

Often the graphics controller is connected to MCU via the parallel interface. This kind of connection provides a very fast access to the frame buffer. Sometimes the rendering is done so quickly that the double buffering (virtual frame) is not required. But the parallel interface may not be  acceptable for the low-cost systems on account of the following reasons:
 
  1. Large signals quantity. Usually graphics controllers support 8 or 16 bits data bus. Additionally 18-20 lines may be required for the address bus if the direct addressing mode is used.
  2. The limited number of MCUs has the external parallel bus peripheral available.
 
In opposite to parallel interface the serial interface is simple, it has just 4 wires. Almost any MCU has an SPI module. The cheap, low pin count MCUs can be used. The graphics application transfers a big amount of data. The SPI is significantly slower than parallel interface and the rendering process, flickering and others artifacts become visible on the screen. To decide this problem the double buffering has to be used.
 
Let's consider 2 types of the double buffering:
 
  1. Virtual Buffer. In the system with virtual buffer the one buffer is hidden and the second buffer is displayed on LCD. The graphics library draws in the hidden buffer then copies updated area or the whole buffer into the second visible buffer. Usually, the copy process is much faster than the graphics rendering. In this case, the use of such hidden buffer hides the drawing flicker and artifacts.
 
  1. Buffers Switching. The system has buffers with the same images and switches them after update. At first the image is updated in the hidden buffer, then this buffer is switched to be visible and the graphics library makes the same change in the second buffer. So the graphics library must maintain two same screens all the time and copy the modified part or the whole content between buffers (from visible to hidden).
 
Colibri Graphics embedded GUI library supports all double buffering methods described above.
 
When the visible buffer is switched or updated at the arbitrary time then the situation, when one half of screen displays the first buffer and the second half shows the data from the second buffer, is possible.This effect is known as tearing. Usually the buffer switching should be synchronized with the vertical LCD beam in order to avoid tearing.
 
The Virtual Buffer method is simple but requires a very fast copy operation between buffers. In case of the low speed the Buffer Switching methods can be used.
 
Epson S1D13781 graphics controller has a unique set of features to support SPI operation:
 
  1. It has a large memory to allocate two buffers inside the controller. The buffers can have RGB 5:6:5 format for QVGA (320x240) resolution and 8 bit per pixel format for WQVGA (480x272) resolution.
  2. The S1D13781 has a built-in graphics accelerator. The memory copy operation for the double buffering can be performed by the graphics controller without involving of the MCU. This frees the MCU resources for other tasks. The cheap MCU with lower MIPS can be used. Also the accelerated copy operation is very fast. In this situation the Virtual Buffer double buffering method can be used even for the SPI connection.
 
Colibri Graphics library supports Epson S1D13781 controller. It has a unique features set for the low-cost systems using SPI:
 
  1. Colibri Graphics Embedded GUI library works with all double buffering methods described above.
  2. The library has an extensive 8bit per pixel support. The palettes can be optimized for several images; intermediate palettes with indexes of another top palette can be used; the images can be adjusted for the selected palette. This allows the application to use S1D13781 via SPI for WQVGA resolution LCDs.
  3. Colibri Graphics hardware has an SPI option for S1D13781 controller.
  4. The library code is written in ANSI C, has a very small footprint (less than 2Kbytes in RAM and 30Kbytes in ROM). The code porting to different compiler or MCU is easy.
  5. Free extensive customer support.
 
Anton Alkhim,
Colibri Software, 2010
http://www.colibrigraphics.com
  • gui
  • frame_buffer
  • graphics_library
  • double_buffering
  • s1d13781
  • embedded_gui
  • Share
  • History
  • More
  • Cancel
  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube