FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [November 2010 Threads] MSP430 UART interrupt problemPosted 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 problemPosted 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 problemPosted 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.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|