42.6.1.5 LCD Frame Frequency

The LCD frame frequency is defined as the number of times the segments are energized per second. The optimal frame frequency should be in range from 30Hz up to 100Hz to avoid flickering and ghosting effect.

The 32KHz oscillator clock (CLK_SLCD_OSC) is the base clock to define the LCD frame frequency (or frame rate) which in turn depends on the Duty Ratio bits in the Control A register (CTRLA.DUTY[2:0]). CLK_SLCD_OSC is used to generate the LCD waveform data for the enabled phases.

CLK_SLCD_OSC is first divided by a prescaler PVAL=16..128, then divided by DIV=1..8: The prescaler value PVAL is selected by writing the Prescaler bits in the Control A register (CTRLA.PRESC[1:0]), see table below.

Table 42-3. Prescaler Selection
PRESC[1:0]Prescaler Value (PVAL)
0x016
0x132
0x264
0x3128

The clock division factor DIV is selected by the Clock Divider bits CTRLA.CKDIV[2:0]. The division factor is DIV=CKDIV[2:0]+1. The duty ratio NB_COM is selected by writing to the Duty Ratio bits in the Control A register (CTRLA.DUTY).

The resulting frame rate is calculated according to this formula:

FrameRate=f(CLK_SLCD_OSC)PVAL×DIV×NB_COM
Table 42-4. Examples of Frame Rates for f(CLK_SLCD_OSC) = 32768Hz
Prescaler Value (PVAL)CKDIV[2:0]DIVNB_COMFrame Rate
1280x78132 Hz
1280x23185.3 Hz
640x78232 Hz
640x23285.3 Hz
640x45334.1 Hz
320x34385.3 Hz
320x78432 Hz
320x23485.3 Hz
320x45634.1 Hz
160x34685.3 Hz
160x78832 Hz
160x23885.3 Hz