Introduction - If you have any usage issues, please Google them yourself
Relay control, set up 8255 for the A port input, C output, delay 5s, whether there is any key pressed, if so, then switch to exit, the PA0 query whether the 8255 high, if it was not continued, regular time, Subroutine return