660 views|3 replies

970

Posts

0

Resources
The OP
 

Are the two interrupts TXEIE and TCIE not repeated in STM32 serial port transmission? [Copy link]

邀请:@maychang   @chunyang   @led2015   @wangerxian   参与回复

In STM32 serial port transmission, aren't the two interrupts TXEIE and TCIE repeated? Aren't they both interrupts generated after the send register SBUF sends a BYTE? Aren't these two repeated?

This post is from stm32/stm8

Latest reply

Since they are different interrupts, they will obviously not be repeated. This is a basic logic problem. As for the differences and their respective characteristics, you should read the device manual to understand them yourself.   Details Published on 2024-2-3 22:50
 

224

Posts

0

Resources
2
 

TXEIE: Transmit buffer empty interrupt, data may still be sent through the serial port.

TCIE: Data sent completed

This post is from stm32/stm8
 
 

6069

Posts

4

Resources
3
 
This post was last edited by damiaa on 2024-1-21 18:56

The two interrupt enable bits TXEIE and TCIE

TXE and TC two interrupt flags

TXE TDR register is empty, which means data is transferred from TDR to TSR. At this time, the data is shifted out of the serial port, and TDR can be written by software. The corresponding interrupt is generated. You can write the next byte to TDR after this.

TC The TC register is empty, which proves that the data transmission is complete and the transmitted byte is completely completed. The corresponding interrupt is generated.

Specifically, you can analyze the routine of stm32 serial port interrupt to understand how these two registers are used together.

This post is from stm32/stm8
 
 

1w

Posts

142

Resources
4
 

Since they are different interrupts, they will obviously not be repeated. This is a basic logic problem. As for the differences and their respective characteristics, you should read the device manual to understand them yourself.

This post is from stm32/stm8
 
Personal signature上传了一些书籍资料,也许有你想要的:https://download.eeworld.com.cn/user/chunyang
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list