在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.
output_float()和output_high
前一个函数是使控制脚变为输入脚,后一函数是使控制脚变为高电平
页:
[1]