Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

MSP430 UART interrupt problem

Posted by Rogério on November 2, 2010
Hi all,

I am using a MSP430F1611 with FreeRTOS. The UART is used to communicate with the PC.
My problem is the following: Sometimes a UART interrupt is missed. Rx during receiving data and Tx during sending data. The reason is most probably that the RTOS switches a task or does some other stuff with interrupts disabled.
Sending data without interrupt would not be a suitable solution for me.
I can not imagine, that I am the only one with this problem and would appreciate any help.

Rogério

RE: MSP430 UART interrupt problem

Posted by Jack Peacock on November 2, 2010
Disabling interrupts for a short period only defers the interrupt. If you are losing characters then it's more likely a handshaking problem. What bauds rate are you using? See if you lose characters at 9600 baud if you are using a fast rate like 115K. Are you using RTS/CTS handshaking? Some PCs can't keep up with fast serial rates and require handshaking. This is a common problem with Hyperterm.

Are you checking error status on UART interrupts? Overrun is a good indicator that you have handshake problems.
Jack Peacock

RE: MSP430 UART interrupt problem

Posted by Rogério on November 3, 2010
Yes I check the error status for the UART interrupt. If and Rx byte is lost, the OE bit is set. This also happens with 9600 baud, but not as often as with 115k baud.
And no, I am not using RTS/ CTS for handshake.


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner