electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

Msp430F2274: How to use UART without interrupt?


Post new topic  Reply to topic    EDAboard.com Forum Index -> Embedded Systems and Real-Time OS -> Msp430F2274: How to use UART without interrupt?
Author Message
bettyxyz1028



Joined: 25 Sep 2009
Posts: 11


Post02 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


Post07 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


Post08 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


Post08 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
Google Adsense




Post08 Oct 2009 15:24   

Ads




Back to top
j_doe_999



Joined: 20 Aug 2006
Posts: 5
Helped: 1


Post12 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
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Embedded Systems and Real-Time OS -> Msp430F2274: How to use UART without interrupt?
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
how to use interrupt in hitech C (2)
how to use uart? (2)
how to use dual interrupt in AVR? (3)
how to use interrupt usart of atmega32 (1)
How to use RS232 transmitter interrupt using C? (7)
problems with UART interrupt (2)
How can i use software UART in Codevision(for AVR MCU)? (1)
PIC16F88 wake-up from UART interrupt? (3)
UART 4 Interrupt warnin gwith PIC 24? (1)
[Help]How to use UART and M2Mpower IDE for GR47 Module (6)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS