Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

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!
 

siongboon

Advanced Member level 1
Joined
Jan 24, 2006
Messages
425
Helped
45
Reputation
88
Reaction score
10
Trophy points
1,298
Location
Singapore
Activity points
4,069
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
 

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 decided to use interrupt....

But it doesnt work...

Everytime whn i select the ports, the transmission fails
 

siongboon

Advanced Member level 1
Joined
Jan 24, 2006
Messages
425
Helped
45
Reputation
88
Reaction score
10
Trophy points
1,298
Location
Singapore
Activity points
4,069
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
 
Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top