Interface

1. Operation in microcontroller

6/26/2009

Start

Initialization Reset number Clear ports Wait for receive
6/26/2009

No Wait for receive

Rx Enabl e? Yes

Capture data

Compare data

If data=1
6/26/2009

Yes Left motion

N

If case =2 N o If case =3

YES

Right motion

YE S

Up motion

N o If case =4 YES Down motion

6/26/2009

If case =5

Ye s

Stop

N o Clear Rx

Wait for receive

6/26/2009

Sign up to vote on this title
UsefulNot useful