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.

Msp430F2274: How to use UART without interrupt?

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
I know that for MSP430fg439, there is a way that u can transmit or receive data without using interrupt enable. ME can replace IE.

I try to find the same way in MSP430F2274, but i cant.

Is there any method to be in the UART mode in MSP430F2274 without interrupt? Where can i find this kind of sample code?

TKs in advance!
 

Hi,

It is call polling method.
Search the web for UART polling example.

Ultimately, you should use interrupt for UART.
It is a long term solution.
For a start, polling method would be good for training.

Best Regards,
Siong Boon

www.siongboon.com/projects/2006-03-06_serial_communication
 
I decided to use interrupt....

But it doesnt work...

Everytime whn i select the ports, the transmission fails
 

It is likely to be your coding problem.
Perheps you should start with polling method.
After understand how it works,
migrate slowly to interrupt step by step.
Should not be difficult to debug if you
progress logically.

Comparing the 2, polling is easier to write and understand.
Interrupt is more robust and less problematic if
you write your codes properly.

Best Regards,
Siong Boon
 
Did you check the TI example code for 2274 ?

**broken link removed**

There are at least 7-8 UART examples (polling and interrupt)

Regards,
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top