How to increase the dc motor's speed(andFrequency)value more than255(and64KHZ)?

I want to learn please help me, I am newbie so I am seeking help ;and this issue is not solving with reading the documents about debouncing with button, I need a sample example to learn this multi button coding with debouncing which it will be work with my motor codes successfully, please help me, thanks.