PDA

View Full Version : 2. Problem in receiving data through SCI1


choi0101
03-18-08, 11:57 PM
Thank you for your answer!!!
By the way, i still do not know how to get a signal from my camera
There is some basic information about the command signal for the camera:

1)
Keep sending a SYNC command
AA0D00000000
2)
The camera will send back a returning command signal
AA0E0Dxx0000
AA0D00000000
3)
If Hexapod detect the returning signal then send a comfirm command signal
AA0E0Dxx0000

*** xx can be anything in HEX
*** command signal protocol is attached

And i have written a program for sending SYNC command
code:
DECIMAL
14400 SCI1 BAUD
HEX

MACHINE TEST3
ON-MACHINE TEST3
APPEND-STATE S1

: -LOOPVAR <BUILDS HERE P, 1- DUP , , DOES>
P@ DUP @ 0= IF DUP 1 + @ SWAP ! TRUE ELSE 1-! FALSE THEN ;
10 -LOOPVAR CNT

IN-STATE
S1
CONDITION
CNT
CAUSES
AA SCI1 TX
0D SCI1 TX
00 SCI1 TX
00 SCI1 TX
00 SCI1 TX
00 SCI1 TX
THEN-STATE
S1
TO-HAPPEN

S1 SET-STATE
INSTALL TEST3

*** Delay is introduced as i can detect it easily on CRO and returning signal from camera can also be found in CRO.

Now, i do not know how to get the returning signal by using RX and how to send other signal if some signal is detected.

Thank you!!!