View IO port method

Publisher:码字徜徉Latest update time:2021-10-20 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Today I am using STM8L151K6 as output enable for ADP3110A, so I configured the IO port as follows: PC1

GPIO_Init(ADP3110A_EN_PORT, (GPIO_Pin_TypeDef)ADP3110A_EN_PINS, GPIO_Mode_Out_PP_High_Fast);

 GPIO_SetBits(ADP3110A_EN_PORT,ADP3110A_EN_PINS); //Turn on ADP3110A_EN

However, the oscilloscope measurement revealed that it was only about 1.4V. Checking the data sheet

Found that there is only T7 in the output port. View comments

In the open-drain output column, 'T' defines a true open-drain I/O (P-buffer, weak pull-up and protection diode to VDD are
not implemented).


If this pin is set as an OD gate, an external resistor must be connected to enable a high level.


Reference address:View IO port method

Previous article:STM8Lpwm
Next article:stm8l TIM2 timer usage

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号