# Micro PA50 controller ``` set amp off; while () { if (ptt is on || have input power) { check temp; if (temp is more min) { set fan on; } else { set fan off; } if (temp is over) { show temp warning; continue; } check freq; // if auto? if freq in { set lpf for the freq if need; calc power and vswr; if (vswr is good) { set amp on; } else { set amp off; show wrong swr; } if (power too hight) { set amp off immed; } } else { show wron freq; set amp off; } } else { wait 100ms; } } ```