PB4 and PB5 of STM8S are I2C function pins. There is no internal pull-up resistor and they are true OC. When used as control outputs, a 10K pull-up resistor can be added to enhance the drive.
PB4/PB5 only have open-drain outputs. They are II2C ports. Pull-up resistors are needed to get high levels. Since there are no pull-up resistors, the level cannot be raised. Unlike other ports, they can directly output high levels to drive LEDs. I made a mistake here and connected them to the base of transistors to drive LEDs and buzzers. As a result, there was no high-level output. Remember this. . . .
Previous article:STM8S103F3P6 core board schematic design
Next article:Delay function of stm8s103f3p6
Recommended ReadingLatest update time:2024-11-23 06:12
- Popular Resources
- Popular amplifiers
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- STMicroelectronics discloses its 2027-2028 financial model and path to achieve its 2030 goals
- 2024 China Automotive Charging and Battery Swapping Ecosystem Conference held in Taiyuan
- State-owned enterprises team up to invest in solid-state battery giant
- The evolution of electronic and electrical architecture is accelerating
- The first! National Automotive Chip Quality Inspection Center established
- BYD releases self-developed automotive chip using 4nm process, with a running score of up to 1.15 million
- GEODNET launches GEO-PULSE, a car GPS navigation device
- Should Chinese car companies develop their own high-computing chips?
- Infineon and Siemens combine embedded automotive software platform with microcontrollers to provide the necessary functions for next-generation SDVs
- Continental launches invisible biometric sensor display to monitor passengers' vital signs
- Why does the distorted waveform produced by excessive microphone sound pressure look like this?
- [Zhongke Bluexun AB32VG1 RISC-V board "meets" RTT evaluation] 1 hour quick introduction to RISC-V & RT-Thread
- GD32F350 USB Library 1.0 fills the gap
- 3.5G/HSDPA technical architecture and key points of mobile phone development
- IC manufacturing also needs to "fight terrorism". Does the United States distrust overseas chips?
- [GD32E231 Work Submission] Design of monitoring terminal for flash flood warning broadcast system based on 2G GPRS+ SMS alarm function
- How to choose the brake handlebar of an electric vehicle
- Footprint and pad differences between BRD board and LIB library and between LIB library
- LoRa and NB-IoT IoT application comparison solution
- Generate PWM based on msp430g2553 timer