1339
6437E–ATARM–23-Apr-13
SAM9M11
In monochrome mode, Horizontal_display_size is equal to the number of horizontal pixels. The
number_data_lines is equal to the number of bits of the interface in single scan mode;
number_data_lines is equal to half the bits of the interface in dual scan mode.
In color mode, Horizontal_display_size equals three times the number of horizontal pixels.
In TFT Mode:
The frame rate equation is used first without considering the clock periods added at the end
beginning or at the end of each line to determine, approximately, the LCDDOTCK rate:
With this value, the CLKVAL is fixed, as well as the corresponding LCDDOTCK rate.
Then select VHDLY, HPW and HBP according to the type of LCD used and
“Equation 1” onFinally, the frame rate is adjusted to 70 Hz - 75 Hz with the HFP value:
The line counting is controlled by the read-only field LINECNT of LCDCON1 register. The LINE-
CNT field decreases by one unit at each falling edge of LCDHSYNC.
49.6.2.10
Display
This block is used to configure the polarity of the data and control signals. The polarity of all
clock signals can be configured by LCDCON2[12:8] register setting.
This block also generates the lcd_pwr signal internally used to control the state of the LCD pins
and to turn on and off by software the LCD module.
It is also available on the LCDPWR pin.
This signal is controlled by the PWRCON register and respects the number of frames configured
in the GUARD_TIME field of PWRCON register (PWRCON[7:1]) between the write access to
LCD_PWR field (PWRCON[0]) and the activation/deactivation of lcd_pwr signal.
The minimum value for the GUARD_TIME field is one frame. This gives the DMA Controller
enough time to fill the FIFOs before the start of data transfer to the LCD.
49.6.2.11
PWM
This block generates the LCD contrast control signal (LCDCC) to make possible the control of
the display's contrast by software. This is an 8-bit PWM (Pulse Width Modulation) signal that can
be converted to an analog voltage with a simple passive filter.
LINEVAL
Vertical_display_size
1
–
=
HOZVAL
Horizontal_display_size
1
–
=
LINEVAL
Vertical_display_size
1
–
=
f
lcd_pclk
HOZVAL
5
+
()
f
lcd_vsync
LINEVAL
1
+
()
×
()
×
=
HFP
f
LCDDOTCK
1
f
LCDVSYNC
LINEVAL
VBP
VFP
1
++
+
()
×
--------------------------------------------------------------------------------------------------------------
VHDLY
HPW
HPB
HOZVAL
4
++
+
()
–
×
=