Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[ARM] Does STM32F10x supports 7 data bits?

Status
Not open for further replies.

ptar

Newbie level 3
Joined
Nov 26, 2015
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
33
Hi

The UART settings which I need for my project is - 4800 7E1.
The stm32f10x_usart header file has the following word length only.


Code C - [expand]
1
2
3
4
5
6
/** @defgroup USART_Word_Length 
  * @{
  */ 
  
#define USART_WordLength_8b                  ((uint16_t)0x0000)
#define USART_WordLength_9b                  ((uint16_t)0x1000)



Does stm32f10x support USART_WordLength_7b?

Thanks
Ptar
 

Hi,

The answer surely is written in the datasheet.

***
UART is transmitting LSB first.

It also means MSB last. So if you transmit 8N1 while setting the MSB high, then it is similar to 7N2.
The second stop bit won't be a problem for the receiver.

A problem could be if you want to receive 7N1 data stream with 8N1 setup.

But first read datasheet, be for trying some workarounds.

Klaus
 

Yes, read the datasheet. 7E1 is feasible with ST arm processors because parity bit is counted as data bit.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top