chap07 UART Serial Comm

Telechargé par samer mansouri
UART/USART
Universal Synchronous/Asynchronous
Receiver Transmitter
USART:
A B
E/R E/R
Tx
Tx
Rx
Rx
GND
A B
E/R E/R
Tx
Tx
Rx
Rx
GND
Synchronous Clock
Asynchronous
STM32F1: USART1, USART2, USART3, UART4, UART5, USART6
Data
(N bits)
1Start
bit
Parity
Bit
Stop
bit
Frame Frame
Frame Frame
idle idle idle
7, 8, 9 bits
0.5, 1, 1.5 , 2 bits
No Parity
Odd
Even
UART: Asynchronous communication
UART: compatible modules
TX
RX
Bluetooth
Zigbee
Wifi
GPS
UART: Peripheral Architecture
Data
Registers
CR2
CR1
Baud Rate
Register
Status Register
UE
typedef
struct
uint32_t SR;
//status Register
uint32_t DR;
//Data Register
uint32_t BRR;
//Baud rate Register
uint32_t CR1;
// Config Register
USART_TypeDef
;
1 / 19 100%

chap07 UART Serial Comm

Telechargé par samer mansouri
La catégorie de ce document est-elle correcte?
Merci pour votre participation!

Faire une suggestion

Avez-vous trouvé des erreurs dans linterface ou les textes ? Ou savez-vous comment améliorer linterface utilisateur de StudyLib ? Nhésitez pas à envoyer vos suggestions. Cest très important pour nous !