Back to Index
Deadband comparator around a center point. Output is 1 above center+db and 0 below center-db.
center+db
center-db
DEADBAND(value, center, db, &q);
DEADBAND(ain(1), 500, 20, high); if (high) { out(1)=1; }