Bearcat-Electric-Vehicle-BEV / TeensyECU

0 stars 0 forks source link

Add software interrupt for RESET line #53

Open MarshalStewart opened 2 years ago

MarshalStewart commented 2 years ago

Pin 36 is being used for the reset line. A reset pin is used to power cycle the hardware, it will be used in testing to provide a clean slate between tests. Or can be triggered by a debug button the vehicle to reset the ECU if something doesn't seem correct.

As seen in the image below, there isn't a dedicated pin for reset. Therefore we need to implement this through software. The method will be add an interrupt to the GPIO pin, on a rising edge reset the module. You may also want to debounce this signal (software filter for mechanical noise)

image