[英]Why does Tera Term return the Greek letter alpha when I send '!' to the MSP432 microcontroller?
我正在嘗試學習如何為 class 正確使用微控制器,出於某種原因,我用來與微型 controller 通信的終端拒絕顯示正確的字符,並且還會卡在緩沖區循環中。
```
```
#include "MSP.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main()
{
EUSCI_A0->CTLW0 |= 0x01; //Resets UART module
EUSCI_A0-> MCTLW =0; //Error Baud
EUSCI_A0-> CTLW0 |= 0x80; //parity LSB first, 8 bit data, etc
EUSCI_A0-> BRW |= 0x4E;
P1->SEL0 |= 0x0C;
P1->SEL1 &=~0x0C;
EUSCI_A0-> CTLW0 &= ~0x01;
EUSCI_A0 -> TXBUF ='!';
while ((EUSCI_A0->IFG & 0x02)==0){
//wait
}
while(1)
{
//RUN Code Forever
}
}
````
```
以上是我使用過的代碼,我們將不勝感激,因為我需要盡快了解是什么導致了這個項目
更新以解決我特定情況下的問題我做了以下設置->串行端口->速度 115200->速度 57600 還將 EUSCI_A0->BRW |=0x4E 更改為 EUSCI_A0->BRW |=0x34
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.