Direct Drive LCD Design Guide

4.1.10LCDSetLineSource

Defines the source regions of the active display window.

Format

sI16 LCDSetLineSource

(sI16 Region, sI16 LineCount, uI16 *pSource, sI16 LineStep);

Parameters

Region

Region of display (horizontal strip). Ranging from 0 to MAX_FRAME_REGIONS (defined in DirectLCD_CNF.h). Normally, region 0 starts at the bottom of the screen. However; when V_LINES_INVERT is defined to change line presentation on the screen, region 0 will start at the top of the screen. MAX_FRAME_REGIONS should be set to 1 if multiple regions are not used (this will eliminate any associated runtime overhead).

LineCount

Is the number of lines associated with this region. This value can vary from 1 to V_LINES_PANEL. pSource

Address of the first pixel of the first line within the region. The entire memory space of the region must be within the “LCD_Frames” section, or the request will not be accepted.

LineStep

Distance (in pixels/uI16’s) from first pixel of first line to first pixel of second line (source regions can be wider than the panel).

Return Values

0 on success, non-0 on failure

Properties

Prototyped in file ”DirectLCD.h”

Implemented in file “DirectLCD_SBF.c” for H8S family or “DirectLCD_XBCFT.c” for H8SX family.

Description

LCDSetLineSource defines the source regions of the active display window.

Note that LCDSetActiveRaster, LCDSetRasterOffset and LCDSetLineSource are similar in function and interact.

Example

#pragma section LCD_Frames

//SRAM allocated for GUI display

uI16 GUI_buffer[50 * H_DOT_DISPLAY];

//allocate panning buffer 4x panel

uI16 Image_buffer[2* V_LINES_PANEL * 2 * H_DOT_DISPLAY]; #pragma section

……

(void)LCDSetLineSource (0,50,GUI_buffer, H_DOT_DISPLAY); //GUI Region (void)LCDSetLineSource (1,V_LINES_PANEL-50,

&Image_buffer[ offset], 2*H_DOT_DISPLAY); //Pan Region

……

23

Page 24
Image 24
Renesas H8SX user manual LCDSetLineSource, Region

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.