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/MSP430G2553:运行MSP430后,如何输入值以获得所需的输出?

Guru**** 2589280 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/631129/ccs-msp430g2553-once-i-have-my-msp430-running-how-can-i-input-a-value-to-get-out-a-desired-output

部件号:MSP430G2553

工具/软件:Code Composer Studio

例如,如果我想要打开4个LED的输出来表示二进制值15,我必须对电路执行什么操作才能输入值15? 如果我想在之后显示二进制值9,该怎么办?  请告诉我,如果我清楚地提出了我的问题,我对此有点陌生...

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

    由于'2553可以进行a/d转换,  输入'data'的一个简单方法是使用模拟电压。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您可以使用连接到ADC引脚的电位计,连接到多个GPIO的键盘或编码器(每次单击时计数的单个按钮)。