When the brake pedal is depressed, ASCD brake switch is turned OFF and stop lamp switch is turned ON. ECM detects the state of the brake pedal by those two types of input (ON/OFF signal).
Refer to
System Description (GT-R certified NISSAN dealer) for the ASCD function.