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.

[参考译文] MSP-EXP430FR6968 UART中断RX不工作

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1097175/msp-exp430fr6968-uart-interrupt-rx-doesn-t-work

主题中讨论的其他部件:MSP430FR6989

我在 这个线程中使用来自Peter Spevak的代码

所有跳线均已连接。 当我 向PC发送字符时工作正常,但当我尝试从PC接收字符时,中断不会释放。 我使用了德州仪器(TI)的原始代码,使用UCA0, 从 “桥接”接头(J101)上卸下了RXD/TXD跳线,并将WFP 2.0 (J101) 1.8 插针安装到TXD上,将WFP 2.1 (RTOD)插针安装到RXD上,将2.19 (RTOD)插针安装到RXD上,遇到同样的问题。 我可以从launchpad发送字符,但从PC接收(中断不启动)。 有什么想法吗?

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* --COPYRIGHT--,BSD_EX
* Copyright (c) 2014, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of Texas Instruments Incorporated nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

    您好,Jose,

    您是否在使用CCS? 如果正在运行的调试会话可能会干扰Backchannel/PC UART连接。 是否可以尝试刷新程序,终止调试会话,重置设备并再次执行测试?

    此致,

    Evan

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

    感谢您的回复Evan,但我提供了您的建议,但不起作用。 我无法从UCA1 (或UCA0)启动中断RX。 是否有人可以在launchpad MSP430FR6989上测试此代码?

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

    您能否说明您的预期配置? 在上面发布的代码中,您使用的是USI_A1。 USI_A1连接到WFP端口3.4 和WFP 3.5 ,它们直接连接到J101跳线。  

    但是,您还会说您正在移除J101上的RXD和TXD跳线,并将WFP 2.0 和WFP 2.1 连接到J101的TXD/RXD ezFET侧。  

    听起来您有一半的配置,一半的配置。 您必须:

    • 将USI_A1与J101上TXD/RXD之间的跳线配合使用
    • 使用USI_A0和一根电线从2.0 和WFP 2.1 连接到J101侧面的TXD/RXD。

    此致,

    Evan