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/MSP430FR2633:msp430fr2633

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/867878/ccs-msp430fr2633-msp430fr2633

器件型号:MSP430FR2633

工具/软件:Code Composer Studio

#if defined (__TI_Compiler_version__)|| Defined (__IAR_systems_ICC__)
#pragma vector=USCI_A0_Vector
_interrupt void USCI_A0_ISR (void)
#Elif defined (_GNU_)
void __attribute__((中断(USCI_A0_Vector)) USCI_A0_ISR (void)
其他
错误编译器不受支持!
#endif

switch (__evo_in_range (UCA0IV、USCI_UART_UCTXCPTIFG))

USCI_NONE 案例:中断;
USCI_UART_UCRXIFG 案例:
while (!(UCA0IFG &UCTXIFG));
UCA0TXBUF = msg[TXByteCTR++];//msg 到 Tx 缓冲器
if (TXByteCtr > TXByteCtr _update)//等待直到发送所有 msg 帧字节

UCA0IE &=~UCTXIE;//禁用 UAC1 Tx 中断
UCA0IE |= UCRXIE;//启用 UAC1 Rx 中断

//TXByteCtr = 0;//Tx 字节计数器复位

//校验和= 0;//进行校验和复位//进行数据字节复位
TXByteCtr = 0;//使 Tx Byter 计数器更新复位
__no_operation();//在此设置断点

// TXByteCtr = 0;
__no_operation();
中断;
案例 USCI_UART_UCTXIFG:中断;
案例 USCI_UART_UCSTTIFG:中断;
案例 USCI_UART_UCTXCPTIFG:中断;
默认值:break;

在此 UART 功能数组中,只有多少字节的传输只能接收为什么? 请帮助。

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

    您好、Gajanan、

    您能清楚地描述您的问题吗?

    您是否要在发送 多个字节的数据后启用 Rx 中断来接收数据?

    您遇到了哪些问题?

    此致

    Johnson