Datasheet
SAM9261 [DATASHEET]
Atmel-6062O-ATARM-SAM9261-Datasheet_21-Jun-16
632
The LCDDEN signal indicates valid data in the LCD Interface.
After each horizontal line of data has been shifted into the LCD, the LCDHSYNC is asserted to cause the line to be
displayed on the panel.
The following timing parameters can be configured:
Vertical to Horizontal Delay (VHDLY): The delay between begin_of_line and the generation of LCDHSYNC is
configurable in the VHDLY field of the LCDTIM1 register. The delay is equal to (VHDLY+1) LCDDOTCK
cycles.
Horizontal Pulse Width (HPW): The LCDHSYNC pulse width is configurable in HPW field of LCDTIM2
register. The width is equal to (HPW + 1) LCDDOTCK cycles.
Horizontal Back Porch (HBP): The delay between the LCDHSYNC falling edge and the first LCDDOTCK
rising edge with valid data at the LCD Interface is configurable in the HBP field of the LCDTIM2 register. The
delay is equal to (HBP+1) LCDDOTCK cycles.
Horizontal Front Porch (HFP): The delay between end of valid data and the end of the line is configurable in
the HFP field of the LCDTIM2 register. The delay is equal to (HFP+2) LCDDOTCK cycles.
There is a limitation in the minimum values of VHDLY, HPW and HBP parameters imposed by the initial latency of
the datapath. The total delay in LCDC clock cycles must be higher than or equal to the latency column in Table 37-
2 on page 626. This limitation is given by the following formula:
37.5.2.9 Equation 1
where:
VHDLY, HPW, HBP are the value of the fields of LCDTIM1 and LCDTIM2 registers
PCLK_PERIOD is the period of LCDDOTCK signal measured in LCDC Clock cycles
DPATH_LATENCY is the datapath latency of the configuration, given in Table 37-2 on page 626
The LCDVSYNC is asserted once per frame. This signal is asserted to cause the LCD's line pointer to start over at
the top of the display. The timing of this signal depends on the type of LCD: STN or TFT LCD.
In STN mode, the high phase corresponds to the complete first line of the frame. In STN mode, this signal is
synchronized with the first active LCDDOTCK rising edge in a line.
In TFT mode, the high phase of this signal starts at the beginning of the first line. The following timing parameters
can be selected:
Vertical Pulse Width (VPW): LCDVSYNC pulse width is configurable in VPW field of the LCDTIM1 register.
The pulse width is equal to (VPW+1) lines.
Vertical Back Porch: Number of inactive lines at the beginning of the frame is configurable in VBP field of
LCDTIM1 register. The number of inactive lines is equal to VBP. This field should be programmed with 0 in
STN Mode.
Vertical Front Porch: Number of inactive lines at the end of the frame is configurable in VFP field of
LCDTIM2 register. The number of inactive lines is equal to VFP. This field should be programmed with 0 in
STN mode.
STN Color Single 4 2
STN Color Single 8 2
STN Color Dual 8 4
STN Color Dual 16 6
Table 37-10. Minimum LCDDOTCK Period in LCDC Core Clock Cycles (Continued)
Configuration
LCDDOTCK PeriodDISTYPE SCAN IFWIDTH
VHDLY HPW HBP 3+++()PCLK_PERIOD× DPATH_LATENCY≥