|
ALGORITHMS
Transmission
STEP1:
Start
STEP2: Initialize the LCD
STEP3: Display speed on LCD
STEP4: Check for interrupt
STEP5: If INT0, increment counter and transmit.
STEP6: If INT1, decrement counter and transmit.
STEP7: Repeat STEP3.
STEP8: End
Reception
STEP1:
Start
STEP2: Initialize the LCD
STEP3: Check for serial interrupt
STEP4: Display the received value
STEP5: If Caught compare R0 for 31,32,33,34.
STEP6: If R0 = 31 run motor in 25% speed
STEP7: If R0 = 32 run motor in 50% speed
STEP8: If R0 = 33 run motor in 75% speed
STEP9: If R0 = 34 switch OFF motor
STEP10: Go to STEP3.
FLOW CHART FOR TRANSMISSION:

FLOWCHART FOR INTERRUPT(INT0):

FLOWCHART FOR
INTERRUPT(INT1):

|