No video

Serial UART 🔴 ATmega328P Programming #7 AVR microcontroller with Atmel Studio

  Рет қаралды 24,069

Binder Tronics

Binder Tronics

Күн бұрын

Пікірлер: 37
@BinderTronics
@BinderTronics 3 жыл бұрын
Full playlist on the ATmega328P AVR microcontroller kzbin.info/www/bejne/eHnVqnZ8rJeIaZI
@ruthyputhy7498
@ruthyputhy7498 Ай бұрын
Great tutorial. Thank you so much!
@ozprofesorsky5062
@ozprofesorsky5062 3 жыл бұрын
Excellent tutorial thank you! Between this and recently reading a datasheet on the atmega16u2 I feel like I actually understand how to make this work. I really appreciate it. Thanks.
@BinderTronics
@BinderTronics 3 жыл бұрын
Glad it helped!
@jdnd3
@jdnd3 2 жыл бұрын
very usual. thumbs up from me. the RX methods work great, The TX methods are not very good fast though, i ended up using the same buffering principle from RX for the TX functionality allowing me to transmit arrays without waiting for each bite to send. a very useful informative video set me in the right direction quickly. thanks
@ludovanginderen6850
@ludovanginderen6850 2 жыл бұрын
you are GREAT ,thanks for your videos
@reshadrei1788
@reshadrei1788 Жыл бұрын
bravo! very informative, please make an assembly version of this video. thanks
@BinderTronics
@BinderTronics Жыл бұрын
Thanks but no on the assembly. I prefer to keep my sanity.
@sonus89
@sonus89 2 жыл бұрын
I love that UPPARR at 30:21
@BinderTronics
@BinderTronics 2 жыл бұрын
Brain LAG.
@sonus89
@sonus89 2 жыл бұрын
@@BinderTronics What is your mother tongue sir? ( Btw. I love your videos
@BinderTronics
@BinderTronics 2 жыл бұрын
You are probably not enabling global interrupts. Afrikaans. You are hearing a heavily suppressed version of the accent.
@jonathancliffordrabe68
@jonathancliffordrabe68 3 жыл бұрын
An example of 9-bit configuration is used for MDB communication protocol. It is used in vending machines, and I don't know who decided it is a good idea to use an extra bit...
@BinderTronics
@BinderTronics 3 жыл бұрын
Had a look at the specification sheet. Interesting serial protocol. Using the 9th bit to determine data direction. That makes 1 so far.
@PattysLab
@PattysLab Жыл бұрын
Legend
@chengguo9450
@chengguo9450 2 жыл бұрын
Very helpful!!!
@BenomraneAbderrahmen
@BenomraneAbderrahmen Жыл бұрын
I would like to express my gratitude for the valuable assistance you have provided through your videos. Currently, I am working on an academic project that involves the Atmega328P microcontroller, where I am required to use two UARTs - the native one, as well as other pins that function as UART. Can you please guide me on how to accomplish this task?
@BinderTronics
@BinderTronics Жыл бұрын
Option 1: Use Arduino software serial lib. Option 2: Use a Atmega328PB that has 2 native serial ports.
@BinderTronics
@BinderTronics Жыл бұрын
Option 3: The big daddy in the line up. ATmega2560
@BenomraneAbderrahmen
@BenomraneAbderrahmen Жыл бұрын
If i use the Arduino Software Serial lib to communicate with the microcontroller, then i must use the Arduino IDE to write and compile my code ? right ? . However, if i use Atmel Studio to write my code, then i'll need to create my own library to communicate with the microcontroller.
@BinderTronics
@BinderTronics Жыл бұрын
@@BenomraneAbderrahmen You are not constraint to the IDE. Atmel Studio supports Arduino projects. Simply create a port of the soft serial lib in C. gprivate.com/64bzv second link looks promising.
@fisikamodern5209
@fisikamodern5209 2 жыл бұрын
WHAT SOFTWARE DO YOU USE WHEN WRITING THE LETTERS IN THE UPPER RIGHT CORNER
@BinderTronics
@BinderTronics 2 жыл бұрын
putty. any serial terminal will work
@fisikamodern5209
@fisikamodern5209 2 жыл бұрын
can MAX232 work with putty software?
@BinderTronics
@BinderTronics 2 жыл бұрын
Get yourself a CH340 or FTDI USB to serial converter. MAX232 (RS232) runs on -12V to +12V. If you want to use a MAX232 you are going to connect MCU to the MAX232 turning the into a RS232 line. Then you need a RS232 to usb serial converter. THE CH340 or FTDI is a direct connection to between the MCU and PC.
@BinderTronics
@BinderTronics 2 жыл бұрын
This is what you looking for and is the same board I am using. www.waveshare.com/ft232-usb-uart-board-micro.htm
@pabloa_e
@pabloa_e 2 жыл бұрын
Hey thanks for your video ! Very helpful. Just a question, how can I save the buffer receive when using uart_read() and save it into a variable correctly ? Because I try to make a comparison like that : uint8_t val = uart_read(); if(val == "t"){ // here I want to do something } The if isn't trigger. What should I do to compare char or string to the value returned ? Edit : Ok I found it, I have to use 't' instead of "t" my bad haha
@BinderTronics
@BinderTronics 2 жыл бұрын
Glad you got a solution.
@pabloa_e
@pabloa_e 2 жыл бұрын
@@BinderTronics Yes thank you, took me ages to understand the UART communication haha. Your video help me a lot !!! My project can succeed Continue like that 😁
@adityaray203
@adityaray203 Жыл бұрын
Can we use TXC0 from UCSR0A status register instead of using usrt_tx_busy?
@BinderTronics
@BinderTronics Жыл бұрын
The bit description of TXC0 is not clear. I see no issue with using it but you will have to validate what the bits mean.
@danielbycinskij3685
@danielbycinskij3685 3 жыл бұрын
Is this tutorial is also compatible with dmx receive?
@BinderTronics
@BinderTronics 3 жыл бұрын
Going to assume you are talking about Digital Multiplex. Unless your DMX controller outputs UART, RS485 or RS422 then no.
@sadziooo6194
@sadziooo6194 2 жыл бұрын
Which terminal is used to check the output?
@BinderTronics
@BinderTronics 2 жыл бұрын
Putty
@imrichmorvay2227
@imrichmorvay2227 Жыл бұрын
this is too complicated arduino have SerialPrint and thats it
@BinderTronics
@BinderTronics Жыл бұрын
The joke is. This is what is sitting behind the abstraction of arduino. All this just so you can use SerialPrint.
SPI (Bit Banging)- IO from Scratch - Part 4
30:04
James Sharman
Рет қаралды 10 М.
English or Spanish 🤣
00:16
GL Show
Рет қаралды 6 МЛН
Мы сделали гигантские сухарики!  #большаяеда
00:44
Cute kitty gadgets 💛
00:24
TheSoul Music Family
Рет қаралды 12 МЛН
Чёрная ДЫРА 🕳️ | WICSUR #shorts
00:49
Бискас
Рет қаралды 6 МЛН
Все о микроконтроллерах для начинающих "USART часть 1"
15:43
It's time for change, it's time for Linux.
10:53
DankPods
Рет қаралды 256 М.
Are PIC Microcontrollers Any Good? - Beyond Arduino #4
21:07
Sine Lab
Рет қаралды 41 М.
The Surgery That Proved There Is No Free Will
29:43
Joe Scott
Рет қаралды 306 М.
microsoft doubles down on recording your screen
10:00
Low Level Learning
Рет қаралды 61 М.
rust runs on EVERYTHING (no operating system, just Rust)
18:10
Low Level Learning
Рет қаралды 354 М.
how does UART work??? (explained clearly)
10:52
Continuous Load
Рет қаралды 303 М.
English or Spanish 🤣
00:16
GL Show
Рет қаралды 6 МЛН