Renesas H8SX user manual Frame Buffer Configuration, Panelrotate

Page 7

Direct Drive LCD Design Guide

2.2 Frame Buffer Configuration

The frame buffer is the external memory area that is used to store the 16bpp image data that will be presented on the LCD screen. The quantity of frame buffers is typically 2 or more. This allows the MCU to be updating one frame wile the ExDMA is transferring the other frame to the LCD panel, this behavior allows for fast transitions and the user does not see operations occurring in the non-displayed buffers.

Typically, the frame buffer is configured to the same dimensions as the LCD panel; however the frame buffer can be larger to allow the LCD panel to act as a “window” into the frame buffer (allowing for fast panning of large images).

The following macros control the sizing of the frame buffer.

2.2.1FRAME_HEIGHT

Defines the number of lines in each of the frame buffers.

2.2.2FRAME_WIDTH

Defines the number of dots (columns) in each of the frame buffer lines.

2.2.3V_LINES_INVERT

If defined flips the presentation of lines on the display.

2.2.4H_DOT_INVERT

If defined flips the presentation of dots (columns) on the display.

2.2.5PANEL_ROTATE

Rotates the presentation of data (rows/columns) on the LCD panel. Only available on H8SX SRAM based modes.

2.2.6LCD_FRAMES

Defines the number of frame buffers allocated in the driver. The demonstration code value is two by default. This value can be set to zero in which case, the user code is responsible for the allocation of frame buffers.

2.2.7MAX_FRAME_REGIONS

Defines the number of horizontal screen “splits” that can be used within the driver. The demonstration code default value is 1 (no splits). This capability allows different source regions to be used with horizontal screen areas (control GUI + panning image view for example).

The default display sequence of a LCD panel is shown in Figure 1. The origin of the display is shown as the green dot in the picture. By default the driver will send the raster image to the LCD panel in the same sequence. If necessary, there are two macros available to change the sequence of data presented to the panel. V_LINES_INVERT sends the top line first and sequences to the bottom and H_DOT_INVERT sends the right side of the line first and sequences to the left. Either or both of these macros can be specified at the same time. PANEL_ROTATE (only available on H8SX) is the macro to allow user image to be rotated in transfer to the panel as shown in the Figure 2.

6

Image 7
Contents Rev .60 September Index Driver ConfigurationWebsite and Support Revision Record Capabilities IntroductionDirect Drive LCD Overview PhilosophyLCD Direct Drive Configuration Macros Driver ConfigurationMacro Name Description Units Demo Location Framecs Panelrotate Frame Buffer ConfigurationRAM Frame Raster Data Dot Clock Hardware Connections Driver Mode SelectionSramdd SdramddLCD Panel Configuration Driver Mode ConfigurationVLINESxx and HDOTxx LCD Platform Configuration XxxxTPUPIN XxxxTPUCHANNELHSync Typical LCD Panel ConnectionsLCD panel interface ClockRGB Red Green Blue Data Data EnableTouch Screen Hardware Design Signal TPU Channel Requirements SuggestedLCD API Data Types LCD API Definition Standard RedefinesProperties LCDInitLCDBacklight LCDSetFrameRate LCDGetFrameRate LCDSetActiveRaster LCDGetActiveFrame LCDSetRasterOffset Region LCDSetLineSourceRev Date Description Summary Revision RecordRenesas Technology Corp., All rights reserved

H8S, H8SX specifications

Renesas H8S and H8SX microcontrollers are part of Renesas Electronics' H-series of 16-bit microcontrollers, widely known for their rich functionality, exceptional performance, and versatility in embedded applications. These microcontrollers are ideal for a variety of applications ranging from automotive systems to industrial automation and consumer electronics.

The key feature of the H8S series is its high-performance CPU architecture, which includes efficient instruction execution, allowing for faster processing of tasks. The H8S series operates at clock speeds typically up to 24 MHz, providing ample processing power for complex applications. The H8SX series builds upon the H8S foundation with enhanced performance capabilities, including advanced instruction sets and support for higher clock frequencies, which can reach up to 40 MHz.

One of the standout characteristics of the H8S and H8SX microcontrollers is their rich peripheral set. They offer multiple I/O ports, timers, ADCs (Analog-to-Digital Converters), and communication interfaces such as SPI, I2C, and UART. The built-in ADCs allow for accurate analog signal processing, making these microcontrollers suitable for measuring temperature, pressure, and other sensor inputs in real time.

Moreover, the H8SX series provides additional features like improved flash memory capacity, enabling more complex applications to be developed and more extensive firmware to be stored. With the integration of a high-performance interrupt controller, the H8SX models can manage multiple interrupt sources efficiently, allowing for real-time response to events.

The H8S and H8SX microcontrollers also support a variety of development environments and programming languages, making them accessible for developers with varying skill levels. They are compatible with both C and assembly language programming, along with a range of development tools and IDEs (Integrated Development Environments).

In terms of power consumption, these microcontrollers are designed to be energy-efficient, making them ideal for battery-operated devices. With features such as low-power modes that allow the device to enter sleep modes when inactive, the H8S and H8SX microcontrollers help extend the battery life of applications.

In summary, Renesas H8S and H8SX microcontrollers stand out due to their performance, extensive peripheral functionality, versatility, and energy efficiency. Their rich feature set and compatibility with a variety of development tools make them a desirable choice for developers looking to create innovative embedded solutions across multiple industries.