Clock LTDC at 10MHz
This seems to cause less horizontal (appears as vertical) banding
This commit is contained in:
parent
7e4bc54266
commit
148ab2b69c
|
@ -312,11 +312,11 @@ void HAL_LTDC_MspInit(LTDC_HandleTypeDef* hltdc)
|
|||
/** Initializes the peripherals clock
|
||||
*/
|
||||
PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_LTDC;
|
||||
PeriphClkInitStruct.PLL3.PLL3M = 3;
|
||||
PeriphClkInitStruct.PLL3.PLL3N = 16;
|
||||
PeriphClkInitStruct.PLL3.PLL3M = 2;
|
||||
PeriphClkInitStruct.PLL3.PLL3N = 15;
|
||||
PeriphClkInitStruct.PLL3.PLL3P = 2;
|
||||
PeriphClkInitStruct.PLL3.PLL3Q = 2;
|
||||
PeriphClkInitStruct.PLL3.PLL3R = 14;
|
||||
PeriphClkInitStruct.PLL3.PLL3R = 18;
|
||||
PeriphClkInitStruct.PLL3.PLL3RGE = RCC_PLL3VCIRANGE_3;
|
||||
PeriphClkInitStruct.PLL3.PLL3VCOSEL = RCC_PLL3VCOWIDE;
|
||||
PeriphClkInitStruct.PLL3.PLL3FRACN = 0;
|
||||
|
|
2
Makefile
2
Makefile
|
@ -1,5 +1,5 @@
|
|||
##########################################################################################################################
|
||||
# File automatically-generated by tool: [projectgenerator] version: [3.19.2] date: [Fri Mar 17 17:47:57 CET 2023]
|
||||
# File automatically-generated by tool: [projectgenerator] version: [3.19.2] date: [Fri Mar 17 18:17:40 CET 2023]
|
||||
##########################################################################################################################
|
||||
|
||||
# ------------------------------------------------
|
||||
|
|
|
@ -448,22 +448,22 @@ RCC.DFSDMACLkFreq_Value=80000000
|
|||
RCC.DFSDMFreq_Value=80000000
|
||||
RCC.DIVM1=3
|
||||
RCC.DIVM2=4
|
||||
RCC.DIVM3=3
|
||||
RCC.DIVM3=2
|
||||
RCC.DIVN1=40
|
||||
RCC.DIVN2=8
|
||||
RCC.DIVN3=16
|
||||
RCC.DIVN3=15
|
||||
RCC.DIVP1Freq_Value=160000000
|
||||
RCC.DIVP2Freq_Value=24000000
|
||||
RCC.DIVP3Freq_Value=64000000
|
||||
RCC.DIVP3Freq_Value=90000000
|
||||
RCC.DIVQ1=4
|
||||
RCC.DIVQ1Freq_Value=80000000
|
||||
RCC.DIVQ2=3
|
||||
RCC.DIVQ2Freq_Value=16000000
|
||||
RCC.DIVQ3Freq_Value=64000000
|
||||
RCC.DIVQ3Freq_Value=90000000
|
||||
RCC.DIVR1Freq_Value=160000000
|
||||
RCC.DIVR2Freq_Value=24000000
|
||||
RCC.DIVR3=14
|
||||
RCC.DIVR3Freq_Value=9142857.142857144
|
||||
RCC.DIVR3=18
|
||||
RCC.DIVR3Freq_Value=10000000
|
||||
RCC.FDCANFreq_Value=80000000
|
||||
RCC.FMCFreq_Value=160000000
|
||||
RCC.FamilyName=M
|
||||
|
@ -472,17 +472,14 @@ RCC.HCLKFreq_Value=160000000
|
|||
RCC.HSE_VALUE=24000000
|
||||
RCC.I2C123Freq_Value=80000000
|
||||
RCC.I2C4Freq_Value=80000000
|
||||
RCC.IPParameters=ADCFreq_Value,AHB12Freq_Value,AHB4Freq_Value,APB1Freq_Value,APB2Freq_Value,APB3Freq_Value,APB4Freq_Value,AXIClockFreq_Value,CDCPREFreq_Value,CDPPRE,CDPPRE1,CDPPRE2,CECFreq_Value,CKPERFreq_Value,CortexFreq_Value,CpuClockFreq_Value,DAC1Freq_Value,DAC2Freq_Value,DFSDM2ACLkFreq_Value,DFSDM2Freq_Value,DFSDMACLkFreq_Value,DFSDMFreq_Value,DIVM1,DIVM2,DIVM3,DIVN1,DIVN2,DIVN3,DIVP1Freq_Value,DIVP2Freq_Value,DIVP3Freq_Value,DIVQ1,DIVQ1Freq_Value,DIVQ2,DIVQ2Freq_Value,DIVQ3Freq_Value,DIVR1Freq_Value,DIVR2Freq_Value,DIVR3,DIVR3Freq_Value,FDCANFreq_Value,FMCFreq_Value,FamilyName,HCLK3ClockFreq_Value,HCLKFreq_Value,HSE_VALUE,I2C123Freq_Value,I2C4Freq_Value,LPTIM1Freq_Value,LPTIM2Freq_Value,LPTIM345Freq_Value,LPUART1Freq_Value,LTDCFreq_Value,MCO1PinFreq_Value,MCO2PinFreq_Value,PLL2FRACN,PLL3FRACN,PLLFRACN,PLLSourceVirtual,QSPIFreq_Value,RNGFreq_Value,RTCFreq_Value,SAI1Freq_Value,SAI2AFreq_Value,SAI2BFreq_Value,SDMMCFreq_Value,SPDIFRXFreq_Value,SPI123Freq_Value,SPI45Freq_Value,SPI6Freq_Value,SRDPPRE,SWPMI1Freq_Value,SYSCLKFreq_VALUE,SYSCLKSource,Tim1OutputFreq_Value,Tim2OutputFreq_Value,TraceFreq_Value,USART16Freq_Value,USART234578Freq_Value,USBFreq_Value,VCO1OutputFreq_Value,VCO2OutputFreq_Value,VCO3OutputFreq_Value,VCOInput1Freq_Value,VCOInput2Freq_Value,VCOInput3Freq_Value
|
||||
RCC.IPParameters=ADCFreq_Value,AHB12Freq_Value,AHB4Freq_Value,APB1Freq_Value,APB2Freq_Value,APB3Freq_Value,APB4Freq_Value,AXIClockFreq_Value,CDCPREFreq_Value,CDPPRE,CDPPRE1,CDPPRE2,CECFreq_Value,CKPERFreq_Value,CortexFreq_Value,CpuClockFreq_Value,DAC1Freq_Value,DAC2Freq_Value,DFSDM2ACLkFreq_Value,DFSDM2Freq_Value,DFSDMACLkFreq_Value,DFSDMFreq_Value,DIVM1,DIVM2,DIVM3,DIVN1,DIVN2,DIVN3,DIVP1Freq_Value,DIVP2Freq_Value,DIVP3Freq_Value,DIVQ1,DIVQ1Freq_Value,DIVQ2,DIVQ2Freq_Value,DIVQ3Freq_Value,DIVR1Freq_Value,DIVR2Freq_Value,DIVR3,DIVR3Freq_Value,FDCANFreq_Value,FMCFreq_Value,FamilyName,HCLK3ClockFreq_Value,HCLKFreq_Value,HSE_VALUE,I2C123Freq_Value,I2C4Freq_Value,LPTIM1Freq_Value,LPTIM2Freq_Value,LPTIM345Freq_Value,LPUART1Freq_Value,LTDCFreq_Value,MCO1PinFreq_Value,MCO2PinFreq_Value,PLLSourceVirtual,QSPIFreq_Value,RNGFreq_Value,RTCFreq_Value,SAI1Freq_Value,SAI2AFreq_Value,SAI2BFreq_Value,SDMMCFreq_Value,SPDIFRXFreq_Value,SPI123Freq_Value,SPI45Freq_Value,SPI6Freq_Value,SRDPPRE,SWPMI1Freq_Value,SYSCLKFreq_VALUE,SYSCLKSource,Tim1OutputFreq_Value,Tim2OutputFreq_Value,TraceFreq_Value,USART16Freq_Value,USART234578Freq_Value,USBFreq_Value,VCO1OutputFreq_Value,VCO2OutputFreq_Value,VCO3OutputFreq_Value,VCOInput1Freq_Value,VCOInput2Freq_Value,VCOInput3Freq_Value
|
||||
RCC.LPTIM1Freq_Value=80000000
|
||||
RCC.LPTIM2Freq_Value=80000000
|
||||
RCC.LPTIM345Freq_Value=80000000
|
||||
RCC.LPUART1Freq_Value=80000000
|
||||
RCC.LTDCFreq_Value=9142857.142857144
|
||||
RCC.LTDCFreq_Value=10000000
|
||||
RCC.MCO1PinFreq_Value=64000000
|
||||
RCC.MCO2PinFreq_Value=160000000
|
||||
RCC.PLL2FRACN=0
|
||||
RCC.PLL3FRACN=0
|
||||
RCC.PLLFRACN=0
|
||||
RCC.PLLSourceVirtual=RCC_PLLSOURCE_HSE
|
||||
RCC.QSPIFreq_Value=160000000
|
||||
RCC.RNGFreq_Value=48000000
|
||||
|
@ -507,10 +504,10 @@ RCC.USART234578Freq_Value=80000000
|
|||
RCC.USBFreq_Value=80000000
|
||||
RCC.VCO1OutputFreq_Value=320000000
|
||||
RCC.VCO2OutputFreq_Value=48000000
|
||||
RCC.VCO3OutputFreq_Value=128000000
|
||||
RCC.VCO3OutputFreq_Value=180000000
|
||||
RCC.VCOInput1Freq_Value=8000000
|
||||
RCC.VCOInput2Freq_Value=6000000
|
||||
RCC.VCOInput3Freq_Value=8000000
|
||||
RCC.VCOInput3Freq_Value=12000000
|
||||
SH.GPXTI3.0=GPIO_EXTI3
|
||||
SH.GPXTI3.ConfNb=1
|
||||
SH.GPXTI4.0=GPIO_EXTI4
|
||||
|
|
Loading…
Reference in New Issue