[LPCOpen] Bug in lcd_17xx_40xx.c

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[LPCOpen] Bug in lcd_17xx_40xx.c

263 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by pgr on Mon Nov 10 01:37:59 MST 2014
Hy all,

I just found a bug in LPCOpen in the file lcd_17xx_40xx.c, function Chip_LCD_Init().
The clock divider is not computed the right way. The LCD controller use cclk as clock source and not pclk. So the code should be:

pcd = (Chip_Clock_GetSystemClockRate() / LCD_ConfigStruct->CLK) - 1;


instead of

pcd = (Chip_Clock_GetPeripheralClockRate() / LCD_ConfigStruct->CLK) - 1;


Best regards

PGR
Labels (1)
0 Kudos
0 Replies