Похожие чаты

How cut? Do you receive wrong data or is nothing

send at all after some time? Can you give more information? Did you try to use the interrupt that is triggered when the buffer is empty again? My approach when using UART is to enable the interrupts only for the time you are doing a transmission. and after sending the last byte, you can disable the interrupts again. Also, if your application tries to start a new transmission and sees that the interrupt is enabled it can wait until it is disabled again before starting the transmission. There are many ways to implement UART communication.

1 ответов

6 просмотров

it doesn't receive the wrong data, it just stops sending a big portion of it. I tried to use the UDRE interrupt as you suggested, but it made me wait too much time for transmission as it only triggers once when I send a long string from a terminal. That's why I switched to TX interrupt. About enabling and disabling interrupts, I'm trying to make a UART that doesn't stop sending or receiving, so I have put flags for the main loop to do the processing elsewhere. Those flags coordinate the interrupts so that TX always comes after RX. I think the data that isn't sent has trouble getting into the linked list of one of the buffers before it has to be sent, so the missing portion is freed before reaching TX... that shouldn't happen because the data is passed from RX buffer to TX buffer and THEN the RX buffer is freed and the TX interrupt triggers.

Похожие вопросы

Обсуждают сегодня

In a country where censorship and arbitrary decisions are the order of the day, offering a message of hope to workers and youth is necessary, but it is only possible with expe...
Ibrahim Rabiu
1
How did we have so many dormant scammers in here? Who are these people. It’s been years. We know each other. If you dm me “I’ve been an og” but haven’t said a single word her...
Justin | LGCY |
42
Hello Everyone 🙌🏻💜 Happy (?) Friday to everyone 😁😁 I have read through all the comments/feedback/complaints in the last 2 days following the CEO Update AMA. Clearly the ...
Patrick - Ultra.io
4
Kraken has just announced they won t support the merger of Fet and Ocean (Agix not available anyways)! This means we on Kraken are forced to close our position on loss or tran...
MG
21
Absolutely! 100+ countries? That's insane. 🌍🔥
Josh
26
Кстати, а я вот тут подумал. Допустим, у нас имеется цикл который выполняет огромное количество итераций, но мы хотим, чтобы какие-то действия исполнилось только один раз. В Я...
The Bird of Hermes
23
Доброй ночи. Вопрос знатокам. Имеется некая таблица, результат которой выведен в DBGrid на форме. И есть форма, с помощью которой можно как добавить запись, так и отредактиров...
Евгений
28
а всё почему? потому что ассемблер в отличии от яву порождает множество пагубных привычек, среди которых например можно отметить использование глобальных переменных для всего ...
Mixail Frolov
35
🌟 Great News from Dypius! 🌟 We're happy to announce the Early Access launch of the Dypius Mobile App by the end of this month! Let's dive into the features you'll get to exp...
DYP | Tim
3
Guys I want to exec into a container running on Fargate like this: aws ecs execute-command --cluster my-cluster --task task_id --container app --command bash --interactive ...
Ehsan
14
Карта сайта