简体   繁体   English

STM32L LCD接口

[英]STM32L LCD interfacing

can anyone tell me how to interface with the LCD connected to a STM32L151RD? 谁能告诉我如何与连接到STM32L151RD的LCD接口? I'm using IAR workbench and the example projects dont produce any results. 我正在使用IAR工作台,示例项目不会产生任何结果。 Also, I've gone through the online documentations and tutorials but all of them contain information about the STM32L152xD and not 151 which doesnt have any inbuilt LCD but has an LCD driver. 另外,我已经阅读了在线文档和教程,但是它们都包含有关STM32L152xD的信息,而不是151,后者没有任何内置的LCD但具有LCD驱动器。

Thanks. 谢谢。

As you state in the question the STM32L151RD has no LCD controller. 正如您在问题中指出的那样,STM32L151RD没有LCD控制器。 The data sheet only mentions "LCD driver" in the front page headline Feature list. 数据表仅在首页标题功能列表中提及“ LCD驱动程序”。 I believe they are using the term 'Driver' in this case as synonymous with 'Controller'. 我相信他们在这种情况下将术语“驱动程序”用作“控制器”的同义词。 Without this controller I don't know of any easy way to directly control an LCD using a STM32L151RD. 如果没有该控制器,我将不知道使用STM32L151RD直接控制LCD的简便方法。

If you are planning to use the STM32F10x_StdPeriph_Lib software Libray that STmicro supply then unfortunately this assumes there is an LCD controller (that is, you need to use an STM32L152x). 如果您打算使用STmicro提供的STM32F10x_StdPeriph_Lib软件Libray,那么不幸的是,这假定存在LCD控制器(即,您需要使用STM32L152x)。

However, may LCDs have embedded controller chips. 但是,LCD可能具有嵌入式控制器芯片。 These allow microcontrollers to drive them through common interfaces such as I2C and SPI. 这些使微控制器可以通过I2C和SPI等通用接口来驱动它们。 It is also common to find 4-bit an 8-bit parallel interfaces that can bit-banged or memory mapped. 找到可以位撞或内存映射的4位8位并行接口也是很常见的。 If you have an LCD of this type you can use the STM32L151RD. 如果您有这种类型的LCD,则可以使用STM32L151RD。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM