Похожие чаты

Hi can anyone hekp me with ATmega328P programming? https://hastebin.com/dimaduqeme.cpp I've

got this code for USART based on interrupts and it works fine except for sending very long strings, those get cut at some point

1 ответов

2 просмотра

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.

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

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

Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
75
Did you guys see the latest tweet from TonGifts? 🚀
Mike
44
Did kadena deliver anything on time?
Femboi Uwu
22
Whats the deadline to convert noia into synt on erc20?
✙ Alex ✙ ✤ ∞
17
My thoughts on it: LLC growth might be signed contracts and partnerships with business companies and cash flow on LLC bank accounts. Not bad for CMO, CEO, and all the manage...
Katu
2
Хотел бы спросить у знающих, правильную ли я выбрал книгу для начала изучения ассемблера Юрова В.И ? Или есть более лучшие книги для начала обучения?
Botsman
31
Why is nobody talking about this? http://wintermute.com/wintermute-expands-its-cfd-offering-with-a-unique-multi-currency-collateral-support-for-capital-efficient-trading?utm_...
Tim
11
Oh dear Tomas & the team I hope you will accept my feedback about what just happened!! Am writing this because team no longer answering me in the PM 1- Dentx has 10bill...
M E
5
@michael_p3711 in my mind there is still a usecase for interop systems that may have trust assumptions Central bank > central bank wholesale CBDC transactions... couldn't th...
Samurai
7
Conversation at a festival with a non-crpto person (not a normie by any stretch, though): * person: tell me about crypto, me: ok, the original idea is p2p sound money for the...
molecular#123 🐓
25
Карта сайта