Can someone help me to come out with a main program and ISR flowchart of this circuit below (pic18f458), it is about a car system, with start engine, stop engine, lock door, unlock door and alarm (following sequence - basic steps to get into a car: unlock the door, start engine, lock the door... etc). Just a simple flowchart, without ADC and USART. Just use 1.5s delay and TIMER0
Input (Switches):
START -------> RB0/INT0
STOP -------> RB1/INT1
LOCK -------> RB2/INT2/CANTX
UNLOCK -----> RB3/CANRX
ALARM -------> RB4
Output:
RC0 -----> START1 (LED-YELLOW)
RC1 -----> STOP1 (LED-YELLOW)
RC2 -----> LOCK1 (LED-YELLOW)
RC3 -----> UNLOCK1 (LED-YELLOW)
RC4 -----> ALARM1 (LED-YELLOW)
Input (Switches):
START -------> RB0/INT0
STOP -------> RB1/INT1
LOCK -------> RB2/INT2/CANTX
UNLOCK -----> RB3/CANRX
ALARM -------> RB4
Output:
RC0 -----> START1 (LED-YELLOW)
RC1 -----> STOP1 (LED-YELLOW)
RC2 -----> LOCK1 (LED-YELLOW)
RC3 -----> UNLOCK1 (LED-YELLOW)
RC4 -----> ALARM1 (LED-YELLOW)
Last edited: