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

标题: 在CCS C的函数库中,output_float()和output_high有和区别? [打印本页]

作者: winnie    时间: 2009-4-20 12:49
标题: 在CCS C的函数库中,output_float()和output_high有和区别?
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.

作者: winnie    时间: 2009-4-20 12:49
output_float()和output_high
前一个函数是使控制脚变为输入脚,后一函数是使控制脚变为高电平




欢迎光临 英锐恩单片机论坛,Microchip单片机,模拟器件,接口电路,麦肯单片机,单片机应用交流 (http://www.enroobbs.com/) Powered by Discuz! X3.2