Datasheet

244
8021G–AVR–03/11
ATmega329P/3290P
Bit 3 – Reserved
This bit is reserved and will always read as zero.
Bits 2:0 – LCDCD2:0: LCD Clock Divide 2, 1, and 0
The LCDCD2:0 bits determine division ratio in the clock divider. The various selections are
shown in Table 23-5. This Clock Divider gives extra flexibility in frame rate selection.
The frame frequency can be calculated by the following equation:
Where:
N = prescaler divider (16, 64, 128, 256, 512, 1024, 2048, or 4096).
K = 8 for duty = 1/4, 1/2, and static.
K = 6 for duty = 1/3.
D = Division factor (see Table 23-5 on page 244)
This is a very flexible scheme, and users are encouraged to calculate their own table to investi-
gate the possible frame rates from the formula above. Note when using 1/3 duty the frame rate
101clk
LCD
/1024 520kHz
110clk
LCD
/2048 1MHz
111clk
LCD
/4096 2MHz
Table 23-5. LCD Clock Divide
LCDCD2 LCDCD1 LCDCD0
Output from
Prescaler
divided by (D):
clk
LCD
= 32.768kHz, N = 16, and Duty =
1/4, gives a frame rate of:
000 1 256Hz
001 2 128Hz
0 1 0 3 85.3Hz
011 4 64Hz
1 0 0 5 51.2Hz
1 0 1 6 42.7Hz
1 1 0 7 36.6Hz
111 8 32Hz
Table 23-4. LCD Prescaler Select (Continued)
LCDPS2 LCDPS1 LCDPS0
Output from
Prescaler
clk
LCD
/N
Applied Prescaled LCD Clock Frequency
when LCDCD2:0 = 0, Duty = 1/4, and
Frame Rate = 64 Hz
f
frame
f
clk
LCD
KND⋅⋅()
--------------------------=