描述:Thin Film Resistors - SMD P 1206 H 8663 F N TR e2 Product Attribute:Attribute Value Manufacturer:Vishay(威世) Product Category:Thin Film Resistors - SMD
假定从8位AD中读取数据(如果是更高位的AD可定义数据类型为int),子程序为get_ad();[b]1、限副滤波[/b]#define A 10char value;char filter(){charnew_value;new_value = get_ad();if ( ( new_value - value > A ) || ( value - new_value > A )return v
评论