英锐恩单片机论坛,Microchip单片机,模拟器件,接口电路,麦肯单片机,单片机应用交流

 找回密码
 立即注册
搜索
电子烟方案单片机单片机开发深圳单片机开发
单片机方案国产单片机8位单片机电子烟方案开发
查看: 3677|回复: 1
打印 上一主题 下一主题

在CCS C的函数库中,output_float()和output_high有和区别?

[复制链接]
跳转到指定楼层
1#
发表于 2009-4-20 12:49:28 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
OUTPUT_FLOAT()

Syntax:
output_float (pin)

Parameters:
Pins are defined in the devices .h file.  The actual value is a bit address.  For example, port a (byte 5) bit 3 would have a value of 5*8+3 or 43.  This is defined as follows: #define PIN_A3 43

Returns:
undefined

Function:
Sets the specified pin to the input mode. This will allow the pin to float high to represent a high on an open collector type of connection.
2#
 楼主| 发表于 2009-4-20 12:49:51 | 只看该作者
output_float()和output_high
前一个函数是使控制脚变为输入脚,后一函数是使控制脚变为高电平
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|公司首页|Microchip单片机,模拟器件,接口电路,麦肯单片机,单片机应用交流 ( 粤ICP备09008620号 )

GMT+8, 2024-4-28 07:39 , Processed in 0.051992 second(s), 22 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表