On a p 166 I was getting 18,000 hz no problem. Turbocnc reported a 24,000 hz max. My AMD 400 Turbocnc reports 18,000 hz max but I have run at up to 25,000 hz.
Install Turbocnc. It will calculate and report the max hz possible at startup. It is reported that this number is conservative.