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.

[参考译文] MSP430FR2433:源代码、以前的风格。

Guru**** 2551110 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/910854/msp430fr2433-source-code-good-old-days-style

器件型号:MSP430FR2433
主题中讨论的其他器件:MSPWAREMSP430WARE

您好!

我有一段时间没有使用 MSP 芯片。 今天、我想使用 FR2433做一些事情、只是为了进行测试。

我已经下载了 MSPWare、但它看起来已经变得非常复杂。 我认为是源代码

可以保持简单、以及良好的旧日代码。 多年以前使用的示例:

P2DIR |= BIT4;// P2.4输出
P2SEL |= BIT4;// P2.4选项选择
TA2CCR0 = 1000-1;// PWM 周期
TA2CCTL1 = OUTMOD_7;// CCR1切换/置1
TA2CCR1 = 250;// CCR1 PWM 占空比
TA2CTL = tassel_2 + MC_1 + TACLR;// SMCLK、向上计数模式、清除 TAR

它执行示例代码应该执行的操作:保持简单、显示所有需要、仅显示需要的内容。

FR 器件是否有相同风格的代码?

谢谢