| Author |
Message |
bettyxyz1028
Joined: 25 Sep 2009 Posts: 11
|
02 Oct 2009 2:28 Msp430F2274: How to use UART without interrupt? |
|
|
|
|
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!
|
|
| Back to top |
|
 |
siongboon
Joined: 24 Jan 2006 Posts: 288 Helped: 25 Location: Singapore
|
07 Oct 2009 14:49 Re: Msp430F2274: How to use UART without interrupt? |
|
|
|
|
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
|
|
| Back to top |
|
 |
bettyxyz1028
Joined: 25 Sep 2009 Posts: 11
|
08 Oct 2009 3:05 Re: Msp430F2274: How to use UART without interrupt? |
|
|
|
|
I decided to use interrupt....
But it doesnt work...
Everytime whn i select the ports, the transmission fails
|
|
| Back to top |
|
 |
siongboon
Joined: 24 Jan 2006 Posts: 288 Helped: 25 Location: Singapore
|
08 Oct 2009 15:24 Re: Msp430F2274: How to use UART without interrupt? |
|
|
|
|
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
|
|
| Back to top |
|
 |
Google AdSense

|
08 Oct 2009 15:24 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
j_doe_999
Joined: 20 Aug 2006 Posts: 5 Helped: 1
|
12 Oct 2009 22:10 Re: Msp430F2274: How to use UART without interrupt? |
|
|
|
|
Did you check the TI example code for 2274 ?
http://www.ti.com/litv/zip/slac123c
There are at least 7-8 UART examples (polling and interrupt)
Regards,
|
|
| Back to top |
|
 |