Catalyzes the formation of dTDP-glucose, from dTTP and glucose 1-phosphate, as well as its pyrophosphorolysis. Probably involved in the biosynthesis of the acarviose moiety of the alpha-glucosidase inhibitor acarbose. alpha-D-glucose 1-phosphate + dTTP + H(+) = diphosphate + dTDP-alpha-D-glucose Binds 1 Mg(2+) ion per subunit. Belongs to the glucose-1-phosphate thymidylyltransferase family. Truncated N-terminus.