Hi, 专家们:
我在EVM和我们自己的板子上发现,LCD_DATA0~LCD_DATA3 这4根pin的配置不起作用。
EVM上LCD是24bit的,其中LCD_DATA0~LCD_DATA3的pin mux 配置是:(startware02.0.0.7)
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(0)) =
(0 << CONTROL_CONF_LCD_DATA0_CONF_LCD_DATA0_MMODE_SHIFT) |
(1 << CONTROL_CONF_LCD_DATA0_CONF_LCD_DATA0_PUDEN_SHIFT) |
(0 << CONTROL_CONF_LCD_DATA0_CONF_LCD_DATA0_PUTYPESEL_SHIFT)|
(1 << CONTROL_CONF_LCD_DATA0_CONF_LCD_DATA0_RXACTIVE_SHIFT) |
(0 << CONTROL_CONF_LCD_DATA0_CONF_LCD_DATA0_SLEWCTRL_SHIFT);
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(1)) =
(0 << CONTROL_CONF_LCD_DATA1_CONF_LCD_DATA1_MMODE_SHIFT) |
(1 << CONTROL_CONF_LCD_DATA1_CONF_LCD_DATA1_PUDEN_SHIFT) |
(0 << CONTROL_CONF_LCD_DATA1_CONF_LCD_DATA1_PUTYPESEL_SHIFT)|
(1 << CONTROL_CONF_LCD_DATA1_CONF_LCD_DATA1_RXACTIVE_SHIFT) |
(0 << CONTROL_CONF_LCD_DATA1_CONF_LCD_DATA1_SLEWCTRL_SHIFT);
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(2)) =
(0 << CONTROL_CONF_LCD_DATA2_CONF_LCD_DATA2_MMODE_SHIFT) |
(1 << CONTROL_CONF_LCD_DATA2_CONF_LCD_DATA2_PUDEN_SHIFT) |
(0 << CONTROL_CONF_LCD_DATA2_CONF_LCD_DATA2_PUTYPESEL_SHIFT)|
(1 << CONTROL_CONF_LCD_DATA2_CONF_LCD_DATA2_RXACTIVE_SHIFT) |
(0 << CONTROL_CONF_LCD_DATA2_CONF_LCD_DATA2_SLEWCTRL_SHIFT);
HWREG(SOC_CONTROL_REGS + CONTROL_CONF_LCD_DATA(3)) =
(0 << CONTROL_CONF_LCD_DATA3_CONF_LCD_DATA3_MMODE_SHIFT) |
(1 << CONTROL_CONF_LCD_DATA3_CONF_LCD_DATA3_PUDEN_SHIFT) |
(0 << CONTROL_CONF_LCD_DATA3_CONF_LCD_DATA3_PUTYPESEL_SHIFT)|
(1 << CONTROL_CONF_LCD_DATA3_CONF_LCD_DATA3_RXACTIVE_SHIFT) |
(0 << CONTROL_CONF_LCD_DATA3_CONF_LCD_DATA3_SLEWCTRL_SHIFT);
经过测试发现,这4个寄存器如果不配置,它们的缺省值是0x2f, 根据spec,意味着这几根pin是gpio, 但是,实际上并不影响显示和颜色。
也就是说,这4根pin, pin mux的配置不影响显示!!这是什么原因呢?
Yaoming Qin:
关于24bit的LCD,请你参考下http://www.ti.com/litv/pdf/sprz360c
weijun shao:
回复 Yaoming Qin:
yaoming, 这个errata,我已经看过了,我的问题是对LCD_DATA0~DATA3这几个pin脚, pin mux配置不影响显示。
我在你们的EVM也也做了测试,也存在这个问题,我想知道这些寄存器是否需要设,不设有什么影响?