Tmc2209 microstepping

i have a code where i use 1\8 microstepping without any uart or ms pins . i generally define ex: #define microstep_res=8;

after that i havve two modes of motor rotation manual and automatic mode according to my program my manual mode is worked fine means speed of motoris good . butin automatic mode i try every thing but my motor speed is not increased by decreasing delay and microstep also. what should i do.
i am working with nema17 dual stage motor with tmc2209 and mc is atmega32A

Number one is reading and using this link: How to get the best out of this forum - Development Tools / IDE 1.x - Arduino Forum