improved setTrgFrequency() and set minfreq > 0