首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >直流电源供电时的CC430F6137串口问题

直流电源供电时的CC430F6137串口问题
EN

Stack Overflow用户
提问于 2020-12-14 15:33:39
回答 1查看 35关注 0票数 0

我的系统有问题,我不能处理这个问题。问题是,当我在没有调试的情况下用直流电压(3.3v)给系统供电时,我在接收器端看不到任何东西(Arduino Uno作为接收器)。但是,如果我使用debuggerFET430 - UIF,那么我可以看到接收器端的所有字符。

这是我的代码:

代码语言:javascript
复制
#include <msp430.h>
#include "cc430x613x.h"
#include <msp430.h>
#include <string.h>
void terminal_write();
void UART_open();
void UART_close();
void main(void) {

WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
//__delay_cycles( 2 * 1e7);
while(1)

{
    UART_open();
    printf("system working\r\n");
terminal_write("AT\r\n");

__delay_cycles(5000000);

//_bis_SR_register(LPM3_bits + GIE);
    UART_close();

}

}

void terminal_write(char *info)
{
unsigned int i;


unsigned int len = strlen(info) ; 
for(i=0;i<len;i++)
{

UCA0TXBUF=info[i];
__delay_cycles(10000);

}
}

void UART_open(){
        P1SEL |= BIT5 + BIT6;
        //UART Settings
        UCA0CTL1 |= UCSWRST; 
        UCA0CTL1 |= UCSSEL0 ; // ACLK
        UCA0BR0=3;   //UCA0BR0 = 3 ; //32Khz / 9600 –>> 3 
        UCA0BR1=0;   //UCA0BR1=0; // BAUD 9600;     ( UCABR1 * 256 ) + UCABR0  = UCABRx    see "slau259e.pdf"

        UCA0MCTL=6 ; //  see "slau259e.pdf" page 602 //
        //UCA0MCTL =| BIT7 |  BIT6  | BIT5 | BIT4 | BIT3 | BIT2 | BIT1 | BIT0 |
        //          |------- UCBRFx --------------|----UCBRSx----------|UCOS16|
        // for 9600 baudrate at 32kHz UCBRFx = 0 , UCBRSx = 3 , UCOS16 = 0
        //          |  0   | 0      | 0    | 0    | 0    | 1    | 1    | 0    |
        //          0b00000110 = 0x06 = 6
        UCA0CTL1  &=~  UCSWRST;// 
        UCA0CTL1  |=   UCDORM;
}
void UART_close(){
    
    P1SEL &= ~(BIT5 + BIT6);
    UCA0CTL1  |=  UCSWRST;
    UCA0CTL1  &=~  UCDORM;
    
}

Beside if I use DC power then the system consumption is about 450-550 uA. If I use debugger then the DC power consumption is raises to about 4.8 mA . Also if I only use the debugger [powered with debugger voltage without using any external DC supply] then system can't handle the communication properly. 

If there is a solutiion I'll very appreciate.
EN

回答 1

Stack Overflow用户

发布于 2021-10-22 01:48:54

Firtina,您是否可以只将直流电源连接到模拟电压输入(AVSS)而不是数字输入(DVCC)?如果是这样,那么我的解释是JTAG工具为CCF6137芯片提供了适当的电源,但是当断开连接时,芯片没有数字端的电源。如果是这种情况,请尝试将直流电源同时连接到AVSS和DVCC针脚,然后在不使用JTAG工具的情况下再次测试。此外,检查您是否给芯片适当的地面。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65285188

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档