13369 views|8 replies

42

Posts

0

Resources
The OP

What happens when the STM32 serial port sends 0 when powered on? [Copy link]

                                 Why does the STM32 serial port send 0 by default when powered on?
This post is from stm32/stm8

Latest reply

                                 It should be a hardware problem  Details Published on 2010-4-1 13:08

53

Posts

0

Resources
2
                                 It seems to be related to the initialization of the TX pin of the STM32 serial port.
This post is from stm32/stm8

64

Posts

0

Resources
3
Why does the STM32 serial port send 0 by default when powered on?
It is impossible for the STM32 to send anything by default on the serial port after power-on. There must be something wrong with your initialization program.
This post is from stm32/stm8

71

Posts

0

Resources
4
#include"main.h"

void Sys_init(void)
{
//RCC_Configuration() ; /*Clock setting */
//NVIC_Configuration(); /*Interrupt vector setting */
/*Port setting */
//UART4_Configuration(); /*Serial port 4 setting */
//UART5_Configuration(); /*Serial port 5 setting */
//GPIO_Configuration();
//TIM1_Configuration();
//TIM8_Configuration(0); /*Timer 8 setting */
}
int main(void)
{

//Sys_init(); //System initialization
//GPIO_ResetBits(GPIOB, GPIO_Pin_13); //Driver low level DIR turns clockwise
//GPIO_ResetBits(GPIOB, GPIO_Pin_14);//Driver high level FREE
//TIM_Cmd(TIM1, ENABLE); //Start timer 1
while(1)
{

}
}
Do not do any initialization
This post is from stm32/stm8

79

Posts

0

Resources
5
Without any initialization, it is like this after powering on several times

Screenshot00.png (25.01 KB)

screenshot00.png

This post is from stm32/stm8

69

Posts

0

Resources
6
Please use an oscilloscope to measure the level of the STM32 TX pin. I strongly suspect that this problem is caused by other devices on your circuit board, such as the RS232 conversion chip.

The I/O pins of the STM32 are in high-impedance state after reset and cannot be recognized as 0 unless the chip is damaged.
This post is from stm32/stm8

55

Posts

0

Resources
7
                                 If it is not an initialization problem, it is likely caused by a hardware problem
This post is from stm32/stm8

73

Posts

0

Resources
8
                                 It should be a hardware problem. I have encountered it before.
This post is from stm32/stm8

79

Posts

0

Resources
9
                                 It should be a hardware problem
This post is from stm32/stm8

Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

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