1.按照公式fck_div=fLCDCLK/2的PS次方×(16+DIV);Fframe=fck_div x duty;
FLCDCLK=32.768Khz
网上代码:
/* The LCD is configured as follow:
- clock source = LSE (32.768 KHz)
- Voltage source = Internal
- Prescaler = 2
- Divider = 18 (16 + 2)
- Mode = 1/4 Duty, 1/3 Bias
- LCD frequency = (clock source * Duty) / (Prescaler * Divider) = 228 Hz ==> Frame frequency = 57 Hz */
/* Initialize the LCD */
LCD_Init(LCD_Prescaler_2, LCD_Divider_18, LCD_Duty_1_4, LCD_Bias_1_3, LCD_VoltageSource_Internal);
此时PS=2,16+DIV=18代入公式:Fframe=32768/(4*18)*(1/4)=114HZ才对吧,这个57HZ是怎么算出来的?
|