TDM controller