STM8 PIN setting(output)

Publisher:RadiantDreamsLatest update time:2017-02-04 Source: eefocusKeywords:STM8  PIN  setting  output Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Today, when setting the pin output, I wanted to set it to open-drain output, and then output high and low. However, I found that it could not output high (initialized to open-drain low level), and it was always low. Later, I changed it to push-pull output, and it could output high and low. It's really interesting. I went to SPEC to check and found that the open-drain output in the output mode is simulated, not real open-drain.

Therefore, when setting the output mode of the pin, if you want to have an output with level changes, you must set it to push-pull output mode.


Keywords:STM8  PIN  setting  output Reference address:STM8 PIN setting(output)

Previous article:How to Improve the Anti-interference of Single Chip Microcomputer
Next article:The difference between CY and OV microcontrollers

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号