Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help! Heart rate board (MSP430fg439) can not be powered on!!

Status
Not open for further replies.

bettyxyz1028

Newbie level 6
Joined
Sep 25, 2009
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,398
Re: Help! Heart rate board (MSP430fg439) can not be powered

Im trying to preset a value(int) in the program. Then later i can replace the value by heart rate reading. I chose P2.4 to be the output pin.

The board is workable and it is fine with original programming. After modifying the progrmming, I compiled and maked the files. It was successful. No error and no warning.

Then i connected the board to the power supply (3 volts). But It was not powered on.



Here is how i modified (I only show the added parts):

void main(void)

{


IE1 |= UTXIE0; // Enable USART0 TX interrupt

P2DIR |= 0x10; // P2.4 output direction


}

void Init(void)

{


// Initialize and enable UART (I dont touch this part)

P2SEL|=BIT4; // P2.4 = TXD

UCTL0 |= SWRST; // UART SWRST = 1

ME1 |= UTXE0; // Enable UART0 TXD

UCTL0 |= CHAR; // 8-bit char, SWRST=1

UTCTL0 |= SSEL1; // UCLK = SMCLK

UBR00 = 18; // 115200 from 2.097152MHz

UBR10 = 0;

UMCTL0 = 0x2c; // Modulation = 0.2044

UCTL0 &= ~SWRST; // UART SWRST = 0, enable UART



}

#pragma vector=usart0rx_vector

_interrupt void usart0_tx(void)

{

while (!(IFG1 & UTXIFG0)); // USART0 TX buffer ready?

TXBUF0 = 15;

}

Added after 1 minutes:

Anyone can help??? TKs a lot!!!!
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top