Похожие чаты

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 ответов

5 просмотров

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.

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

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

Is UniBright Freequity an active live product ? A friend here in Asia was discussing the Tokenisation of RWA’s in his case Real Estate as he’s a developer with numerous overs...
Digital Trust
4
Hi, is it fine to use git to backup my config? I did so many things that I don't want to miss if I switched to another OS, so how do you backup your home and configs? And shou...
Adnan Al_Beda
30
коллеги, добрый вечер! А никто не знает как модальная форма может себя закрыть? Ну допустим модальная форма определила, что смысла ей работать нет и хочет вернуть modalResult...
Михаил
83
Добрый день задумываюсь о создание токена из за того что много свободного времени и вот я узнал что транзакции за перевод этого токена будут в waves и тут пришла идея при тран...
Артем
3
А если изначально бот работал так : есть сайт онлайн школы. У каждого ученика свой кабинет. Где он авторизуется по своим данным. И уже в кабинете, на самом сайте делает оплату...
Денис 💡 Фрилансер
13
А что ты вообще делаешь ?
Yesgoter
13
На работе пишем распределенное приложение, у которого сотни, если не тысячи настроек. Конфиги написаны на xml, расположены на разных хостах и должны быть согласованы друг с др...
Aleksandr Druzhinin
5
Crypto aman premium grp koi join kiya hai... Kaisa hai service any one idea??
Arvind Sharma
16
Всем привет 🙂 Какая-то непонятная проблема у меня с видео, раньше такого не было. Загружаю видео с гугл диска именно в видео mp4 и меняю ссылку как положено вот она: https://d...
Ксюша|Верстка на Тильде|Дизайн 🦥
6
Добрый день Хочу начать обучение языку, не являюсь представителем it, буду благодарна за помощь, совсем пока не понимаю ничего) Подскажите, пожалуйста, где можно начать первы...
Sara Lala
18
Карта сайта