TCM detects a neutral condition based on engine rpm, input rpm and output rpm while the shifter is in drive.