Millisecond timer polling

presently i am using ONTIMER to poll data in 1 sec

ontimer 2,“GOTO DUPULSE”
TSET 2,1

How to poll data in milliseconds?

You would have to use one of the built-in IO servers. I don’t think it’s possible with BASIC to use increments smaller than seconds.