I am confused on UART. I am trying to unerstand how we send or recive the character via Uart
UART send start bit which is always one "0" bit, then send 8 data bits, then stop bit which is "1",
I have read that registers and flag are more important in uart communication.
just assume I want to transfer the character 'A' from the microcontroller to PC
decimal : 65 (A in decimal)
hexa : 41 (A in hexa decimal)
binary : 10000001 (A in binary)
What happens when both device communicate ?
I think UART send start bit which is a "0" bit, then check transmitter flag. It can be activate or deactivate. if flag is activate then it send one bit and again it will check flag is activate or deactivate so flag is active then uart send next bit continued to check flag send 8 data bits , then stop bit which is "1", When all bits are transferred, the flag becomes deactivate.
does it really happen in uart ?