This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CCS/MSP430FR6047:使用 LCD 模块高效显示所有段?

Guru**** 2551640 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/840324/ccs-msp430fr6047-show-all-segments-efficiently-with-the-lcd-module

器件型号:MSP430FR6047

工具/软件:Code Composer Studio

你好!

我想使用 LCD_C 模块以尽可能少的代码高效地展示7 (4路复用) LCD 上的所有段。 有一个很好的消隐功能(和门)、它用一行代码将所有段关闭、但我找不到相反的任何东西。  

现在、我使用以下代码:

int i、segments =0;
for (i=0;i<10;i++){
分段= 0;
while (s段<0x80){
段<<= 1;
段+=1;
HWREG8 (LCD_C_base + LCDMemoryWriteSelection + I)=段;
}
} 

提前感谢!

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Thibult、您好!

    如前所述、关闭段很简单、但很遗憾、您将使用上述建议的方法设置(打开)所有位。